15 #ifndef RestCore_TRestDetectorSetup
16 #define RestCore_TRestDetectorSetup
18 #include <TRestMetadata.h>
38 Double_t fMeshVoltage;
40 Double_t fDetectorPressure;
42 TString fElectronicsGain;
44 TString fSamplingTime;
46 Double_t fSamplingInMicroSec;
49 inline Int_t GetRunNumber()
const {
return fRunNumber; }
50 inline Int_t GetSubRunNumber()
const {
return fSubRunNumber; }
51 inline TString GetRunTag()
const {
return fRunTag; }
53 void SetRunNumber(Int_t runNumber) { fRunNumber = runNumber; }
54 void SetSubRunNumber(Int_t subRunNumber) { fSubRunNumber = subRunNumber; }
56 inline Double_t GetSamplingInMicroSeconds()
const {
return fSamplingInMicroSec; }
58 Double_t GetFieldInVPerCm() {
return fDriftField * fDetectorPressure; }
60 inline Double_t GetPressureInBar()
const {
return fDetectorPressure; }
62 void InitFromFileName(TString fName);
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
void Initialize() override
Making default settings.