@@ -100,7 +100,7 @@ struct caloClusterProducerTask {
100100
101101 int64_t timestamp = 0 ;
102102 if (bcs.begin () != bcs.end ()) {
103- bcs.begin ().timestamp (); // timestamp for CCDB object retrieval
103+ timestamp = bcs.begin ().timestamp (); // timestamp for CCDB object retrieval
104104 }
105105 std::map<int64_t , int > bcMap;
106106 int bcId = 0 ;
@@ -166,6 +166,10 @@ struct caloClusterProducerTask {
166166 for (auto & c : cells) {
167167 if (c.caloType () != kPHOS ) // PHOS
168168 continue ;
169+ // Fix for bug in trigger digits
170+ if ((c.cellType () == phos::TRU2x2 || c.cellType () == phos::TRU4x4) && c.cellNumber () == 0 ) {
171+ continue ;
172+ }
169173 if (phosCellTRs.size () == 0 ) { // first cell, first TrigRec
170174 ir.setFromLong (c.bc_as <aod::BCsWithTimestamps>().globalBC ());
171175 phosCellTRs.emplace_back (ir, 0 , 0 ); // BC,first cell, ncells
@@ -177,7 +181,8 @@ struct caloClusterProducerTask {
177181 ir.setFromLong (c.bc_as <aod::BCsWithTimestamps>().globalBC ());
178182 phosCellTRs.emplace_back (ir, phosCells.size (), 0 );
179183 }
180- phosCells.emplace_back (c.cellNumber (), c.amplitude (), c.time (),
184+ short absId = c.cellNumber ();
185+ phosCells.emplace_back (absId, c.amplitude (), c.time (),
181186 static_cast <o2::phos::ChannelType_t>(c.cellType ()));
182187 // TODO process MC info
183188 }
@@ -398,7 +403,7 @@ struct caloClusterProducerTask {
398403
399404 int64_t timestamp = 0 ;
400405 if (bcs.begin () != bcs.end ()) {
401- bcs.begin ().timestamp (); // timestamp for CCDB object retrieval
406+ timestamp = bcs.begin ().timestamp (); // timestamp for CCDB object retrieval
402407 }
403408 std::map<int64_t , int > bcMap;
404409 int bcId = 0 ;
@@ -463,6 +468,10 @@ struct caloClusterProducerTask {
463468 for (auto & c : cells) {
464469 if (c.caloType () != kPHOS ) // PHOS
465470 continue ;
471+ // Fix for bug in trigger digits
472+ if ((c.cellType () == phos::TRU2x2 || c.cellType () == phos::TRU4x4) && c.cellNumber () == 0 ) {
473+ continue ;
474+ }
466475 if (phosCellTRs.size () == 0 ) { // first cell, first TrigRec
467476 ir.setFromLong (c.bc_as <aod::BCsWithTimestamps>().globalBC ());
468477 phosCellTRs.emplace_back (ir, 0 , 0 ); // BC,first cell, ncells
0 commit comments