Introduction to GEANT4

From UCL HEP PBT Wiki

Jump to: navigation, search
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 protons </span>
+
<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>
-
<span style="color:#800000"> RegisterPhysics(new ElectronPhysics()); </span>
 
-
<span style="color:#800000"> // All physics processes having to do with electrons </span>
+
where for example class ProtonPhysics() is defined as:
-
 
+
-
 
+
-
<span style="color:#800000"> RegisterPhysics(new DecayPhysics()); </span>
+
-
 
+
-
<span style="color:#800000"> // Physics of unstable particles ...} </span>
+
-
 
+
-
 
+
-
<span style="color:#800000"> void MyModPhysList::SetCuts() </span>
+
-
 
+
-
<span style="color:#800000"> {SetCutsWithDefault();} </span>
+
-
 
+
-
 
+
-
where for example the class ProtonPhysics() is defined as
+
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"> // All processes a proton can have } </span>
+
 
 +
Particle production thresholds are defined in method SetCuts():
 +
 
 +
 
 +
<span style="color:#800000"> void MyModPhysList::SetCuts() </span>
 +
 
 +
<span style="color:#800000"> {SetCutsWithDefault();} </span>

Revision as of 15:41, 7 July 2014

Personal tools