Geant4 VMC Version 6.6
|
Extended G4UserLimits class. More...
#include <TG4Limits.h>
Public Member Functions | |
TG4Limits (const TG4G3CutVector &cuts, const TG4G3ControlVector &controls) | |
TG4Limits (const G4String &name, const TG4G3CutVector &cuts, const TG4G3ControlVector &controls) | |
TG4Limits (const G4UserLimits &g4Limits, const TG4G3CutVector &cuts, const TG4G3ControlVector &controls) | |
TG4Limits (const TG4Limits &right) | |
virtual | ~TG4Limits () |
TG4Limits & | operator= (const TG4Limits &right) |
void | SetName (const G4String &name) |
void | SetG3Cut (TG4G3Cut cut, G4double cutValue) |
void | SetG3Control (TG4G3Control control, TG4G3ControlValue controlValue) |
G4bool | Update (const TG4G3ControlVector &controls) |
void | SetG3DefaultCuts () |
void | SetG3DefaultControls () |
void | SetCurrentMaxAllowedStep (G4double step) |
void | SetDefaultMaxAllowedStep () |
void | SetMaxAllowedStepBack () |
void | Print () const |
G4String | GetName () const |
G4double | GetMaxUserStep () const |
const TG4G3CutVector * | GetCutVector () const |
const TG4G3ControlVector * | GetControlVector () const |
G4bool | IsCut () const |
G4bool | IsControl () const |
virtual G4double | GetUserMinEkine (const G4Track &track) |
G4double | GetMinEkineForGamma (const G4Track &track) const |
G4double | GetMinEkineForElectron (const G4Track &track) const |
G4double | GetMinEkineForChargedHadron (const G4Track &track) const |
G4double | GetMinEkineForNeutralHadron (const G4Track &track) const |
G4double | GetMinEkineForMuon (const G4Track &track) const |
TG4G3ControlValue | GetControl (G4VProcess *process) const |
Static Public Member Functions | |
static G4int | GetNofLimits () |
Private Member Functions | |
TG4Limits () | |
Not implemented. | |
void | Initialize (const TG4G3CutVector &cuts, const TG4G3ControlVector &controls) |
Private Attributes | |
G4String | fName |
name | |
G4bool | fIsCut |
true if any cut value is set | |
G4bool | fIsControl |
true if any control value is set | |
TG4G3CutVector | fCutVector |
the vector of G3 cut values | |
TG4G3ControlVector | fControlVector |
the vector of G3 control values | |
G4double | fDefaultMaxStep |
the default max step value | |
Static Private Attributes | |
static G4int | fgCounter = 0 |
counter | |
Extended G4UserLimits class.
Class extends G4UserLimits base class with the vectors of kinetic energy cuts and control process flags data members.
Definition at line 37 of file TG4Limits.h.
TG4Limits::TG4Limits | ( | const TG4G3CutVector & | cuts, |
const TG4G3ControlVector & | controls ) |
Standard constructor
Definition at line 22 of file TG4Limits.cxx.
TG4Limits::TG4Limits | ( | const G4String & | name, |
const TG4G3CutVector & | cuts, | ||
const TG4G3ControlVector & | controls ) |
Standard constructor with specified name
Definition at line 41 of file TG4Limits.cxx.
TG4Limits::TG4Limits | ( | const G4UserLimits & | g4Limits, |
const TG4G3CutVector & | cuts, | ||
const TG4G3ControlVector & | controls ) |
Standard constructor with specified g4Limits
Definition at line 60 of file TG4Limits.cxx.
TG4Limits::TG4Limits | ( | const TG4Limits & | right | ) |
Copy constructor
Definition at line 94 of file TG4Limits.cxx.
|
virtual |
Destructor
Definition at line 109 of file TG4Limits.cxx.
|
private |
Assignment operator
Definition at line 119 of file TG4Limits.cxx.
|
inlinestatic |
Return the total number of all TG4Limits objects
Definition at line 105 of file TG4Limits.h.
Referenced by TG4GeometryServices::PrintStatistics().
|
inline |
Set name
Definition at line 123 of file TG4Limits.h.
Referenced by TG4GeometryManager::SetUserLimits().
void TG4Limits::SetG3Cut | ( | TG4G3Cut | cut, |
G4double | cutValue ) |
Set the cut value for the specified cut.
Definition at line 174 of file TG4Limits.cxx.
Referenced by TG4PhysicsManager::GstparCut().
void TG4Limits::SetG3Control | ( | TG4G3Control | control, |
TG4G3ControlValue | controlValue ) |
Set the process control value for the specified control.
Definition at line 185 of file TG4Limits.cxx.
Referenced by TG4PhysicsManager::GstparControl().
G4bool TG4Limits::Update | ( | const TG4G3ControlVector & | controls | ) |
Update controls in a special way. Return true if some control in fControlVector is after update still set.
Definition at line 205 of file TG4Limits.cxx.
Referenced by TG4GeometryManager::SetUserLimits().
void TG4Limits::SetG3DefaultCuts | ( | ) |
Set the G3 default cut values for all cuts.
Definition at line 196 of file TG4Limits.cxx.
void TG4Limits::SetG3DefaultControls | ( | ) |
Set the G3 default process control values for all flags.
Definition at line 221 of file TG4Limits.cxx.
void TG4Limits::SetCurrentMaxAllowedStep | ( | G4double | step | ) |
Set the new value of max step in the base class
Definition at line 230 of file TG4Limits.cxx.
Referenced by TG4StepManager::SetMaxStep().
void TG4Limits::SetDefaultMaxAllowedStep | ( | ) |
Set the max stap value in base class as the default value (in fDefaultMaxStep)
Definition at line 241 of file TG4Limits.cxx.
Referenced by TG4GeometryManager::SetUserLimits().
void TG4Limits::SetMaxAllowedStepBack | ( | ) |
Set the default max stap value (stored in fDefaultMaxStep) back as the max step value in the base class
Definition at line 253 of file TG4Limits.cxx.
Referenced by TG4StepManager::SetMaxStepBack().
void TG4Limits::Print | ( | ) | const |
Print limits.
Definition at line 265 of file TG4Limits.cxx.
Referenced by TG4Medium::Print(), TG4GeometryServices::PrintLimits(), and TG4GeometryServices::PrintVolumeLimits().
|
inline |
Return name
Definition at line 129 of file TG4Limits.h.
Referenced by TG4GeometryServices::FindLimits(), TG4GeometryServices::FindLimits2(), TG4MCGeometry::GetMedium(), and TG4VRegionsManager::PrintFromG4Table().
|
inline |
Return max step
Definition at line 135 of file TG4Limits.h.
Referenced by TG4MCGeometry::GetMedium().
|
inline |
Return the vector of G3 cut values
Definition at line 141 of file TG4Limits.h.
Referenced by TG4VRegionsManager::GetEnergyCut(), TG4GeometryServices::PrintCuts(), and TG4SteppingAction::ProcessTrackIfBelowCut().
|
inline |
Return the vector of G3 control values
Definition at line 147 of file TG4Limits.h.
Referenced by TG4GeometryServices::PrintControls().
|
inline |
Return true if any cut value is set
Definition at line 111 of file TG4Limits.h.
|
inline |
Return true if any control value is set
Definition at line 117 of file TG4Limits.h.
Referenced by TG4SpecialControlsV2::SetSwitch().
|
virtual |
Return the kinetic energy cut parameter. !! The cuts values defined if fCutVector are applied only via TG4SpecialCuts process.
Definition at line 164 of file TG4Limits.cxx.
G4double TG4Limits::GetMinEkineForGamma | ( | const G4Track & | track | ) | const |
Return the cut value for gamma.
Definition at line 284 of file TG4Limits.cxx.
Referenced by TG4SpecialCutsForGamma::GetMinEkine().
G4double TG4Limits::GetMinEkineForElectron | ( | const G4Track & | track | ) | const |
Return the cut value for e-.
Definition at line 295 of file TG4Limits.cxx.
Referenced by TG4SpecialCutsForElectron::GetMinEkine().
G4double TG4Limits::GetMinEkineForChargedHadron | ( | const G4Track & | track | ) | const |
Return the cut value for charged hadron.
Definition at line 306 of file TG4Limits.cxx.
Referenced by TG4SpecialCutsForChargedHadron::GetMinEkine().
G4double TG4Limits::GetMinEkineForNeutralHadron | ( | const G4Track & | track | ) | const |
Return the cut value for neutral hadron.
Definition at line 317 of file TG4Limits.cxx.
Referenced by TG4SpecialCutsForNeutralHadron::GetMinEkine(), and TG4SpecialCutsForNeutron::GetMinEkine().
G4double TG4Limits::GetMinEkineForMuon | ( | const G4Track & | track | ) | const |
Return the cut value for neutral muon.
Definition at line 328 of file TG4Limits.cxx.
Referenced by TG4SpecialCutsForMuon::GetMinEkine().
TG4G3ControlValue TG4Limits::GetControl | ( | G4VProcess * | process | ) | const |
Return the flag value for the particle associated with the specified process.
Definition at line 339 of file TG4Limits.cxx.
Referenced by TG4SpecialControlsV2::ApplyControls().
|
private |
Initialization.
Definition at line 143 of file TG4Limits.cxx.
Referenced by TG4Limits(), TG4Limits(), and TG4Limits().
|
staticprivate |
counter
Definition at line 92 of file TG4Limits.h.
Referenced by GetNofLimits(), Initialize(), TG4Limits(), and TG4Limits().
|
private |
name
Definition at line 95 of file TG4Limits.h.
Referenced by GetName(), operator=(), Print(), and SetName().
|
private |
true if any cut value is set
Definition at line 96 of file TG4Limits.h.
Referenced by GetMinEkineForChargedHadron(), GetMinEkineForElectron(), GetMinEkineForGamma(), GetMinEkineForMuon(), GetMinEkineForNeutralHadron(), Initialize(), IsCut(), operator=(), Print(), SetG3Cut(), and SetG3DefaultCuts().
|
private |
true if any control value is set
Definition at line 97 of file TG4Limits.h.
Referenced by GetControl(), Initialize(), IsControl(), operator=(), Print(), SetG3Control(), SetG3DefaultControls(), and Update().
|
private |
the vector of G3 cut values
Definition at line 98 of file TG4Limits.h.
Referenced by GetCutVector(), GetMinEkineForChargedHadron(), GetMinEkineForElectron(), GetMinEkineForGamma(), GetMinEkineForMuon(), GetMinEkineForNeutralHadron(), Initialize(), operator=(), Print(), SetG3Control(), SetG3Cut(), and SetG3DefaultCuts().
|
private |
the vector of G3 control values
Definition at line 99 of file TG4Limits.h.
Referenced by GetControl(), GetControlVector(), Initialize(), operator=(), Print(), SetG3Control(), SetG3DefaultControls(), and Update().
|
private |
the default max step value
Definition at line 100 of file TG4Limits.h.
Referenced by SetDefaultMaxAllowedStep(), and SetMaxAllowedStepBack().