13 #include "FairLogger.h"
14 #include "FairRootManager.h"
15 #include "FairRunOnline.h"
17 #include "TClonesArray.h"
20 #include "THttpServer.h"
26 using std::setprecision;
30 : FairTask(
"CbmMcbm2019CheckDigisMuch") {}
57 LOG(info) <<
"No MUCH digis found.";
69 "Digis per Asic evo; Time [ ns ]; ASIC []",
84 "fSameChanDigisDistEvo",
85 "Time dist of digis in same chan evo; Time [ ns ]; Same chan dist [ ns ]",
94 new TH2F(
"fDigisPerChanEvo",
95 "Time dist of digis in same chan evo; Time [ ns ]; Channel [ ]",
103 std::cout << Form(
"TS with jump %5u, first TS time off %12.0f, start TS %5u "
104 "stop TS %5u, TS length %9.0f Start time %12.0f",
118 LOG(debug) <<
"executing TS " <<
fNrTs;
121 LOG(info) << Form(
"Processing TS %6d",
fNrTs);
130 LOG(debug) << GetName() <<
": MuchDigis: " << nrMuchDigis;
132 for (Int_t iMuch = 0; iMuch < nrMuchDigis; ++iMuch) {
136 Double_t dTime = Digi->
GetTime();
137 Double_t dAdc = Digi->
GetAdc();
138 UInt_t uAsic = Digi->
GetNxId();
139 UInt_t uChan = Digi->
GetNxCh();
145 std::cout << Form(
"Much first hit in TS %5d: asic %2u chan %3u time "
146 "%12.0f T0 time %12.0f check time %12.0f ADC %2.0f",
160 Double_t dTimeDistLastDigi =
163 dTimeDistLastDigi < 10000 ? dTimeDistLastDigi
178 if (9 != uAsic || uChan < 63)
continue;
179 if (fuMaxAdcPulserMuch < Digi->GetAdc()
183 std::cout << Form(
"Much pulser in TS %5d: chan %3u T0 time %12.0f time "
184 "start %12.0f ADC %2.0f dt %12.0f",