@@ -87,17 +87,17 @@ void DataDecoderTask2::run(framework::ProcessingContext& pc)
8787 // decodeReadout(pc);
8888 // decodeRawFile(pc);
8989
90+ // Output the Digits/Triggers vector
91+ orderTriggers ();
92+ pc.outputs ().snapshot (o2::framework::Output{" HMP" , " DIGITS" , 0 , o2::framework::Lifetime::Timeframe}, mDeco ->mDigits );
93+ pc.outputs ().snapshot (o2::framework::Output{" HMP" , " INTRECORDS" , 0 , o2::framework::Lifetime::Timeframe}, mTriggers );
94+
9095 mExTimer .elapseMes (" Decoding... Digits decoded = " + std::to_string (mTotalDigits ) + " Frames received = " + std::to_string (mTotalFrames ));
9196 return ;
9297}
9398
9499void DataDecoderTask2::endOfStream (framework::EndOfStreamContext& ec)
95100{
96- // Output the Digits/Triggers vector
97- orderTriggers ();
98- ec.outputs ().snapshot (o2::framework::Output{" HMP" , " DIGITS" , 0 , o2::framework::Lifetime::Timeframe}, mDeco ->mDigits );
99- ec.outputs ().snapshot (o2::framework::Output{" HMP" , " INTRECORDS" , 0 , o2::framework::Lifetime::Timeframe}, mTriggers );
100-
101101 // Records the statistics
102102 float avgEventSize; // [o2::hmpid::Geo::MAXEQUIPMENTS];
103103 float avgBusyTime; // [o2::hmpid::Geo::MAXEQUIPMENTS];
@@ -204,9 +204,6 @@ void DataDecoderTask2::decodeTF(framework::ProcessingContext& pc)
204204 mTotalFrames ++;
205205 }
206206
207- // pc.outputs().snapshot(o2::framework::Output{"HMP", "DIGITS", 0, o2::framework::Lifetime::Timeframe}, mDeco->mDigits);
208- // pc.outputs().snapshot(o2::framework::Output{"HMP", "INTRECORDS", 0, o2::framework::Lifetime::Timeframe}, mDeco->mIntReco);
209-
210207 mTotalDigits += mDeco ->mDigits .size ();
211208 LOG (INFO ) << " Writing Digitis=" << mDeco ->mDigits .size () << " /" << mTotalDigits << " Frame=" << mTotalFrames << " IntRec " << mDeco ->mIntReco ;
212209 return ;
0 commit comments