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