QwGeant4
QweakSimPMTOnly_PMTSD.hh
Go to the documentation of this file.
1 
2 // QweakSimPMTOnly_PMTSD.hh
3 // Martin McHugh
4 // 2013-08-01
5 
6 
7 #ifndef QweakSimPMTOnly_PMTSD_h
8 #define QweakSimPMTOnly_PMTSD_h
9 
10 //--- user includes
13 #include "QweakSimTrajectory.hh"
14 /////// --------------------------------------------------------------------
15 
16 //--- user classes
18 
19 /////// --------------------------------------------------------------------
20 class QweakSimPMTOnly_PMTSD : public G4VSensitiveDetector
21 {
22 
23  public:
24  QweakSimPMTOnly_PMTSD(G4String name, QweakSimUserInformation *userInfo);
26 
27  void Initialize(G4HCofThisEvent* HCE);
28  virtual G4bool ProcessHits(G4Step* aStep, G4TouchableHistory* );
29 
30  //A version of processHits that keeps aStep constant
31  G4bool ProcessHits_constStep(const G4Step*, G4TouchableHistory* );
32 
33  void EndOfEvent(G4HCofThisEvent* HCE);
34  QweakSimTrajectory* GetParentTrajectory(G4int parentID);
35 
36  private:
37 
41 
42 };
43 
44 
45 /////// --------------------------------------------------------------------
46 
47 #endif
48 
QweakSimPMTOnly_PMTHitsCollection * PMTOnly_PMTHitsCollection
Stores the information about the various tracks.
virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *)
QweakSimTrajectory * GetParentTrajectory(G4int parentID)
G4THitsCollection< QweakSimPMTOnly_PMTHit > QweakSimPMTOnly_PMTHitsCollection
void EndOfEvent(G4HCofThisEvent *HCE)
QweakSimUserInformation * myUserInfo
QweakSimPMTOnly_PMTSD(G4String name, QweakSimUserInformation *userInfo)
void Initialize(G4HCofThisEvent *HCE)
G4bool ProcessHits_constStep(const G4Step *, G4TouchableHistory *)