21#include "FairParamList.h"
29 : FairParGenericSet(name, title, context)
38 for (Int_t plane = 0; plane <
fNumPlanes; plane++)
42 for (Int_t paddle = 0; paddle <
fNumPaddles; paddle++)
43 fTrigmap[p][plane]->AddAt(0, paddle);
51 for (Int_t plane = 0; plane <
fNumPlanes; plane++)
72 R3BLOG(fatal,
"FairParamList not found");
86 for (Int_t plane = 0; plane <
fNumPlanes; plane++)
90 sprintf(name,
"neulandplane%dPmt%dPar", plane + 1, p + 1);
91 list->add(name, *
fTrigmap[p][plane]);
101 R3BLOG(fatal,
"FairParamList not found");
104 if (!list->fill(
"neulandPlanesPar", &
fNumPlanes))
106 R3BLOG(info,
"Could not initialize neulandPlanesPar");
109 if (!list->fill(
"neulandPaddlesPar", &
fNumPaddles))
111 R3BLOG(info,
"Could not initialize neulandPaddlesPar");
115 for (Int_t p = 0; p <
fNumPmts; p++)
120 for (Int_t plane = 0; plane <
fNumPlanes; plane++)
121 for (Int_t p = 0; p <
fNumPmts; p++)
124 sprintf(name,
"neulandplane%dPmt%dPar", plane + 1, p + 1);
126 if (!(list->fill(name,
fTrigmap[p][plane])))
128 R3BLOG(error,
"Could not initialize " << name);
144 for (Int_t plane = 0; plane <
fNumPlanes; plane++)
145 for (Int_t p = 0; p <
fNumPmts; p++)
146 for (Int_t paddle = 0; paddle <
fNumPaddles; paddle++)
149 "Plane: " << plane + 1 <<
", pmt: " << p + 1 <<
", paddle: " << paddle + 1
150 <<
", value: " <<
fTrigmap[p][plane]->GetAt(paddle));
#define R3BLOG(severity, x)
ClassImp(R3BNeulandMappingPar)
std::vector< TArrayI * > fTrigmap[2]
virtual ~R3BNeulandMappingPar()
Destructor.
virtual void putParams(FairParamList *list)
Store all parameters using FairRuntimeDB.
Bool_t getParams(FairParamList *list)
Retrieve all parameters using FairRuntimeDB.
virtual void print()
Print values of parameters to the standard output.
virtual void clear()
Reset all parameters.
R3BNeulandMappingPar(const TString &name="neulandMappingPar", const TString &title="Neuland Mapping parameters", const TString &context="neulandMappingContext")
Standard constructor.