Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VFastSimulationModel Class Referenceabstract

#include <G4VFastSimulationModel.hh>

+ Inheritance diagram for G4VFastSimulationModel:

Public Member Functions

 G4VFastSimulationModel (const G4String &aName)
 
 G4VFastSimulationModel (const G4String &aName, G4Envelope *, G4bool IsUnique=FALSE)
 
virtual ~G4VFastSimulationModel ()=default
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)=0
 
virtual G4bool ModelTrigger (const G4FastTrack &)=0
 
virtual void DoIt (const G4FastTrack &, G4FastStep &)=0
 
virtual G4bool AtRestModelTrigger (const G4FastTrack &)
 
virtual void AtRestDoIt (const G4FastTrack &, G4FastStep &)
 
virtual void Flush ()
 
const G4String GetName () const
 
G4bool operator== (const G4VFastSimulationModel &) const
 

Detailed Description

Definition at line 59 of file G4VFastSimulationModel.hh.

Constructor & Destructor Documentation

◆ G4VFastSimulationModel() [1/2]

G4VFastSimulationModel::G4VFastSimulationModel ( const G4String & aName)

Definition at line 47 of file G4VFastSimulationModel.cc.

47: theModelName(aName) {}

◆ G4VFastSimulationModel() [2/2]

G4VFastSimulationModel::G4VFastSimulationModel ( const G4String & aName,
G4Envelope * anEnvelope,
G4bool IsUnique = FALSE )

Definition at line 52 of file G4VFastSimulationModel.cc.

54 : theModelName(aName)
55{
56 // Retrieves the Fast Simulation Manager ou creates one if needed.
57 G4FastSimulationManager* theFastSimulationManager;
58 if ((theFastSimulationManager = anEnvelope->GetFastSimulationManager()) == nullptr)
59 theFastSimulationManager = new G4FastSimulationManager(anEnvelope, IsUnique);
60 // adds this model to the Fast Simulation Manager.
61 theFastSimulationManager->AddFastSimulationModel(this);
62}
void AddFastSimulationModel(G4VFastSimulationModel *)
G4FastSimulationManager * GetFastSimulationManager() const
Definition G4Region.cc:140

◆ ~G4VFastSimulationModel()

virtual G4VFastSimulationModel::~G4VFastSimulationModel ( )
virtualdefault

Member Function Documentation

◆ AtRestDoIt()

virtual void G4VFastSimulationModel::AtRestDoIt ( const G4FastTrack & ,
G4FastStep &  )
inlinevirtual

Definition at line 123 of file G4VFastSimulationModel.hh.

123{}

Referenced by G4FastSimulationManager::InvokeAtRestDoIt().

◆ AtRestModelTrigger()

virtual G4bool G4VFastSimulationModel::AtRestModelTrigger ( const G4FastTrack & )
inlinevirtual

Definition at line 116 of file G4VFastSimulationModel.hh.

116{ return false; }

◆ DoIt()

virtual void G4VFastSimulationModel::DoIt ( const G4FastTrack & ,
G4FastStep &  )
pure virtual

◆ Flush()

virtual void G4VFastSimulationModel::Flush ( )
inlinevirtual

Definition at line 126 of file G4VFastSimulationModel.hh.

126{}

◆ GetName()

const G4String G4VFastSimulationModel::GetName ( ) const
inline

Definition at line 139 of file G4VFastSimulationModel.hh.

140{
141 return theModelName;
142}

◆ IsApplicable()

virtual G4bool G4VFastSimulationModel::IsApplicable ( const G4ParticleDefinition & )
pure virtual

◆ ModelTrigger()

virtual G4bool G4VFastSimulationModel::ModelTrigger ( const G4FastTrack & )
pure virtual

◆ operator==()

G4bool G4VFastSimulationModel::operator== ( const G4VFastSimulationModel & fsm) const
inline

Definition at line 144 of file G4VFastSimulationModel.hh.

145{
146 return this == &fsm;
147}

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