Primary Particle Generation - Istituto Nazionale di Fisica ...

Primary Particle Generation - Istituto Nazionale di Fisica ...

Primary Particle Generation Contents Primary vertex and primary particle Primary generator What is What is available G4VUserPrimaryGeneratorAction How to use it 1 Primary Vertices and Primary

Particles Primary vertices and primary particles must be stored in an event (G4Event) before it is processed. Need instances of: G4PrimaryVertex particle starting point in space, time can add user information as well G4PrimaryParticle initial momentum, polariztion of particle to be propagated also PDG code linked list of daughters for decay chains These classes do not depend on G4ParticleDefinition or G4Track Primary particles may not necessarily be particles which can be tracked by Geant

1 Primary Generator All primary generators must be derived from G4VPrimaryGenerator and implement its single pure virtual method GeneratePrimaryVertex() this is where the primary vertex and primary particle are added to the event Geant4 provides some implementations of G4VPrimaryGenerator:

G4HEPEvtInterface G4HEPMCInterface G4GeneralParticleSource G4ParticleGun 1 Interfaces to HEPEvt and HepMC Concrete implementations of G4VPrimaryGenerator good examples of experiment-specific primary generator implementation G4HEPEvtInterface interface to /HEPEVT/ common block which many FORTRAN HEP physics generators (e.g. Pythia-Jetset) are compliant with uses ASCII file input

see novice example N04 G4HepMCInterface interface to HepMC class, which a few new (C++) HEP physics generators are compliant with uses ASCII file input or direct linking to generator through HepMC 1 General Particle Source G4GeneralParticleSource is another concrete implementation of G4VPrimaryGenerator Primary vertex is randomly chosen on surface of a given volume useful for radioactive sources pre-defined energy spectra (power law, etc.) available

Capable of event biasing (variance reduction) can enhance certain particle types bias the vertex point distribution bias energy and/or direction Especially suitable for space and medical applications see advanced examples: x-ray telescope, underground physics 1 Particle Gun G4ParticleGun is an implementation of G4VPrimaryGenerator which is used to simulate a beam of particles see novice example N02

It shoots a primary particle of a certain energy and direction from a given point at a given time methods available to customize your particle gun set particle type set energy, momentum set polarization set charge number of particles shot at one time

1 G4VUserPrimaryGeneratorAction (1) This is one of the mandatory user action classes used to control the generation of primaries this class itself should not generate primaries instead use GeneratePrimaryVertex() method of primary generator Geant4 developers are frequently asked to implement particle shot guns or particle machine guns such fancy weapons can easily be implemented by the user with

set methods in G4ParticleGun repeated use of G4ParticleGun in a single event random sampling of particle type and direction additional primary generators (described earlier) 1 G4VUserPrimaryGeneratorAction (2) Constructor instantiate primary generator(s) set default items (particle, energy, etc.) GeneratePrimaries() method: randomize particle-by-particle values assign them to primary generator(s)

invoke GeneratePrimaryVertex() method of primary generator(s) 1 G4VUserPrimaryGeneratorAction (3) void MyPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent) { G4ParticleDefinition* particle; G4int i = (int)(5.*G4UniformRand()); switch(i) { case 0: particle = positron; break; ...... } gun->SetParticleDefinition(particle); 1

G4VUserPrimaryGeneratorAction (4) G4double pp = momentum + (G4UniformRand() - 0.5)*sigmaMomentum; G4double mass = particle->GetPDGMass(); G4double kineticE = sqrt(pp*pp + mass*mass) mass; gun->SetParticleEnergy(kineticE); G4double angle = (G4UniformRand() - 0.5) * sigmaAngle; gun->SetParticleMomentumDirection (G4ThreeVector(sin(angle), 0., cos(angle)); gun->GeneratePrimaryVertex(anEvent); } Repeat the above as many times as desired per event 1

Recently Viewed Presentations



    * * * * * * * What type of patient might require the orthopneic position? COPD patients When would it be necessary to place the patient in the Sims' position? Patient requiring an enema. * What procedures would require...
  • Cooling Curves Aim Investigate cooling of different substances

    Cooling Curves Aim Investigate cooling of different substances

    See the method on your practical sheet. For the liquid filled thermometer, the graduations on the thermometer were at every 10C but you estimated to the nearest 0.50C. The digital thermometer read to the nearest 0.10C and was more accurate...
  • Review: - American Inns of Court

    Review: - American Inns of Court

    The Court conceded that determination of patent eligibility "requires a full understanding of the basic character of the claimed subject matter" but found that claim construction was notan inviolable prerequisite to validity determination. The lower court applied a summary judgment...
  • SISD Seuss Week 2016 4th Annual Seusstastic Contest

    SISD Seuss Week 2016 4th Annual Seusstastic Contest

    To pick up a book, and read with a child. You're never too busy, too cool, or too hot, To pick up a book and share what you've got. In schools and communities, Let's gather around, Let's pick up a...
  • Psychology 10th Edition David Myers - Paul Trapnell

    Psychology 10th Edition David Myers - Paul Trapnell

    Infradian Rhythms. Occur less often than once a day. Examples: birds migrating, bears hibernating. Ultradian Rhythms. greater than 1/day, e.g., about every 90min. eg: stomach contractions and hormone levels
  • Planning: Heuristics and CSP Planning Computer Science cpsc322,

    Planning: Heuristics and CSP Planning Computer Science cpsc322,

    CPSC 322, Lecture 18. Slide . Heuristics for Forward Planning. Heuristic function: estimate of the distance form a state to the goal. In planning this is the_____
  • Hoot


    This title matches the book becauseā€¦ The title Hoot matches the book because this book has a lot to do with owls and saving the environment, also because the title is so simple and short, it makes you want to...
  •  Describe the object. What does it look like?

    Describe the object. What does it look like?

    Sneaky Info. Shot. the use of the template pattern sentences, combined into the piece in such a way that the reader doesn't recognize the original template pattern sentences. Example: I love my playful dog. Although he is nearly the size...