@@ -50,6 +50,18 @@ void RawDecoderSpec::init(framework::InitContext& ctx)
5050}
5151void RawDecoderSpec::endOfStream (framework::EndOfStreamContext& ec)
5252{
53+ auto clsEA = mDecoder .getClassErrorsA ();
54+ auto clsEB = mDecoder .getClassErrorsB ();
55+ auto cntCA = mDecoder .getClassCountersA ();
56+ auto cntCB = mDecoder .getClassCountersB ();
57+ int totClasses = 0 ;
58+ for (int i = 0 ; i < o2::ctp::CTP_NCLASSES; i++) {
59+ mClsEA [i] += clsEA[i];
60+ mClsEB [i] += clsEB[i];
61+ mClsA [i] += cntCA[i];
62+ mClsB [i] += cntCB[i];
63+ totClasses += cntCA[i];
64+ }
5365 auto & TFOrbits = mDecoder .getTFOrbits ();
5466 std::sort (TFOrbits.begin (), TFOrbits.end ());
5567 size_t l = TFOrbits.size ();
@@ -79,6 +91,7 @@ void RawDecoderSpec::endOfStream(framework::EndOfStreamContext& ec)
7991 }
8092 if (mCheckConsistency ) {
8193 LOG (info) << " Lost due to the shift Consistency Checker:" << mDecoder .getLostDueToShiftCls ();
94+ LOG (info) << " Toatl classes:" << totClasses;
8295 auto ctpcfg = mDecoder .getCTPConfig ();
8396 for (int i = 0 ; i < o2::ctp::CTP_NCLASSES; i++) {
8497 std::string name = ctpcfg.getClassNameFromIndex (i);
@@ -168,16 +181,6 @@ void RawDecoderSpec::run(framework::ProcessingContext& ctx)
168181 mErrorTCR += mDecoder .getErrorTCR ();
169182 mIRRejected += mDecoder .getIRRejected ();
170183 mTCRRejected += mDecoder .getTCRRejected ();
171- auto clsEA = mDecoder .getClassErrorsA ();
172- auto clsEB = mDecoder .getClassErrorsB ();
173- auto cntCA = mDecoder .getClassCountersA ();
174- auto cntCB = mDecoder .getClassCountersB ();
175- for (int i = 0 ; i < o2::ctp::CTP_NCLASSES; i++) {
176- mClsEA [i] += clsEA[i];
177- mClsEB [i] += clsEB[i];
178- mClsA [i] += cntCA[i];
179- mClsB [i] += cntCB[i];
180- }
181184 }
182185 if (mDoLumi ) {
183186 uint32_t tfCountsT = 0 ;
0 commit comments