Geant4 VMC Version 6.6
|
Physics builder which activates selected fast simulation models. More...
#include <TG4FastSimulationPhysics.h>
Public Types | |
typedef std::map< G4String, G4FastSimulationManagerProcess * > | ProcessMap |
Public Member Functions | |
TG4FastSimulationPhysics (const G4String &name="FastSimulation") | |
TG4FastSimulationPhysics (G4int theVerboseLevel, const G4String &name="FastSimulation") | |
virtual | ~TG4FastSimulationPhysics () |
void | SetUserFastSimulation (TG4VUserFastSimulation *userFastSimulation) |
virtual void | ConstructProcess () |
Construct physics processes. | |
Public Member Functions inherited from TG4VPhysicsConstructor | |
TG4VPhysicsConstructor (const G4String &name) | |
TG4VPhysicsConstructor (const G4String &name, G4int theVerboseLevel) | |
virtual | ~TG4VPhysicsConstructor () |
Public Member Functions inherited from TG4Verbose | |
TG4Verbose (const G4String &cmdName) | |
TG4Verbose (const G4String &cmdName, G4int verboseLevel) | |
virtual | ~TG4Verbose () |
Protected Member Functions | |
virtual void | ConstructParticle () |
Construct particles. | |
Protected Member Functions inherited from TG4VPhysicsConstructor | |
virtual void | VerboseLevel (G4int level) |
virtual G4int | VerboseLevel () const |
Private Member Functions | |
TG4FastSimulationPhysics (const TG4FastSimulationPhysics &right) | |
Not implemented. | |
TG4FastSimulationPhysics & | operator= (const TG4FastSimulationPhysics &right) |
Not implemented. | |
G4FastSimulationManagerProcess * | GetOrCreateFastSimulationProcess (const G4String &modelName) |
void | UpdateRegions (const std::vector< TG4ModelConfiguration * > &models) |
void | AddFastSimulationProcess (const std::vector< TG4ModelConfiguration * > &models) |
Private Attributes | |
TG4VUserFastSimulation * | fUserFastSimulation |
the user fast simulation | |
Static Private Attributes | |
static G4ThreadLocal ProcessMap * | fgProcessMap = 0 |
fast simulation processes map | |
Physics builder which activates selected fast simulation models.
The fast simulation models are constructed via user fast simulation class derived from TG4VUserFastSimulation, created via user run conficuration class. The call is triggered from TG4RunManager, after geometry and physics manager have been instantiated.
Definition at line 39 of file TG4FastSimulationPhysics.h.
std::map<G4String, G4FastSimulationManagerProcess*> TG4FastSimulationPhysics::ProcessMap |
Definition at line 42 of file TG4FastSimulationPhysics.h.
TG4FastSimulationPhysics::TG4FastSimulationPhysics | ( | const G4String & | name = "FastSimulation" | ) |
Standard constructor
Definition at line 33 of file TG4FastSimulationPhysics.cxx.
TG4FastSimulationPhysics::TG4FastSimulationPhysics | ( | G4int | theVerboseLevel, |
const G4String & | name = "FastSimulation" ) |
Standard constructor
Definition at line 40 of file TG4FastSimulationPhysics.cxx.
|
virtual |
Destructor
Definition at line 48 of file TG4FastSimulationPhysics.cxx.
|
private |
Not implemented.
void TG4FastSimulationPhysics::SetUserFastSimulation | ( | TG4VUserFastSimulation * | userFastSimulation | ) |
Set user fast simulation class. Print a warning if fUserFastSimulation is already defined and ignore setting.
Definition at line 270 of file TG4FastSimulationPhysics.cxx.
Referenced by TG4SpecialPhysicsList::Configure(), and TG4SpecialPhysicsList::SetUserFastSimulation().
|
protectedvirtual |
Construct particles.
Instantiate particles - nothing to be done here
Implements TG4VPhysicsConstructor.
Definition at line 222 of file TG4FastSimulationPhysics.cxx.
|
virtual |
Construct physics processes.
Implements TG4VPhysicsConstructor.
Definition at line 228 of file TG4FastSimulationPhysics.cxx.
|
private |
Not implemented.
|
private |
Get thread-local fast simulation process and create one if it does not yet exist.
Definition at line 141 of file TG4FastSimulationPhysics.cxx.
Referenced by AddFastSimulationProcess().
|
private |
Definition at line 67 of file TG4FastSimulationPhysics.cxx.
Referenced by ConstructProcess().
|
private |
Loop over all particles and their processes and check if the process is present in the map
Definition at line 169 of file TG4FastSimulationPhysics.cxx.
Referenced by ConstructProcess().
|
staticprivate |
fast simulation processes map
Definition at line 77 of file TG4FastSimulationPhysics.h.
Referenced by GetOrCreateFastSimulationProcess(), and ~TG4FastSimulationPhysics().
|
private |
the user fast simulation
Definition at line 82 of file TG4FastSimulationPhysics.h.
Referenced by ConstructProcess(), and SetUserFastSimulation().