k4SimGeant4
Loading...
Searching...
No Matches
sim::FastSimModelTracker Class Reference

#include <SimG4Fast/include/SimG4Fast/FastSimModelTracker.h>

Inheritance diagram for sim::FastSimModelTracker:
Collaboration diagram for sim::FastSimModelTracker:

Public Member Functions

 FastSimModelTracker (const std::string &aModelName, G4Region *aEnvelope, ToolHandle< ISimG4ParticleSmearTool > &aSmearTool, double aMinMomentum, double aMaxMomentum, double aMaxEta)
 Constructor.
 
 FastSimModelTracker (const std::string &aModelName, ToolHandle< ISimG4ParticleSmearTool > &aSmearTool)
 Constructor.
 
virtual ~FastSimModelTracker ()
 
virtual G4bool IsApplicable (const G4ParticleDefinition &aParticle) final
 Check if this model should be applied to this particle type.
 
virtual G4bool ModelTrigger (const G4FastTrack &aFastTrack) final
 Check if the model should be applied taking into account the kinematics of a track.
 
virtual void DoIt (const G4FastTrack &aFastTrack, G4FastStep &aFastStep) final
 Apply the parametrisation.
 

Private Attributes

ServiceHandle< IMessageSvc > m_msgSvc
 Message Service.
 
MsgStream m_log
 Message Stream.
 
ToolHandle< ISimG4ParticleSmearTool > & m_smearTool
 Pointer to a smearing tool.
 
double m_minTriggerMomentum
 minimum P that triggers model
 
double m_maxTriggerMomentum
 maximum P that triggers model
 
double m_maxTriggerEta
 maximum eta that triggers model
 

Constructor & Destructor Documentation

◆ FastSimModelTracker() [1/2]

sim::FastSimModelTracker::FastSimModelTracker ( const std::string & aModelName,
G4Region * aEnvelope,
ToolHandle< ISimG4ParticleSmearTool > & aSmearTool,
double aMinMomentum,
double aMaxMomentum,
double aMaxEta )
explicit

Constructor.

Parameters
aModelNameName of the fast simulation model.
aEnvelopeRegion where the model can take over the ordinary tracking.
aSmearToolTypeType of the implementation of ISimG4ParticleSmearTool (conrete class name) to be searched for by ToolSvc.
aSmearToolNameName of the implementation of ISimG4ParticleSmearTool to be searched for by ToolSvc.
aMinMomentumMinimum particle momentum that triggers that model
aMinMomentumMaximum particle momentum that triggers that model
aMinMomentumMaximum pseudorapidity that triggers that model

◆ FastSimModelTracker() [2/2]

sim::FastSimModelTracker::FastSimModelTracker ( const std::string & aModelName,
ToolHandle< ISimG4ParticleSmearTool > & aSmearTool )
explicit

Constructor.

Parameters
aModelNameName of the fast simulation model.

◆ ~FastSimModelTracker()

sim::FastSimModelTracker::~FastSimModelTracker ( )
virtual

Member Function Documentation

◆ DoIt()

void sim::FastSimModelTracker::DoIt ( const G4FastTrack & aFastTrack,
G4FastStep & aFastStep )
finalvirtual

Apply the parametrisation.

Move the particle to the exit from the volume along the computed trajectory. Smear the momentum with the smearing tool m_smearTool.

Parameters
aFastTrackTrack.
aFastStepStep.

◆ IsApplicable()

G4bool sim::FastSimModelTracker::IsApplicable ( const G4ParticleDefinition & aParticle)
finalvirtual

Check if this model should be applied to this particle type.

Parameters
aParticleParticle definition (type).

◆ ModelTrigger()

G4bool sim::FastSimModelTracker::ModelTrigger ( const G4FastTrack & aFastTrack)
finalvirtual

Check if the model should be applied taking into account the kinematics of a track.

Parameters
aFastTrackTrack.

Member Data Documentation

◆ m_log

MsgStream sim::FastSimModelTracker::m_log
private

Message Stream.

◆ m_maxTriggerEta

double sim::FastSimModelTracker::m_maxTriggerEta
private

maximum eta that triggers model

◆ m_maxTriggerMomentum

double sim::FastSimModelTracker::m_maxTriggerMomentum
private

maximum P that triggers model

◆ m_minTriggerMomentum

double sim::FastSimModelTracker::m_minTriggerMomentum
private

minimum P that triggers model

◆ m_msgSvc

ServiceHandle<IMessageSvc> sim::FastSimModelTracker::m_msgSvc
private

Message Service.

◆ m_smearTool

ToolHandle<ISimG4ParticleSmearTool>& sim::FastSimModelTracker::m_smearTool
private

Pointer to a smearing tool.


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