Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
RE05TrackerSD Class Reference

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE05TrackerSD:
G4VSensitiveDetector

Public Member Functions

 RE05TrackerSD (G4String name)
 
virtual ~RE05TrackerSD ()
 
virtual void Initialize (G4HCofThisEvent *HCE)
 
virtual G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 
virtual void EndOfEvent (G4HCofThisEvent *HCE)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 

Private Attributes

RE05TrackerHitsCollectionfTrackerCollection
 

Detailed Description

Definition at line 123 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE05TrackerSD()

RE05TrackerSD::RE05TrackerSD ( G4String  name)

Definition at line 40 of file RE05TrackerSD.cc.

43{
44 G4String HCname;
45 collectionName.insert(HCname="trackerCollection");
46}
RE05TrackerHitsCollection * fTrackerCollection

◆ ~RE05TrackerSD()

RE05TrackerSD::~RE05TrackerSD ( )
virtual

Definition at line 50 of file RE05TrackerSD.cc.

51{}

Member Function Documentation

◆ Initialize()

void RE05TrackerSD::Initialize ( G4HCofThisEvent HCE)
virtual

Definition at line 55 of file RE05TrackerSD.cc.

56{
57 static int HCID = -1;
59 (SensitiveDetectorName,collectionName[0]);
60 if(HCID<0)
61 { HCID = GetCollectionID(0); }
62 HCE->AddHitsCollection(HCID,fTrackerCollection);
63}
G4THitsCollection< RE05TrackerHit > RE05TrackerHitsCollection

◆ ProcessHits()

G4bool RE05TrackerSD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
virtual

Definition at line 67 of file RE05TrackerSD.cc.

68{
69 G4double edep = aStep->GetTotalEnergyDeposit();
70 if(edep==0.) return false;
71
72 RE05TrackerHit* newHit = new RE05TrackerHit();
73 newHit->SetEdep( edep );
74 newHit->SetPos( aStep->GetPreStepPoint()->GetPosition() );
75 fTrackerCollection->insert( newHit );
76
77 return true;
78}
void SetEdep(G4double de)
void SetPos(G4ThreeVector xyz)

◆ EndOfEvent()

void RE05TrackerSD::EndOfEvent ( G4HCofThisEvent HCE)
virtual

Definition at line 82 of file RE05TrackerSD.cc.

83{}

◆ clear()

void RE05TrackerSD::clear ( )
virtual

Definition at line 87 of file RE05TrackerSD.cc.

88{}

◆ DrawAll()

void RE05TrackerSD::DrawAll ( )
virtual

Definition at line 92 of file RE05TrackerSD.cc.

93{}

◆ PrintAll()

void RE05TrackerSD::PrintAll ( )
virtual

Definition at line 97 of file RE05TrackerSD.cc.

98{}

Member Data Documentation

◆ fTrackerCollection

RE05TrackerHitsCollection* RE05TrackerSD::fTrackerCollection
private

Definition at line 54 of file RE05TrackerSD.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration