Geant4  10.02.p02
Par02FastSimModelTracker Class Reference

Shortcut to the ordinary tracking for tracking detectors. More...

#include <Par02FastSimModelTracker.hh>

+ Inheritance diagram for Par02FastSimModelTracker:
+ Collaboration diagram for Par02FastSimModelTracker:

Public Member Functions

 Par02FastSimModelTracker (G4String aModelName, G4Region *aEnvelope, Par02DetectorParametrisation::Parametrisation aParamType)
 A constructor. More...
 
 Par02FastSimModelTracker (G4String aModelName, G4Region *aEnvelope)
 A constructor. More...
 
 Par02FastSimModelTracker (G4String aModelName)
 A constructor. More...
 
 ~Par02FastSimModelTracker ()
 
virtual G4bool IsApplicable (const G4ParticleDefinition &aParticle)
 Checks if this model should be applied to this particle type. More...
 
virtual G4bool ModelTrigger (const G4FastTrack &aFastTrack)
 Checks if the model should be applied taking into account the kinematics of a track. More...
 
virtual void DoIt (const G4FastTrack &aFastTrack, G4FastStep &aFastStep)
 Calculates the final position (at the outer boundary of the tracking detector) of a particle with the momentum at the entrance of the tracking detector. Smears the particle momentum and saves it, together with the tracking detector resolution and efficiency to the Par02PrimaryParticleInformation. More...
 
- Public Member Functions inherited from G4VFastSimulationModel
 G4VFastSimulationModel (const G4String &aName)
 
 G4VFastSimulationModel (const G4String &aName, G4Envelope *, G4bool IsUnique=FALSE)
 
virtual ~G4VFastSimulationModel ()
 
virtual G4bool AtRestModelTrigger (const G4FastTrack &)
 
virtual void AtRestDoIt (const G4FastTrack &, G4FastStep &)
 
const G4String GetName () const
 
G4bool operator== (const G4VFastSimulationModel &) const
 

Private Attributes

Par02DetectorParametrisationfCalculateParametrisation
 A pointer to Par02DetectorParametrisation used to get the efficiency and resolution of the tracking detector for a given particle and parametrisation type. More...
 
Par02DetectorParametrisation::Parametrisation fParametrisation
 A parametrisation type. More...
 

Detailed Description

Shortcut to the ordinary tracking for tracking detectors.

The fast simulation model describes what should be done instead of a normal tracking. Instead of the ordinary tracking, a particle momentum at the entrance of the tracking detector is smeared (by Par02Smearer::SmearMomentum()) and the particle is placed at the tracking detector exit, at the place it would reach without the change of its momentum. Based on G4 examples/extended/parametrisations/Par01/include/Par01EMShowerModel.hh .

Author
Anna Zaborowska

Definition at line 50 of file Par02FastSimModelTracker.hh.

Constructor & Destructor Documentation

Par02FastSimModelTracker::Par02FastSimModelTracker ( G4String  aModelName,
G4Region aEnvelope,
Par02DetectorParametrisation::Parametrisation  aParamType 
)

A constructor.

Parameters
aModelNameA name of the fast simulation model.
aEnvelopeA region where the model can take over the ordinary tracking.
aParamTypeA parametrisation type.

Definition at line 55 of file Par02FastSimModelTracker.cc.

Par02FastSimModelTracker::Par02FastSimModelTracker ( G4String  aModelName,
G4Region aEnvelope 
)

A constructor.

Parameters
aModelNameA name of the fast simulation model.
aEnvelopeA region where the model can take over the ordinary tracking.

Definition at line 62 of file Par02FastSimModelTracker.cc.

Par02FastSimModelTracker::Par02FastSimModelTracker ( G4String  aModelName)

A constructor.

Parameters
aModelNameA name of the fast simulation model.

Definition at line 69 of file Par02FastSimModelTracker.cc.

Par02FastSimModelTracker::~Par02FastSimModelTracker ( )

Definition at line 75 of file Par02FastSimModelTracker.cc.

Member Function Documentation

void Par02FastSimModelTracker::DoIt ( const G4FastTrack aFastTrack,
G4FastStep aFastStep 
)
virtual

Calculates the final position (at the outer boundary of the tracking detector) of a particle with the momentum at the entrance of the tracking detector. Smears the particle momentum and saves it, together with the tracking detector resolution and efficiency to the Par02PrimaryParticleInformation.

Parameters
aFastTrackA track.
aFastStepA step.

Implements G4VFastSimulationModel.

Definition at line 92 of file Par02FastSimModelTracker.cc.

References G4PathFinder::ComputeStep(), Par02DetectorParametrisation::eTRACKER, fCalculateParametrisation, Par02Output::FillHistogram(), fParametrisation, G4cout, G4endl, G4Track::GetCurrentStepNumber(), Par02EventInformation::GetDoSmearing(), G4Track::GetDynamicParticle(), G4EventManager::GetEventManager(), G4PathFinder::GetInstance(), G4Track::GetMomentum(), G4Track::GetParentID(), G4DynamicParticle::GetPrimaryParticle(), G4FastTrack::GetPrimaryTrack(), G4EventManager::GetUserInformation(), G4Track::GetVolume(), Par02Output::Instance(), Par02Smearer::Instance(), m, MeV, G4FastStep::ProposePrimaryTrackFinalPosition(), and G4FieldTrackUpdator::Update().

+ Here is the call graph for this function:

G4bool Par02FastSimModelTracker::IsApplicable ( const G4ParticleDefinition aParticle)
virtual

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

Parameters
aParticleA particle definition (type).

Implements G4VFastSimulationModel.

Definition at line 79 of file Par02FastSimModelTracker.cc.

References G4ParticleDefinition::GetPDGCharge().

+ Here is the call graph for this function:

G4bool Par02FastSimModelTracker::ModelTrigger ( const G4FastTrack aFastTrack)
virtual

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

Parameters
aFastTrackA track.

Implements G4VFastSimulationModel.

Definition at line 86 of file Par02FastSimModelTracker.cc.

Member Data Documentation

Par02DetectorParametrisation* Par02FastSimModelTracker::fCalculateParametrisation
private

A pointer to Par02DetectorParametrisation used to get the efficiency and resolution of the tracking detector for a given particle and parametrisation type.

Definition at line 93 of file Par02FastSimModelTracker.hh.

Referenced by DoIt().

Par02DetectorParametrisation::Parametrisation Par02FastSimModelTracker::fParametrisation
private

A parametrisation type.

Definition at line 96 of file Par02FastSimModelTracker.hh.

Referenced by DoIt().


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