GEMC  2.3
Geant4 Monte-Carlo Framework
pcal_hitprocess.h
Go to the documentation of this file.
1 #ifndef PCAL_HITPROCESS_H
2 #define PCAL_HITPROCESS_H 1
3 
4 // gemc headers
5 #include "HitProcess.h"
6 
7 // pc constants
8 // these are loaded with initWithRunNumber
10 {
11  public:
12 
13  // runNo is mandatory variable to keep track of run number changes
14  int runNo;
15  string variation;
16  string date;
17  string connection;
18  char database[80];
19 
20  vector<double> attlen[6][9][3]; // Attenuation Length (mm)
21 
22  double TDC_time_to_evio; // Conversion from time (ns) to EVIO TDC format
23  double ADC_MeV_to_evio; // Conversion from energy (MeV) to EVIO FADC250 format
24  double veff; // Effective velocity of scintillator light (mm/ns)
25  double pmtPEYld; // Number of p.e. divided by the energy deposited in MeV.
26  double pmtQE;
27  double pmtDynodeGain;
28  double pmtDynodeK;
29  double pmtFactor;
30 };
31 
32 // Class definition
34 {
35  public:
36 
38 
39  // constants initialized with initWithRunNumber
40  static pcConstants pcc;
41 
42  void initWithRunNumber(int runno);
43 
44  // - integrateDgt: returns digitized information integrated over the hit
45  map<string, double> integrateDgt(MHit*, int);
46 
47  // - multiDgt: returns multiple digitized information / hit
48  map< string, vector <int> > multiDgt(MHit*, int);
49 
50  // The pure virtual method processID returns a (new) identifier
51  // containing hit sharing information
52  vector<identifier> processID(vector<identifier>, G4Step*, detector);
53 
54  // creates the HitProcess
55  static HitProcess *createHitClass() {return new pcal_HitProcess;}
56 };
57 
58 #endif
double pmtDynodeGain
char database[80]
string variation
static HitProcess * createHitClass()
static pcConstants pcc
vector< double > attlen[6][9][3]
double ADC_MeV_to_evio
double TDC_time_to_evio
Definition: Hit.h:22
string connection
double pmtDynodeK
double pmtFactor