| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DsPmtModel Class Reference

#include <DsPmtModel.h>

Collaboration diagram for DsPmtModel:

[legend]
List of all members.

Public Member Functions

 DsPmtModel (const G4String &name, G4Envelope *volume, G4bool unique=false)
 DsPmtModel (const G4String &name)
virtual ~DsPmtModel ()
virtual G4bool IsApplicable (const G4ParticleDefinition &particle)
virtual G4bool ModelTrigger (const G4FastTrack &track)
virtual void DoIt (const G4FastTrack &track, G4FastStep &step)

Private Attributes

G4Hooksm_hooks

Detailed Description

Definition at line 9 of file DsPmtModel.h.


Constructor & Destructor Documentation

DsPmtModel::DsPmtModel ( const G4String &  name,
G4Envelope *  volume,
G4bool  unique = false 
)

Definition at line 29 of file DsPmtModel.cc.

00030     : G4VFastSimulationModel(name,volume,unique)
00031     , m_hooks(new G4Hooks)
00032 {
00033     G4cout << "DsPmtModel " << name <<  " created" << G4endl;
00034 }

DsPmtModel::DsPmtModel ( const G4String &  name  ) 

Definition at line 36 of file DsPmtModel.cc.

00037     : G4VFastSimulationModel(name)
00038     , m_hooks(new G4Hooks)
00039 {
00040     G4cout << "DsPmtModel " << name <<  " created" << G4endl;
00041 }

DsPmtModel::~DsPmtModel (  )  [virtual]

Definition at line 43 of file DsPmtModel.cc.

00044 {
00045     delete m_hooks; m_hooks = 0;
00046 }


Member Function Documentation

G4bool DsPmtModel::IsApplicable ( const G4ParticleDefinition &  particle  )  [virtual]

Definition at line 49 of file DsPmtModel.cc.

00050 {
00051     G4cout << "DsPmtModel checking if applicable to " << particle.GetParticleName() << G4endl;
00052     return &particle == G4OpticalPhoton::Definition();
00053 }

G4bool DsPmtModel::ModelTrigger ( const G4FastTrack &  track  )  [virtual]

Definition at line 55 of file DsPmtModel.cc.

00056 {
00057     // Veni, vidi, trigi
00058     return true;
00059 }

void DsPmtModel::DoIt ( const G4FastTrack &  track,
G4FastStep &  step 
) [virtual]

Definition at line 61 of file DsPmtModel.cc.

00062 {
00063     const G4Track* track = fastTrack.GetPrimaryTrack();
00064     double energy = track->GetKineticEnergy();
00065 
00066     fastStep.ProposeTrackStatus(fStopAndKill);
00067     fastStep.ProposePrimaryTrackPathLength(0.0);
00068     fastStep.ProposeTotalEnergyDeposited(energy);
00069 }


Member Data Documentation

G4Hooks* DsPmtModel::m_hooks [private]

Definition at line 24 of file DsPmtModel.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:53:28 2011 for DetSim by doxygen 1.4.7