62 FairRootManager* rm = FairRootManager::Instance();
67 header =
dynamic_cast<R3BEventHeader*
>(rm->GetObject(
"EventHeader."));
72 fHits =
dynamic_cast<TClonesArray*
>(rm->GetObject(
"NeulandMappedData"));
77 fHitsTrigger =
dynamic_cast<TClonesArray*
>(rm->GetObject(
"NeulandTrigMappedData"));
80 LOG(info) <<
"Branch NeulandTrigMapped not found";
85 fCal_Par =
dynamic_cast<R3BTCalPar*
>(FairRuntimeDb::instance()->getContainer(
"LandTCalPar"));
86 fCal_Par->setChanged();
88 fEngine =
new R3BTCalEngine(fCal_Par, fMinStats);
90 for (Int_t pln = 0; pln < fNofPlanes; pln++)
92 for (Int_t bar = 0; bar < fNofBarsPerPlane; bar++)
94 for (Int_t pmt = 0; pmt < 4; pmt++)
96 counts[pln][bar][pmt] = 0;
109 if (checkcounts == fNofPMTs)
117 if (header->GetTrigger() != fTrigger)
123 Int_t nHits = fHits->GetEntries();
124 if (nHits > (fNofPMTs / 2))
130 for (Int_t i = 0; i < nHits; i++)
140 Int_t iBar = hit->GetBarId();
141 Int_t iSide = -1 == hit->fCoarseTime1LE ? 2 : 1;
151 iFine = hit->fFineTime1LE;
155 iFine = hit->fFineTime2LE;
158 fEngine->Fill(iPlane, iBar, (iSide - 1) * 2 + 1, iFine);
159 counts[iPlane - 1][iBar - 1][(iSide - 1) * 2]++;
160 if (counts[iPlane - 1][iBar - 1][(iSide - 1) * 2] == fMinStats)
163 std::cout << iPlane <<
"a " << iBar <<
" " << iSide << std::endl;
164 std::cout << checkcounts << std::endl;
169 iFine = hit->fFineTime1TE;
173 iFine = hit->fFineTime2TE;
175 fEngine->Fill(iPlane, iBar, (iSide - 1) * 2 + 2, iFine);
176 counts[iPlane - 1][iBar - 1][(iSide - 1) * 2 + 1]++;
177 if (counts[iPlane - 1][iBar - 1][(iSide - 1) * 2 + 1] == fMinStats)
180 std::cout << iPlane <<
"b " << iBar <<
" " << iSide << std::endl;
181 std::cout << checkcounts << std::endl;
188 nHits = fHitsTrigger->GetEntriesFast();
189 for (Int_t i = 0; i < nHits; i++)
199 auto iFine = hit->fFineTime1LE;
201 fEngine->Fill(100, iBar, 10, iFine);