This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ). You can actually have multiple diﬀerent constructors deﬁned (which is called “overloading”) and the compiler will ﬁgure out which one to call based on the number and ordering of the data types of the arguments. So you could have both of the above two constructors deﬁned, and create objects in your code according to either Animal* elephant = new Animal(10.,100.); or Animal* mouse = new Animal(); What is a G4 event? Is it each time a primary is generated or each time a particle enters a detector? It’s each time a primary is generated (although note that more than one particle can be generated at the same time; if multiple particles are generated by the primary generator, there will be more than one particle tracked in the event.)...
View Full Document
This note was uploaded on 01/16/2012 for the course PHYSICS 392 taught by Professor Scholberg during the Fall '11 term at Duke.
- Fall '11