GEMC  2.2
Geant4 Monte-Carlo Framework
ecs_hitprocess.h
Go to the documentation of this file.
1 #ifndef ECS_HITPROCESS_H
2 #define ECS_HITPROCESS_H 1
3 
4 // gemc headers
5 #include "HitProcess.h"
6 
7 
8 // Class definition
9 class ecs_HitProcess : public HitProcess
10 {
11  public:
12 
14 
16  {
17  attlen = 3760.; // Attenuation Length (mm)
18  TDC_time_to_channel = 20.; // conversion from time (ns) to TDC channels.
19  ECfactor = 3.5; // number of p.e. divided by the energy deposited in MeV; value taken from gsim. see EC NIM paper table 1.
20  TDC_MAX = 4095; // max value for EC tdc.
21  ec_MeV_to_channel = 10.; // conversion from energy (MeV) to ADC channels
22  }
23 
24  // - integrateDgt: returns digitized information integrated over the hit
25  map<string, double> integrateDgt(MHit*, int);
26 
27  // - multiDgt: returns multiple digitized information / hit
28  map< string, vector <int> > multiDgt(MHit*, int);
29 
30  // The pure virtual method processID returns a (new) identifier
31  // containing hit sharing information
32  vector<identifier> processID(vector<identifier>, G4Step*, detector);
33 
34  // creates the HitProcess
35  static HitProcess *createHitClass() {return new ecs_HitProcess;}
36 
37 
38  private:
39 
40  double attlen; // Attenuation Length (mm)
41  double TDC_time_to_channel; // conversion from time (ns) to TDC channels.
42  double ECfactor; // number of p.e. divided by the energy deposited in MeV; value taken from gsim. see EC NIM paper table 1.
43  int TDC_MAX; // max value for EC tdc.
44  double ec_MeV_to_channel; // conversion from energy (MeV) to ADC channels
45 
46 
47 
48 };
49 
50 #endif
void init_subclass()
Definition: Hit.h:22
map< string, vector< int > > multiDgt(MHit *, int)
vector< identifier > processID(vector< identifier >, G4Step *, detector)
map< string, double > integrateDgt(MHit *, int)
static HitProcess * createHitClass()