CbmRoot
CbmTrdParSetGain.cxx
Go to the documentation of this file.
1 #include "CbmTrdParSetGain.h"
2 
3 #include <FairLogger.h> // for LOG, Logger
4 #include <FairParamList.h> // for FairParamList
5 
6 #include <TArrayI.h> // for TArrayI
7 
8 #include <map> // for map, map<>::iterator, operator!=, __m...
9 #include <utility> // for pair
10 
12  const char* title,
13  const char* context)
14  : CbmTrdParSet(name, title, context) {}
15 
16 //_____________________________________________________________________
17 void CbmTrdParSetGain::putParams(FairParamList* l) {
18  if (!l) return;
19  LOG(info) << GetName() << "::putParams(FairParamList*)";
20 
21  TArrayI moduleId(fNrOfModules);
22  Int_t idx(0);
23  for (std::map<Int_t, CbmTrdParMod*>::iterator imod = fModuleMap.begin();
24  imod != fModuleMap.end();
25  imod++) {
26  moduleId[idx++] = imod->first;
27  }
28  l->add("NrOfModules", fNrOfModules);
29  l->add("ModuleIdArray", moduleId);
30 }
CbmTrdParSet::fModuleMap
std::map< Int_t, CbmTrdParMod * > fModuleMap
Definition: CbmTrdParSet.h:43
CbmTrdParSetGain
Definition: CbmTrdParSetGain.h:16
CbmTrdParSet
Definition: CbmTrdParSet.h:19
CbmTrdParSet::fNrOfModules
Int_t fNrOfModules
no of modules in the current run
Definition: CbmTrdParSet.h:41
CbmTrdParSetGain.h
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmTrdParSetGain::putParams
void putParams(FairParamList *)
Definition: CbmTrdParSetGain.cxx:17
CbmTrdParSetGain::CbmTrdParSetGain
CbmTrdParSetGain(const char *name="CbmTrdParSetGain", const char *title="TRD GAIN parameters", const char *context="Default")
Definition: CbmTrdParSetGain.cxx:11