CbmRoot
CbmTrdParManager.h
Go to the documentation of this file.
1 
14 #ifndef CBMTRDPARMANAGER_H
15 #define CBMTRDPARMANAGER_H
16 
17 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
18 #include <RtypesCore.h> // for Bool_t, kFALSE, Int_t, Option_t, kTRUE
19 #include <TString.h> // for TString
20 
21 #include "FairTask.h" // for FairTask, InitStatus
22 
23 #include "CbmTrdHardwareSetupR.h" //for CbmTrdHardwareSetupR
24 #include "CbmTrdParSet.h" // for GetParSetList
25 
26 class CbmTrdGeoHandler;
27 class CbmTrdParSetAsic;
28 class CbmTrdParSetDigi;
29 class CbmTrdParSetGain;
30 class CbmTrdParSetGas;
31 
36 class CbmTrdParManager : public FairTask {
37 public:
38  enum class ECbmTrdParSets : Int_t {
39  kBegin = 0,
45  };
56  CbmTrdParManager(Bool_t fasp = kFALSE);
57 
61  virtual ~CbmTrdParManager();
62 
66  virtual InitStatus Init();
67 
71  virtual void SetParContainers();
72 
76  virtual void SetFASP(Bool_t set = kTRUE) { fFASP = set; }
77 
81  virtual void Exec(Option_t* option);
82 
86  virtual void Finish();
87 
92  bool CreateParFilesFromGeometry(bool createRootFileOutput,
93  TString outDir = "");
94 
95  static void GetParSetList(std::vector<CbmTrdParSet*>* parSetList);
96  static void GetParFileExtensions(std::vector<std::string>* vec);
97 
98 private:
99  void CreateModuleParameters(const TString& path);
100  bool CreateParFilesFromGeometry(TString outDir = "");
101 
102  Int_t fMaxSectors; // Maximum number of sectors for all modules
103  Bool_t fFASP;
104 
105  // // Map of Unique TRD Module Id to corresponding CbmTrdModuleSim
106  // std::map<Int_t, CbmTrdModuleSim*> fModuleMap;
107 
112 
114 
115  TString fGeometryTag;
117 
120 
121  ClassDef(CbmTrdParManager, 2)
122 };
123 #endif // CBMTRDPARMANAGER_H
CbmTrdParManager::fMaxSectors
Int_t fMaxSectors
Definition: CbmTrdParManager.h:102
CbmTrdParManager::Init
virtual InitStatus Init()
Inherited from FairTask.
Definition: CbmTrdParManager.cxx:67
CbmTrdParManager::fHardwareSetup
CbmTrdHardwareSetupR fHardwareSetup
Definition: CbmTrdParManager.h:116
CbmTrdParManager::ECbmTrdParSets::kEnd
@ kEnd
CbmTrdParManager::CbmTrdParManager
CbmTrdParManager(Bool_t fasp=kFALSE)
enumerator for organising the existing parameter sets of the trd
Definition: CbmTrdParManager.cxx:41
CbmTrdParSetGas
Describe TRD module working settings (HV, etc)
Definition: CbmTrdParSetGas.h:15
CbmTrdParManager::SetParContainers
virtual void SetParContainers()
Inherited from FairTask.
Definition: CbmTrdParManager.cxx:59
CbmTrdParSetAsic
Describe TRD module ASIC settings (electronic gain, delays, etc)
Definition: CbmTrdParSetAsic.h:18
CbmTrdParManager::fDigiPar
CbmTrdParSetDigi * fDigiPar
The set of read-out description parameters.
Definition: CbmTrdParManager.h:109
CbmTrdParManager::GetParSetList
static void GetParSetList(std::vector< CbmTrdParSet * > *parSetList)
Definition: CbmTrdParManager.cxx:439
CbmTrdParManager::CbmTrdParManager
CbmTrdParManager(const CbmTrdParManager &)
CbmTrdParManager
Manipulate calibration parameters for the TRD detectors.
Definition: CbmTrdParManager.h:36
CbmTrdGeoHandler
Definition: CbmTrdGeoHandler.h:29
CbmTrdParSetGain
Definition: CbmTrdParSetGain.h:16
CbmTrdParManager::CreateParFilesFromGeometry
bool CreateParFilesFromGeometry(bool createRootFileOutput, TString outDir="")
Create parameter files from geometry in gGeoManager A run macro can be found in the trd cbm....
Definition: CbmTrdParManager.cxx:347
CbmTrdParManager::SetFASP
virtual void SetFASP(Bool_t set=kTRUE)
Change the default ASIC to FASP.
Definition: CbmTrdParManager.h:76
CbmTrdParManager::operator=
CbmTrdParManager & operator=(const CbmTrdParManager &)
CbmTrdParManager::CreateModuleParameters
void CreateModuleParameters(const TString &path)
Definition: CbmTrdParManager.cxx:135
CbmTrdParManager::~CbmTrdParManager
virtual ~CbmTrdParManager()
Destructor.
Definition: CbmTrdParManager.cxx:57
CbmTrdParManager::Finish
virtual void Finish()
Inherited from FairTask.
Definition: CbmTrdParManager.cxx:124
CbmTrdParManager::ECbmTrdParSets::kCbmTrdParSetDigi
@ kCbmTrdParSetDigi
CbmTrdHardwareSetupR.h
CbmTrdParManager::fGeoHandler
CbmTrdGeoHandler * fGeoHandler
Definition: CbmTrdParManager.h:113
CbmTrdParManager::ECbmTrdParSets::kCbmTrdParSetGas
@ kCbmTrdParSetGas
CbmTrdParManager::fFASP
Bool_t fFASP
Switch to FASP ASIC.
Definition: CbmTrdParManager.h:103
CbmTrdParManager::fGeometryTag
TString fGeometryTag
Definition: CbmTrdParManager.h:115
CbmTrdParManager::fGasPar
CbmTrdParSetGas * fGasPar
The set of gas description parameters.
Definition: CbmTrdParManager.h:110
CbmTrdHardwareSetupR
Definition: CbmTrdHardwareSetupR.h:35
CbmTrdParSet.h
CbmTrdParManager::ECbmTrdParSets::kCbmTrdParSetAsic
@ kCbmTrdParSetAsic
CbmTrdParSetDigi
Definition: CbmTrdParSetDigi.h:15
CbmTrdParManager::fAsicPar
CbmTrdParSetAsic * fAsicPar
The set of ASIC characterization parameters.
Definition: CbmTrdParManager.h:108
CbmTrdParManager::ECbmTrdParSets::kCbmTrdParSetGain
@ kCbmTrdParSetGain
CbmTrdParManager::ECbmTrdParSets::kBegin
@ kBegin
CbmTrdParManager::GetParFileExtensions
static void GetParFileExtensions(std::vector< std::string > *vec)
Definition: CbmTrdParManager.cxx:464
CbmTrdParManager::ECbmTrdParSets
ECbmTrdParSets
Definition: CbmTrdParManager.h:38
CbmTrdParManager::fGainPar
CbmTrdParSetGain * fGainPar
The set of gain conversion parameters.
Definition: CbmTrdParManager.h:111
CbmTrdParManager::Exec
virtual void Exec(Option_t *option)
Inherited from FairTask.
Definition: CbmTrdParManager.cxx:132