Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Par01PionShowerModel Class Reference

#include <Par01PionShowerModel.hh>

Inheritance diagram for Par01PionShowerModel:
Collaboration diagram for Par01PionShowerModel:

Public Member Functions

 Par01PionShowerModel (G4String, G4Region *)
 
 Par01PionShowerModel (G4String)
 
 ~Par01PionShowerModel ()
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual G4bool ModelTrigger (const G4FastTrack &)
 
virtual void DoIt (const G4FastTrack &, G4FastStep &)
 
- 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
 

Detailed Description

Definition at line 46 of file Par01PionShowerModel.hh.

Constructor & Destructor Documentation

Par01PionShowerModel::Par01PionShowerModel ( G4String  modelName,
G4Region envelope 
)

Definition at line 49 of file Par01PionShowerModel.cc.

50 : G4VFastSimulationModel(modelName, envelope)
51 {
52  fFakeStep = new G4Step();
53  fFakePreStepPoint = fFakeStep->GetPreStepPoint();
54  fFakePostStepPoint = fFakeStep->GetPostStepPoint();
55  fTouchableHandle = new G4TouchableHistory();
56  fpNavigator = new G4Navigator();
57  fNaviSetup = false;
58 }
G4StepPoint * GetPreStepPoint() const
Definition: G4Step.hh:76
G4StepPoint * GetPostStepPoint() const
G4VFastSimulationModel(const G4String &aName)

Here is the call graph for this function:

Par01PionShowerModel::Par01PionShowerModel ( G4String  modelName)

Definition at line 62 of file Par01PionShowerModel.cc.

63 : G4VFastSimulationModel(modelName)
64 {
65  fFakeStep = new G4Step();
66  fFakePreStepPoint = fFakeStep->GetPreStepPoint();
67  fFakePostStepPoint = fFakeStep->GetPostStepPoint();
68  fTouchableHandle = new G4TouchableHistory();
69  fpNavigator = new G4Navigator();
70  fNaviSetup = false;
71 }
G4StepPoint * GetPreStepPoint() const
Definition: G4Step.hh:76
G4StepPoint * GetPostStepPoint() const
G4VFastSimulationModel(const G4String &aName)

Here is the call graph for this function:

Par01PionShowerModel::~Par01PionShowerModel ( )

Definition at line 75 of file Par01PionShowerModel.cc.

76 {
77  delete fFakeStep;
78  delete fpNavigator;
79 }

Member Function Documentation

void Par01PionShowerModel::DoIt ( const G4FastTrack fastTrack,
G4FastStep fastStep 
)
virtual

Implements G4VFastSimulationModel.

Definition at line 101 of file Par01PionShowerModel.cc.

103 {
104  // G4cout << "Par01PionShowerModel::DoIt" << G4endl;
105 
106  // Kill the parameterised particle:
107  fastStep.KillPrimaryTrack();
108  fastStep.ProposePrimaryTrackPathLength(0.0);
110 
111  // split into "energy spots" energy according to the shower shape:
112  Explode(fastTrack);
113 
114  // and put those energy spots into the crystals:
115  BuildDetectorResponse();
116 }
const G4Track * GetPrimaryTrack() const
Definition: G4FastTrack.hh:208
G4double GetKineticEnergy() const
void ProposePrimaryTrackPathLength(G4double)
void ProposeTotalEnergyDeposited(G4double anEnergyPart)
void KillPrimaryTrack()
Definition: G4FastStep.cc:88

Here is the call graph for this function:

G4bool Par01PionShowerModel::IsApplicable ( const G4ParticleDefinition particleType)
virtual

Implements G4VFastSimulationModel.

Definition at line 83 of file Par01PionShowerModel.cc.

84 {
85  return
86  &particleType == G4PionMinus::PionMinusDefinition() ||
87  &particleType == G4PionPlus::PionPlusDefinition();
88 }
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93

Here is the call graph for this function:

G4bool Par01PionShowerModel::ModelTrigger ( const G4FastTrack )
virtual

Implements G4VFastSimulationModel.

Definition at line 92 of file Par01PionShowerModel.cc.

93 {
94  // Applies the parameterisation always:
95  // ie as soon as the pion enters the envelope
96  return true;
97 }

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