File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,7 @@ void AODProducerWorkflowDPL::addToTRDsExtra(const o2::globaltracking::RecoContai
410410 auto trkC = trk; // local copy to propagate
411411
412412 float dEdx{0 .};
413+ uint8_t pattern = 0 ;
413414 for (int iLay{0 }; iLay < NLAYERS; ++iLay) {
414415 auto trkltId = trk.getTrackletIndex (iLay);
415416 if (trkltId < 0 ) {
@@ -447,6 +448,13 @@ void AODProducerWorkflowDPL::addToTRDsExtra(const o2::globaltracking::RecoContai
447448 tphis[iLay] = tphi;
448449
449450 dEdx += (float )tracklet.getQTot () / cor;
451+ pattern |= 0x1 << iLay;
452+ }
453+ if (trk.getHasNeighbor ()) {
454+ pattern |= 0x1 << 6 ;
455+ }
456+ if (trk.getHasPadrowCrossing ()) {
457+ pattern |= 0x1 << 7 ;
450458 }
451459 dEdx /= (float )trkC.getNtracklets ();
452460
@@ -477,7 +485,7 @@ void AODProducerWorkflowDPL::addToTRDsExtra(const o2::globaltracking::RecoContai
477485 << " q0sCor[6]=" << q0sCor
478486 << " q1sCor[6]=" << q1sCor
479487 << " q2sCor[6]=" << q2sCor
480- << " pattern=" << getTRDPattern (trk)
488+ << " pattern=" << pattern
481489 << " tracklets=" << trkletsa
482490 << " ctracklets=" << ctrkletsa
483491 << " cloctracklets=" << cloctrkletsa
You can’t perform that action at this time.
0 commit comments