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

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE01TrackerSD:
G4VSensitiveDetector

Public Member Functions

 RE01TrackerSD (G4String name)
 
virtual ~RE01TrackerSD ()
 
virtual void Initialize (G4HCofThisEvent *HCE)
 
virtual void EndOfEvent (G4HCofThisEvent *HCE)
 

Protected Member Functions

virtual G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 

Private Attributes

RE01TrackerHitsCollectionfTrackerCollection
 

Detailed Description

Definition at line 35 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE01TrackerSD()

RE01TrackerSD::RE01TrackerSD ( G4String  name)

Definition at line 41 of file RE01TrackerSD.cc.

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

◆ ~RE01TrackerSD()

RE01TrackerSD::~RE01TrackerSD ( )
virtual

Definition at line 49 of file RE01TrackerSD.cc.

49{;}

Member Function Documentation

◆ Initialize()

void RE01TrackerSD::Initialize ( G4HCofThisEvent HCE)
virtual

Definition at line 52 of file RE01TrackerSD.cc.

53{
54 static int HCID = -1;
56 (SensitiveDetectorName,collectionName[0]);
57 if(HCID<0)
58 { HCID = GetCollectionID(0); }
59 HCE->AddHitsCollection(HCID,fTrackerCollection);
60}
G4THitsCollection< RE01TrackerHit > RE01TrackerHitsCollection

◆ EndOfEvent()

void RE01TrackerSD::EndOfEvent ( G4HCofThisEvent HCE)
virtual

Definition at line 83 of file RE01TrackerSD.cc.

84{;}

◆ ProcessHits()

G4bool RE01TrackerSD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
protectedvirtual

Definition at line 63 of file RE01TrackerSD.cc.

64{
65 G4double edep = aStep->GetTotalEnergyDeposit();
66 if(edep==0.) return false;
67
68 RE01TrackerHit* newHit = new RE01TrackerHit();
69 newHit->SetEdep( edep );
70 newHit->SetPos( aStep->GetPreStepPoint()->GetPosition() );
71 RE01TrackInformation* trackInfo =
72 (RE01TrackInformation*)(aStep->GetTrack()->GetUserInformation());
73 if(trackInfo->GetTrackingStatus()>0)
74 { newHit->SetTrackID( aStep->GetTrack()->GetTrackID() ); }
75 else
76 { newHit->SetTrackID( -1 ); }
77 fTrackerCollection->insert( newHit );
78
79 return true;
80}
void SetTrackID(G4int i)
void SetEdep(G4double de)
void SetPos(G4ThreeVector xyz)

Member Data Documentation

◆ fTrackerCollection

RE01TrackerHitsCollection* RE01TrackerSD::fTrackerCollection
private

Definition at line 53 of file RE01TrackerSD.hh.


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

Applications | User Support | Publications | Collaboration