#include <DsPmtModel.h>
Collaboration diagram for DsPmtModel:
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 | |
G4Hooks * | m_hooks |
Definition at line 9 of file DsPmtModel.h.
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] |
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] |
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 }
G4Hooks* DsPmtModel::m_hooks [private] |
Definition at line 24 of file DsPmtModel.h.