Geant4 VMC Version 6.6
|
The manager class for G3 process controls. More...
#include <TG4SpecialControlsV2.h>
Public Member Functions | |
TG4SpecialControlsV2 () | |
virtual | ~TG4SpecialControlsV2 () |
void | StartTrack (const G4Track *track) |
void | ApplyControls () |
void | RestoreProcessActivations () |
Bool_t | IsApplicable () const |
Public Member Functions inherited from TG4Verbose | |
TG4Verbose (const G4String &cmdName) | |
TG4Verbose (const G4String &cmdName, G4int verboseLevel) | |
virtual | ~TG4Verbose () |
virtual void | VerboseLevel (G4int level) |
virtual G4int | VerboseLevel () const |
Private Types | |
enum | Switch { kSwitch , kReswitch , kUnswitch } |
The action to be performed in the current step. More... | |
Private Member Functions | |
TG4SpecialControlsV2 (const TG4SpecialControlsV2 &right) | |
Not implemented. | |
TG4SpecialControlsV2 & | operator= (const TG4SpecialControlsV2 &right) |
Not implemented. | |
void | SetSwitch () |
void | Reset () |
Private Attributes | |
G4bool | fIsApplicable |
Applicability for the current track. | |
const G4Track * | fkTrack |
The current track. | |
Switch | fSwitch |
The action to be performed in the current step. | |
G4ProcessVector | fSwitchedProcesses |
Vector of the processes the activation of which is changed by this process. | |
TG4boolVector | fSwitchedControls |
Vector for storing the current values of the processes activation. | |
TG4boolVector | fProcessActivations |
vector of the origin process activations | |
The manager class for G3 process controls.
This class takes care of activation/inactivation of physics processes in current tracking medium according to user setting via TVirtualMC::Gstpar() method.
Note that the global activation/inactivation of physics processes via TVirtualMC::SetProcess() method is not managed by this class.
Definition at line 43 of file TG4SpecialControlsV2.h.
|
private |
The action to be performed in the current step.
Enumerator | |
---|---|
kSwitch | switch the process activation |
kReswitch | switch the process activation back |
kUnswitch | do not switch the process activation |
Definition at line 46 of file TG4SpecialControlsV2.h.
TG4SpecialControlsV2::TG4SpecialControlsV2 | ( | ) |
Standard constructor
Definition at line 26 of file TG4SpecialControlsV2.cxx.
|
virtual |
Destructor
Definition at line 39 of file TG4SpecialControlsV2.cxx.
|
private |
Not implemented.
void TG4SpecialControlsV2::StartTrack | ( | const G4Track * | track | ) |
Store the processes activations in fProcessActivations vector
Definition at line 109 of file TG4SpecialControlsV2.cxx.
Referenced by TG4TrackingAction::PreUserTrackingAction().
void TG4SpecialControlsV2::ApplyControls | ( | ) |
Change processes activation of the current track according to the current user limits.
Definition at line 142 of file TG4SpecialControlsV2.cxx.
Referenced by StartTrack(), and TG4SteppingAction::UserSteppingAction().
void TG4SpecialControlsV2::RestoreProcessActivations | ( | ) |
Restore the processes activations from fProcessActivations vector and reset values
Definition at line 220 of file TG4SpecialControlsV2.cxx.
Referenced by TG4TrackingAction::PostUserTrackingAction().
|
inline |
Return true if special controls are applicable for the current track
Definition at line 96 of file TG4SpecialControlsV2.h.
Referenced by TG4TrackingAction::PostUserTrackingAction(), and TG4SteppingAction::UserSteppingAction().
|
private |
Not implemented.
|
private |
Define the action which should be performed at this step
Definition at line 49 of file TG4SpecialControlsV2.cxx.
Referenced by ApplyControls().
|
private |
Reset the buffers to the initial state.
Definition at line 92 of file TG4SpecialControlsV2.cxx.
Referenced by RestoreProcessActivations().
|
private |
Applicability for the current track.
Definition at line 78 of file TG4SpecialControlsV2.h.
Referenced by IsApplicable(), and StartTrack().
|
private |
The current track.
Definition at line 81 of file TG4SpecialControlsV2.h.
Referenced by ApplyControls(), RestoreProcessActivations(), SetSwitch(), and StartTrack().
|
private |
The action to be performed in the current step.
Definition at line 84 of file TG4SpecialControlsV2.h.
Referenced by ApplyControls(), Reset(), and SetSwitch().
|
private |
Vector of the processes the activation of which is changed by this process.
Definition at line 87 of file TG4SpecialControlsV2.h.
Referenced by ApplyControls(), and Reset().
|
private |
Vector for storing the current values of the processes activation.
Definition at line 90 of file TG4SpecialControlsV2.h.
Referenced by ApplyControls(), and Reset().
|
private |
vector of the origin process activations
Definition at line 93 of file TG4SpecialControlsV2.h.
Referenced by Reset(), RestoreProcessActivations(), and StartTrack().