CbmRoot
Loading...
Searching...
No Matches
CbmTrdParSetGain.cxx
Go to the documentation of this file.
1/* Copyright (C) 2018-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Alexandru Bercuci */
4
5#include "CbmTrdParSetGain.h"
6
7#include <FairParamList.h> // for FairParamList
8#include <Logger.h> // for LOG, Logger
9
10#include <TArrayI.h> // for TArrayI
11
12#include <map> // for map, map<>::iterator, operator!=, __m...
13#include <utility> // for pair
14
15CbmTrdParSetGain::CbmTrdParSetGain(const char* name, const char* title, const char* context)
16 : CbmTrdParSet(name, title, context)
17{
18}
19
20//_____________________________________________________________________
21void CbmTrdParSetGain::putParams(FairParamList* l)
22{
23 if (!l) return;
24 LOG(info) << GetName() << "::putParams(FairParamList*)";
25
26 TArrayI moduleId(fNrOfModules);
27 Int_t idx(0);
28 for (std::map<Int_t, CbmTrdParMod*>::iterator imod = fModuleMap.begin(); imod != fModuleMap.end(); imod++) {
29 moduleId[idx++] = imod->first;
30 }
31 l->add("NrOfModules", fNrOfModules);
32 l->add("ModuleIdArray", moduleId);
33}
ClassImp(CbmConverterManager)
CbmTrdParSetGain(const char *name="CbmTrdParSetGain", const char *title="TRD GAIN parameters", const char *context="Default")
void putParams(FairParamList *)
std::map< Int_t, CbmTrdParMod * > fModuleMap
Int_t fNrOfModules
no of modules in the current run