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

In This Package:

DsRpcModel Class Reference

#include <DsRpcModel.h>

Collaboration diagram for DsRpcModel:

[legend]
List of all members.

Public Member Functions

 DsRpcModel (const G4String &name, G4Envelope *volume, G4bool unique=false)
 DsRpcModel (const G4String &name)
virtual ~DsRpcModel ()
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 DsRpcModel.h.


Constructor & Destructor Documentation

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

Definition at line 31 of file DsRpcModel.cc.

00032     : G4VFastSimulationModel(name,volume,unique)
00033     , m_hooks(new G4Hooks)
00034 {
00035     G4cout << "DsRpcModel " << name <<  " created" << G4endl;
00036 }

DsRpcModel::DsRpcModel ( const G4String &  name  ) 

Definition at line 38 of file DsRpcModel.cc.

00039     : G4VFastSimulationModel(name)
00040     , m_hooks(new G4Hooks)
00041 {
00042     G4cout << "DsRpcModel " << name <<  " created" << G4endl;
00043 }

DsRpcModel::~DsRpcModel (  )  [virtual]

Definition at line 45 of file DsRpcModel.cc.

00046 {
00047     delete m_hooks; m_hooks = 0;
00048 }


Member Function Documentation

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

Definition at line 51 of file DsRpcModel.cc.

00052 {
00053     G4cout << "DsRpcModel " << particle.GetParticleName() << G4endl;
00054     return &particle == G4MuonPlus::Definition()|| &particle == G4MuonMinus::Definition();
00055 }

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

Definition at line 57 of file DsRpcModel.cc.

00058 {
00059     // Veni, vidi, trigi
00060     return true;
00061 }

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

Definition at line 63 of file DsRpcModel.cc.

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


Member Data Documentation

G4Hooks* DsRpcModel::m_hooks [private]

Definition at line 24 of file DsRpcModel.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:29 2011 for DetSim by doxygen 1.4.7