WCSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WCSimWCSD.hh
Go to the documentation of this file.
1 #ifndef WCSimWCSD_h
2 #define WCSimWCSD_h 1
3 
4 #include "G4VSensitiveDetector.hh"
5 #include "WCSimWCHit.hh"
7 
8 class G4Step;
9 class G4HCofThisEvent;
10 
11 class WCSimWCSD : public G4VSensitiveDetector
12 {
13  public:
14  WCSimWCSD(G4String,G4String,WCSimDetectorConstruction*, G4String);
15  ~WCSimWCSD();
16 
17  void Initialize(G4HCofThisEvent*);
18 
19  G4bool ProcessHits(G4Step*, G4TouchableHistory*);
20  void EndOfEvent(G4HCofThisEvent*);
21 
22  private:
23 
24  G4int HCID;
27  std::map<int,int> PMTHitMap; // Whether a PMT was hit already
28 
29 
30  G4String detectorElement;
31 };
32 
33 #endif
34 
G4int HCID
Definition: WCSimWCSD.hh:24
void EndOfEvent(G4HCofThisEvent *)
Definition: WCSimWCSD.cc:224
void Initialize(G4HCofThisEvent *)
Definition: WCSimWCSD.cc:42
G4THitsCollection< WCSimWCHit > WCSimWCHitsCollection
Definition: WCSimWCHit.hh:169
WCSimWCSD(G4String, G4String, WCSimDetectorConstruction *, G4String)
Definition: WCSimWCSD.cc:20
G4String detectorElement
Definition: WCSimWCSD.hh:30
WCSimWCHitsCollection * hitsCollection
Definition: WCSimWCSD.hh:26
G4bool ProcessHits(G4Step *, G4TouchableHistory *)
Definition: WCSimWCSD.cc:70
~WCSimWCSD()
Definition: WCSimWCSD.cc:40
WCSimDetectorConstruction * fdet
Definition: WCSimWCSD.hh:25
std::map< int, int > PMTHitMap
Definition: WCSimWCSD.hh:27