21 : fGasFileName(std::move(GasFileName))
23 InitializeParameters();
26 void AtGas::InitializeParameters()
28 ifstream gasFile(fGasFileName.Data(), std::fstream::in);
30 cerr <<
"Gas file " << fGasFileName.Data() <<
" not found!!" << endl;
38 while (getline(gasFile, line)) {
39 istringstream ss_line(line);
40 if (ss_line >> data >> val && data[0] !=
'#' && data[0] !=
'[') {
41 name = data.substr(0, data.find(
":"));
44 if (name ==
"EIonizeP10")
45 fEIonize = atof(val.c_str());
46 if (name ==
"DriftVelocity")
47 fDriftVelocity = atof(val.c_str());
48 if (name ==
"CoefAttachment")
49 fCoefAttachment = atof(val.c_str());
50 if (name ==
"CoefDiffusionLong")
51 fCoefDiffusionLong = atof(val.c_str());
52 if (name ==
"CoefDiffusionTrans")
53 fCoefDiffusionTrans = atof(val.c_str());
55 fGain = atoi(val.c_str());
62 fEIonize = GasToCopy.fEIonize;
63 fDriftVelocity = GasToCopy.fDriftVelocity;
64 fCoefAttachment = GasToCopy.fCoefAttachment;
65 fCoefDiffusionLong = GasToCopy.fCoefDiffusionLong;
66 fCoefDiffusionTrans = GasToCopy.fCoefDiffusionTrans;
67 fGain = GasToCopy.fGain;
76 return fDriftVelocity;
80 return fCoefAttachment;
84 return fCoefDiffusionLong;
88 return fCoefDiffusionTrans;
96 auto CS = (UInt_t)(gRandom->Gaus(50, 20));