GEMC  2.3
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 // ecs constants
8 // these are loaded with initWithRunNumber
10 {
11  public:
12  // runNo is mandatory variable to keep track of run number changes
13  int runNo;
14 
15  double NSTRIPS; // Number of strips
16  double attlen; // Attenuation Length (mm)
17  double TDC_time_to_channel; // conversion from time (ns) to TDC channels.
18  double ECfactor; // number of p.e. divided by the energy deposited in MeV; value taken from gsim. see EC NIM paper table 1.
19  int TDC_MAX; // max value for EC tdc.
20  double ec_MeV_to_channel; // conversion from energy (MeV) to ADC channels
21 };
22 
23 // Class definition
24 class ecs_HitProcess : public HitProcess
25 {
26  public:
27 
29 
30  // constants initialized with initWithRunNumber
31  static ecsConstants ecc;
32 
33  void initWithRunNumber(int runno);
34 
35  // - integrateDgt: returns digitized information integrated over the hit
36  map<string, double> integrateDgt(MHit*, int);
37 
38  // - multiDgt: returns multiple digitized information / hit
39  map< string, vector <int> > multiDgt(MHit*, int);
40 
41  // The pure virtual method processID returns a (new) identifier
42  // containing hit sharing information
43  vector<identifier> processID(vector<identifier>, G4Step*, detector);
44 
45  // creates the HitProcess
46  static HitProcess *createHitClass() {return new ecs_HitProcess;}
47 
48 };
49 
50 #endif
double ec_MeV_to_channel
double TDC_time_to_channel
Definition: Hit.h:22
static ecsConstants ecc
static HitProcess * createHitClass()