Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4Limits Class Reference

Extended G4UserLimits class. More...

#include <TG4Limits.h>

Inheritance diagram for TG4Limits:

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 ()
 
TG4Limitsoperator= (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 TG4G3CutVectorGetCutVector () const
 
const TG4G3ControlVectorGetControlVector () 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
 

Detailed Description

Extended G4UserLimits class.

Class extends G4UserLimits base class with the vectors of kinetic energy cuts and control process flags data members.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 37 of file TG4Limits.h.

Constructor & Destructor Documentation

◆ TG4Limits() [1/5]

TG4Limits::TG4Limits ( const TG4G3CutVector & cuts,
const TG4G3ControlVector & controls )

Standard constructor

Definition at line 22 of file TG4Limits.cxx.

◆ TG4Limits() [2/5]

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() [3/5]

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() [4/5]

TG4Limits::TG4Limits ( const TG4Limits & right)

Copy constructor

Definition at line 94 of file TG4Limits.cxx.

◆ ~TG4Limits()

TG4Limits::~TG4Limits ( )
virtual

Destructor

Definition at line 109 of file TG4Limits.cxx.

◆ TG4Limits() [5/5]

TG4Limits::TG4Limits ( )
private

Not implemented.

Default constructor

Definition at line 76 of file TG4Limits.cxx.

Member Function Documentation

◆ operator=()

TG4Limits & TG4Limits::operator= ( const TG4Limits & right)

Assignment operator

Definition at line 119 of file TG4Limits.cxx.

◆ GetNofLimits()

G4int TG4Limits::GetNofLimits ( )
inlinestatic

Return the total number of all TG4Limits objects

Definition at line 105 of file TG4Limits.h.

Referenced by TG4GeometryServices::PrintStatistics().

◆ SetName()

void TG4Limits::SetName ( const G4String & name)
inline

Set name

Definition at line 123 of file TG4Limits.h.

Referenced by TG4GeometryManager::SetUserLimits().

◆ SetG3Cut()

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().

◆ SetG3Control()

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().

◆ Update()

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().

◆ SetG3DefaultCuts()

void TG4Limits::SetG3DefaultCuts ( )

Set the G3 default cut values for all cuts.

Definition at line 196 of file TG4Limits.cxx.

◆ SetG3DefaultControls()

void TG4Limits::SetG3DefaultControls ( )

Set the G3 default process control values for all flags.

Definition at line 221 of file TG4Limits.cxx.

◆ SetCurrentMaxAllowedStep()

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().

◆ SetDefaultMaxAllowedStep()

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().

◆ SetMaxAllowedStepBack()

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().

◆ Print()

void TG4Limits::Print ( ) const

◆ GetName()

G4String TG4Limits::GetName ( ) const
inline

◆ GetMaxUserStep()

G4double TG4Limits::GetMaxUserStep ( ) const
inline

Return max step

Definition at line 135 of file TG4Limits.h.

Referenced by TG4MCGeometry::GetMedium().

◆ GetCutVector()

const TG4G3CutVector * TG4Limits::GetCutVector ( ) const
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().

◆ GetControlVector()

const TG4G3ControlVector * TG4Limits::GetControlVector ( ) const
inline

Return the vector of G3 control values

Definition at line 147 of file TG4Limits.h.

Referenced by TG4GeometryServices::PrintControls().

◆ IsCut()

G4bool TG4Limits::IsCut ( ) const
inline

Return true if any cut value is set

Definition at line 111 of file TG4Limits.h.

◆ IsControl()

G4bool TG4Limits::IsControl ( ) const
inline

Return true if any control value is set

Definition at line 117 of file TG4Limits.h.

Referenced by TG4SpecialControlsV2::SetSwitch().

◆ GetUserMinEkine()

G4double TG4Limits::GetUserMinEkine ( const G4Track & track)
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.

◆ GetMinEkineForGamma()

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().

◆ GetMinEkineForElectron()

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().

◆ GetMinEkineForChargedHadron()

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().

◆ GetMinEkineForNeutralHadron()

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().

◆ GetMinEkineForMuon()

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().

◆ GetControl()

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().

◆ Initialize()

void TG4Limits::Initialize ( const TG4G3CutVector & cuts,
const TG4G3ControlVector & controls )
private

Initialization.

Definition at line 143 of file TG4Limits.cxx.

Referenced by TG4Limits(), TG4Limits(), and TG4Limits().

Member Data Documentation

◆ fgCounter

G4int TG4Limits::fgCounter = 0
staticprivate

counter

Definition at line 92 of file TG4Limits.h.

Referenced by GetNofLimits(), Initialize(), TG4Limits(), and TG4Limits().

◆ fName

G4String TG4Limits::fName
private

name

Definition at line 95 of file TG4Limits.h.

Referenced by GetName(), operator=(), Print(), and SetName().

◆ fIsCut

◆ fIsControl

G4bool TG4Limits::fIsControl
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().

◆ fCutVector

◆ fControlVector

TG4G3ControlVector TG4Limits::fControlVector
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().

◆ fDefaultMaxStep

G4double TG4Limits::fDefaultMaxStep
private

the default max step value

Definition at line 100 of file TG4Limits.h.

Referenced by SetDefaultMaxAllowedStep(), and SetMaxAllowedStepBack().


The documentation for this class was generated from the following files: