Geant4  10.02.p03
G4VFastSimulationModel Class Referenceabstract

#include <G4VFastSimulationModel.hh>

Inheritance diagram for G4VFastSimulationModel:
Collaboration diagram for G4VFastSimulationModel:

Public Member Functions

 G4VFastSimulationModel (const G4String &aName)
 
 G4VFastSimulationModel (const G4String &aName, G4Envelope *, G4bool IsUnique=FALSE)
 
virtual ~G4VFastSimulationModel ()
 
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 &)
 
const G4String GetName () const
 
G4bool operator== (const G4VFastSimulationModel &) const
 

Private Attributes

G4String theModelName
 

Detailed Description

Definition at line 66 of file G4VFastSimulationModel.hh.

Constructor & Destructor Documentation

◆ G4VFastSimulationModel() [1/2]

G4VFastSimulationModel::G4VFastSimulationModel ( const G4String aName)

Definition at line 48 of file G4VFastSimulationModel.cc.

49  : theModelName(aName) {}

◆ G4VFastSimulationModel() [2/2]

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

Definition at line 54 of file G4VFastSimulationModel.cc.

57  : theModelName(aName)
58 {
59  // Retrieves the Fast Simulation Manager ou creates one if needed.
60  G4FastSimulationManager* theFastSimulationManager;
61  if ((theFastSimulationManager = anEnvelope->GetFastSimulationManager()) == 0)
62  theFastSimulationManager = new G4FastSimulationManager(anEnvelope,IsUnique);
63  // adds this model to the Fast Simulation Manager.
64  theFastSimulationManager->AddFastSimulationModel(this);
65 }
G4FastSimulationManager * GetFastSimulationManager() const
Definition: G4Region.cc:137
void AddFastSimulationModel(G4VFastSimulationModel *)
Here is the call graph for this function:

◆ ~G4VFastSimulationModel()

virtual G4VFastSimulationModel::~G4VFastSimulationModel ( )
inlinevirtual

Definition at line 88 of file G4VFastSimulationModel.hh.

88 {};
Here is the call graph for this function:

Member Function Documentation

◆ AtRestDoIt()

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

Definition at line 132 of file G4VFastSimulationModel.hh.

132 {}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AtRestModelTrigger()

virtual G4bool G4VFastSimulationModel::AtRestModelTrigger ( const G4FastTrack )
inlinevirtual

Definition at line 121 of file G4VFastSimulationModel.hh.

121 {return false;}

◆ DoIt()

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

Implemented in Par02FastSimModelTracker, Par02FastSimModelEMCal, Par02FastSimModelHCal, GFlashShowerModel, Par01EMShowerModel, Par01PionShowerModel, and Par01PiModel.

Here is the caller graph for this function:

◆ GetName()

const G4String G4VFastSimulationModel::GetName ( void  ) const
inline

Definition at line 152 of file G4VFastSimulationModel.hh.

153 {
154  return theModelName;
155 }
Here is the caller graph for this function:

◆ IsApplicable()

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

Implemented in Par02FastSimModelTracker, Par02FastSimModelEMCal, Par02FastSimModelHCal, GFlashShowerModel, Par01EMShowerModel, Par01PionShowerModel, and Par01PiModel.

Here is the caller graph for this function:

◆ ModelTrigger()

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

Implemented in Par02FastSimModelTracker, Par02FastSimModelEMCal, Par02FastSimModelHCal, GFlashShowerModel, Par01EMShowerModel, Par01PionShowerModel, and Par01PiModel.

Here is the caller graph for this function:

◆ operator==()

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

Definition at line 158 of file G4VFastSimulationModel.hh.

159 {
160  return (this==&fsm) ? true : false;
161 }
Here is the caller graph for this function:

Member Data Documentation

◆ theModelName

G4String G4VFastSimulationModel::theModelName
private

Definition at line 149 of file G4VFastSimulationModel.hh.


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