/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
DsPmtModel Class Reference

#include <DsPmtModel.h>

Collaboration diagram for DsPmtModel:
Collaboration graph
[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.

    : G4VFastSimulationModel(name,volume,unique)
    , m_hooks(new G4Hooks)
{
    G4cout << "DsPmtModel " << name <<  " created" << G4endl;
}
DsPmtModel::DsPmtModel ( const G4String &  name)

Definition at line 36 of file DsPmtModel.cc.

    : G4VFastSimulationModel(name)
    , m_hooks(new G4Hooks)
{
    G4cout << "DsPmtModel " << name <<  " created" << G4endl;
}
DsPmtModel::~DsPmtModel ( ) [virtual]

Definition at line 43 of file DsPmtModel.cc.

{
    delete m_hooks; m_hooks = 0;
}

Member Function Documentation

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

Definition at line 49 of file DsPmtModel.cc.

{
    G4cout << "DsPmtModel checking if applicable to " << particle.GetParticleName() << G4endl;
    return &particle == G4OpticalPhoton::Definition();
}
G4bool DsPmtModel::ModelTrigger ( const G4FastTrack &  track) [virtual]

Definition at line 55 of file DsPmtModel.cc.

{
    // Veni, vidi, trigi
    return true;
}
void DsPmtModel::DoIt ( const G4FastTrack &  track,
G4FastStep &  step 
) [virtual]

Definition at line 61 of file DsPmtModel.cc.

{
    const G4Track* track = fastTrack.GetPrimaryTrack();
    double energy = track->GetKineticEnergy();

    fastStep.ProposeTrackStatus(fStopAndKill);
    fastStep.ProposePrimaryTrackPathLength(0.0);
    fastStep.ProposeTotalEnergyDeposited(energy);
}

Member Data Documentation

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 Fri May 16 2014 10:17:58 for DetSim by doxygen 1.7.4