20 #define HIT_PROCESS_H 1 73 verbosity = gemcOpt.optMap[
"HIT_VERBOSITY"].arg;
74 log_msg =
" > " + HCname +
" Hit Process ";
88 map<string, double> integrateRaw(
MHit*,
int,
bool);
92 map< string, vector <double> > allRaws(
MHit*,
int);
95 virtual map<string, double> integrateDgt(
MHit*,
int) = 0;
98 virtual map< double, double > signalVT(
MHit*,
int) ;
101 virtual map< string, vector <int> > multiDgt(
MHit*,
int) = 0;
105 virtual vector<identifier> processID(vector<identifier>, G4Step*,
detector) = 0;
119 inline double DGauss(
double x,
double *par,
double Edep,
double stepTime)
121 double t0 = par[0] + stepTime;
122 double rise = par[1]/3;
123 double fall = par[2]/3;
124 double ampl = Edep*par[3]/2;
126 double peak = t0 + 3*rise;
131 return - ampl*exp(-0.5*pow((x-peak)/rise, 2)) - ampl*exp(-0.5*pow((x-peak)/fall, 2));
void init(string name, goptions go, map< string, double > gp)
set< string > getListOfHitProcessHit(map< string, HitProcess_Factory >)
double DGauss(double x, double *par, double Edep, double stepTime)
virtual void init_subclass()
HitProcess * getHitProcess(map< string, HitProcess_Factory > *hitProcessMap, string)
map< string, double > gpars