CbmRoot
Loading...
Searching...
No Matches
CbmTrdParManager.h
Go to the documentation of this file.
1/* Copyright (C) 2008-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Pascal Raisig */
4
18#ifndef CBMTRDPARMANAGER_H
19#define CBMTRDPARMANAGER_H
20
21#include "CbmTrdHardwareSetupR.h" //for CbmTrdHardwareSetupR
22#include "CbmTrdParSet.h" // for GetParSetList
23
24#include "FairTask.h" // for FairTask, InitStatus
25
26#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
27#include <RtypesCore.h> // for Bool_t, kFALSE, Int_t, Option_t, kTRUE
28#include <TString.h> // for TString
29
30#include <memory>
31
36class CbmTrdParSetGas;
37class CbmTrdParSetGeo;
38
43class CbmTrdParManager : public FairTask {
44public:
65 CbmTrdParManager(Bool_t fasp = kFALSE);
66
70 virtual ~CbmTrdParManager();
71
75 virtual InitStatus Init();
76
80 virtual void SetParContainers();
81
85 virtual void SetFASP(Bool_t set = kTRUE) { fFASP = set; }
86
90 virtual void Exec(Option_t* option);
91
95 virtual void Finish();
96
101 bool CreateParFilesFromGeometry(bool createRootFileOutput, TString outDir = "");
102
103 static void GetParSetList(std::vector<std::shared_ptr<CbmTrdParSet>>* parSetList);
104 static void GetParFileExtensions(std::vector<std::string>* vec);
105
106private:
107 void CreateModuleParameters(const TString& path);
108 bool CreateParFilesFromGeometry(TString outDir = "");
109
110 Int_t fMaxSectors; // Maximum number of sectors for all modules
111 Bool_t fFASP;
112
113 // // Map of Unique TRD Module Id to corresponding CbmTrdModuleSim
114 // std::map<Int_t, CbmTrdModuleSim*> fModuleMap;
115
121
123
126
129
130 ClassDef(CbmTrdParManager, 3)
131};
132#endif // CBMTRDPARMANAGER_H
Manipulate calibration parameters for the TRD detectors.
static void GetParFileExtensions(std::vector< std::string > *vec)
virtual void SetParContainers()
Inherited from FairTask.
Bool_t fFASP
Switch to FASP ASIC.
CbmTrdParSetDigi * fDigiPar
The set of read-out description parameters.
bool CreateParFilesFromGeometry(bool createRootFileOutput, TString outDir="")
Create parameter files from geometry in gGeoManager A run macro can be found in the trd cbm....
virtual void SetFASP(Bool_t set=kTRUE)
Change the default ASIC to FASP.
CbmTrdParSetGeo * fGeoPar
The set of gain conversion parameters.
void CreateModuleParameters(const TString &path)
virtual void Finish()
Inherited from FairTask.
CbmTrdParManager(Bool_t fasp=kFALSE)
enumerator for organising the existing parameter sets of the trd
CbmTrdParManager & operator=(const CbmTrdParManager &)
static void GetParSetList(std::vector< std::shared_ptr< CbmTrdParSet > > *parSetList)
virtual InitStatus Init()
Inherited from FairTask.
virtual ~CbmTrdParManager()
Destructor.
CbmTrdParSetGas * fGasPar
The set of gas description parameters.
CbmTrdParSetAsic * fAsicPar
The set of ASIC characterization parameters.
CbmTrdParManager(const CbmTrdParManager &)
CbmTrdGeoHandler * fGeoHandler
CbmTrdHardwareSetupR fHardwareSetup
virtual void Exec(Option_t *option)
Inherited from FairTask.
CbmTrdParSetGain * fGainPar
The set of gain conversion parameters.
Describe TRD module ASIC settings (electronic gain, delays, etc)
Describe TRD module working settings (HV, etc)