forked from WCSim/WCSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWCSimWCPMT.hh
53 lines (33 loc) · 1.09 KB
/
WCSimWCPMT.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef WCSimWCPMT_h
#define WCSimWCPMT_h 1
#include "WCSimDarkRateMessenger.hh"
#include "WCSimDetectorConstruction.hh"
#include "G4VDigitizerModule.hh"
#include "WCSimWCDigi.hh"
#include "WCSimWCHit.hh"
#include "globals.hh"
#include "Randomize.hh"
#include <map>
#include <vector>
class WCSimWCPMT : public G4VDigitizerModule
{
public:
WCSimWCPMT(G4String name, WCSimDetectorConstruction*);
~WCSimWCPMT();
void ReInitialize() { DigiHitMapPMT.clear(); TriggerTimes.clear(); }
public:
void AddPMTDarkRate(WCSimWCDigitsCollection*);
void MakePeCorrection(WCSimWCHitsCollection*);
void Digitize();
G4double GetTriggerTime(int i) { return TriggerTimes[i];}
// void SetConversion(double iconvrate){ ConvRate = iconvrate; }
// static G4double GetLongTime() { return LongTime;}
G4double rn1pe();
G4double peSmeared;
// double ConvRate; // kHz
std::vector<G4double> TriggerTimes;
std::map<int,int> DigiHitMapPMT; // need to check if a hit already exists..
WCSimWCDigitsCollection* DigitsCollection;
WCSimDetectorConstruction* myDetector;
};
#endif