2 #include "TRestDetectorDriftVolume.h"
9 TRestDetectorDriftVolume::TRestDetectorDriftVolume() { Initialize(); }
10 TRestDetectorDriftVolume::TRestDetectorDriftVolume(
const char* configFilename,
string name)
12 LoadConfigFromFile(configFilename, name);
24 fElectronLifeTime = 0;
25 fLongitudinalDiffusion = 0;
26 fTransversalDiffusion = 0;
27 fTownsendCoefficient = 0;
28 fAttachmentCoefficient = 0;
31 fTemperatureInK = 300;
38 fElectricField = GetDblParameterWithUnits(
"electricField", 0.);
39 fDriftVelocity = GetDblParameterWithUnits(
"driftVelocity", 0.);
40 fElectronLifeTime = GetDblParameterWithUnits(
"electronLifeTime", 0.);
41 fLongitudinalDiffusion = GetDblParameterWithUnits(
"longitudinalDiffusion", 0.);
42 fTransversalDiffusion = GetDblParameterWithUnits(
"transversalDiffusion", 0.);
43 fTownsendCoefficient = GetDblParameterWithUnits(
"townsendCoefficient", 0.);
44 fAttachmentCoefficient = GetDblParameterWithUnits(
"attachmentCoefficient", 0.);
46 fPressureInAtm = GetDblParameterWithUnits(
"pressure");
47 fTemperatureInK = GetDblParameterWithUnits(
"temperature");
53 RESTMetadata <<
"Drift Volume Material : " << fMaterial <<
", W-value : " << fW <<
" eV" <<
RESTendl;
54 RESTMetadata <<
"Electric Field : " << fElectricField * V / cm <<
" V/cm " <<
RESTendl;
55 RESTMetadata <<
"Drift Speed : " << fDriftVelocity * mm / us <<
" mm/us" <<
RESTendl;
56 RESTMetadata <<
"Electron LifeTime : " << fElectronLifeTime * ns <<
" ns" <<
RESTendl;
57 RESTMetadata <<
"Longitudinal Diffusion : " << fLongitudinalDiffusion <<
" (cm)^1/2" <<
RESTendl;
58 RESTMetadata <<
"Transversal Diffusion : " << fTransversalDiffusion <<
" (cm)^1/2" <<
RESTendl;
59 RESTMetadata <<
"******************************************" <<
RESTendl;
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
void Initialize() override
Making default settings.
Double_t StringToDouble(std::string in)
Gets a double from a string.
This namespace defines the unit conversion for different units which are understood by REST.