/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
DsRpcModel Class Reference

#include <DsRpcModel.h>

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

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

Definition at line 38 of file DsRpcModel.cc.

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

Definition at line 45 of file DsRpcModel.cc.

{
    delete m_hooks; m_hooks = 0;
}

Member Function Documentation

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

Definition at line 51 of file DsRpcModel.cc.

{
    G4cout << "DsRpcModel " << particle.GetParticleName() << G4endl;
    return &particle == G4MuonPlus::Definition()|| &particle == G4MuonMinus::Definition();
}
G4bool DsRpcModel::ModelTrigger ( const G4FastTrack &  track) [virtual]

Definition at line 57 of file DsRpcModel.cc.

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

Definition at line 63 of file DsRpcModel.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 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 Fri May 16 2014 10:17:58 for DetSim by doxygen 1.7.4