Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 265: | Line 265: | ||
<span style="color:#800000"> defaultCutValue = 1.0*mm; </span> | <span style="color:#800000"> defaultCutValue = 1.0*mm; </span> | ||
- | <span style="color:#800000"> RegisterPhysics(new ProtonPhysics()); </span> | + | <span style="color:#800000"> RegisterPhysics(new ProtonPhysics()); // All physics processes having to do with protons </span> |
- | <span style="color:#800000"> // All physics processes having to do with | + | <span style="color:#800000"> RegisterPhysics(new ElectronPhysics()); // All physics processes having to do with electrons </span> |
+ | <span style="color:#800000"> RegisterPhysics(new DecayPhysics()); // Physics of unstable particles </span> | ||
- | |||
- | + | where for example class ProtonPhysics() is defined as: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | where for example | + | |
Line 298: | Line 285: | ||
<span style="color:#800000"> virtual void ConstructParticle(); </span> | <span style="color:#800000"> virtual void ConstructParticle(); </span> | ||
- | <span style="color:#800000"> virtual void ConstructProcess(); </span> | + | <span style="color:#800000"> virtual void ConstructProcess(); } </span> |
- | <span style="color:#800000"> / | + | |
+ | Particle production thresholds are defined in method SetCuts(): | ||
+ | |||
+ | |||
+ | <span style="color:#800000"> void MyModPhysList::SetCuts() </span> | ||
+ | |||
+ | <span style="color:#800000"> {SetCutsWithDefault();} </span> | ||