1+ // Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2+ // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+ // All rights not expressly granted are reserved.
4+ //
5+ // This software is distributed under the terms of the GNU General Public
6+ // License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+ //
8+ // In applying this license CERN does not waive the privileges and immunities
9+ // granted to it by virtue of its status as an Intergovernmental Organization
10+ // or submit itself to any jurisdiction.
11+
112#if !defined(__CLING__ ) || defined(__ROOTCLING__ )
213
314#include <TTree.h>
@@ -42,7 +53,7 @@ void run_rawdecoding_its(std::string inpName = "rawits.bin", // input binary dat
4253 TStopwatch sw ;
4354 sw .Start ();
4455 uint32_t roFrame = 0 ;
45- o2 ::InteractionRecord irHB , irTrig ;
56+ o2 ::InteractionRecord irTrig ;
4657 std ::vector < o2 ::itsmft ::Digit > digits , * digitsPtr = & digits ;
4758 std ::vector < o2 ::itsmft ::ROFRecord > rofRecVec , * rofRecVecPtr = & rofRecVec ;
4859 std ::size_t rofEntry = 0 , nrofdig = 0 ;
@@ -62,12 +73,11 @@ void run_rawdecoding_its(std::string inpName = "rawits.bin", // input binary dat
6273 }
6374
6475 if (outTreeDig ) { // >> store digits
65- if (irHB != rawReader . getInteractionRecordHB () || irTrig != rawReader .getInteractionRecord ()) {
76+ if (irTrig != rawReader .getInteractionRecord ()) {
6677 if (!irTrig .isDummy ()) {
67- rofRecVec .emplace_back (irHB , roFrame , rofEntry , nrofdig ); // registed finished ROF
78+ rofRecVec .emplace_back (irTrig , roFrame , rofEntry , nrofdig ); // registed finished ROF
6879 roFrame ++ ;
6980 }
70- irHB = rawReader .getInteractionRecordHB ();
7181 irTrig = rawReader .getInteractionRecord ();
7282 rofEntry = digits .size ();
7383 nrofdig = 0 ;
@@ -79,15 +89,14 @@ void run_rawdecoding_its(std::string inpName = "rawits.bin", // input binary dat
7989 }
8090
8191 printf ("ROF %7d ch: %5d IR: " , roFrame , chipData .getChipID ());
82- irHB .print ();
8392
8493 } // << store digits
8594 //
8695 }
8796
8897 if (outTreeDig ) {
8998 // register last ROF
90- rofRecVec .emplace_back (irHB , roFrame , rofEntry , nrofdig ); // registed finished ROF
99+ rofRecVec .emplace_back (irTrig , roFrame , rofEntry , nrofdig ); // registed finished ROF
91100
92101 // fill last (and the only one?) entry
93102 outTreeDig -> Fill ();
0 commit comments