23 , ftutdetdigipar(new TArrayF(10))
24 , ftutdetdigiparsector()
25 , ftutdetdigiparstation(-1)
43 LOG(info) <<
"ftutdetdigiparstation: " << ftutdetdigiparstation;
44 Int_t size = ftutdetdigiparsector.GetSize();
45 LOG(info) <<
"size: " << size;
46 for (Int_t i = 0; i < size; i++) {
47 LOG(info) << i <<
" :" << ftutdetdigiparsector.GetAt(i);
49 size = ftutdetdigipar->GetSize();
50 LOG(info) <<
"size: " << size;
51 for (Int_t i = 0; i < size; i++) {
52 LOG(info) << i <<
" :" << ftutdetdigipar->GetAt(i);
59 LOG(info) <<
"I am in FairTutorialDet2DigiPar::putParams ";
63 l->
add(
"FairTutorialDet2DigiStations", ftutdetdigiparstation);
64 l->
add(
"FairTutorialDet2DigiSectorsPerStation", ftutdetdigiparsector);
65 Int_t count_sectors = 0;
66 for (Int_t i = 0; i < ftutdetdigiparstation; i++) {
67 count_sectors += ftutdetdigiparsector[i];
69 Int_t array_size = (count_sectors * 10 + ftutdetdigiparstation * 3);
70 LOG(info) <<
"Array Size: " << array_size;
76 ftutdetdigipar->Set(array_size);
77 l->
add(
"FairTutorialDet2DigiPar", *ftutdetdigipar);
84 LOG(info) <<
"I am in FairTutorialDet2DigiPar::getParams ";
89 if (!l->
fill(
"FairTutorialDet2DigiStations", &ftutdetdigiparstation)) {
92 ftutdetdigiparsector.Set(ftutdetdigiparstation);
94 if (!l->
fill(
"FairTutorialDet2DigiSectorsPerStation", &ftutdetdigiparsector)) {
98 Int_t count_sectors = 0;
99 for (Int_t i = 0; i < ftutdetdigiparstation; i++) {
100 count_sectors += ftutdetdigiparsector[i];
102 LOG(info) <<
"Total number of sectors: " << count_sectors;
104 Int_t array_size = (count_sectors * 10 + ftutdetdigiparstation * 3);
105 LOG(info) <<
"Array Size: " << array_size;
106 ftutdetdigipar->Set(array_size);
108 if (!(l->
fill(
"FairTutorialDet2DigiPar", ftutdetdigipar))) {
109 LOG(warn) <<
"Could not initialize FairTutorialDet2DigiPar";
Bool_t status
versions of container in the 2 possible inputs
virtual void printparams()
ClassImp(FairEventBuilder)
void putParams(FairParamList *)
FairTutorialDet2DigiPar(const char *name="FairTutorialDet2DigiPar", const char *title="Tutorial Det digi parameters", const char *context="Default")
Bool_t fill(const Text_t *, Text_t *, const Int_t)
void resetInputVersions()
Bool_t getParams(FairParamList *)
virtual ~FairTutorialDet2DigiPar()