Skip to content

Commit e3e4f48

Browse files
committed
Proper treatment of ITS-TPC afterburner ITS tracklets in ED
1 parent 79f7e32 commit e3e4f48

1 file changed

Lines changed: 21 additions & 8 deletions

File tree

EventVisualisation/Workflow/src/EveWorkflowHelper.cxx

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "TPCReconstruction/TPCFastTransformHelperO2.h"
2727
#include "MCHTracking/TrackParam.h"
2828
#include "MCHTracking/TrackExtrap.h"
29+
#include "DataFormatsITSMFT/TrkClusRef.h"
2930

3031
using namespace o2::event_visualisation;
3132

@@ -191,14 +192,26 @@ void EveWorkflowHelper::drawITSTPCTOF(GID gid, float trackTime)
191192

192193
void EveWorkflowHelper::drawITSClusters(GID gid, float trackTime)
193194
{
194-
const auto& trc = mRecoCont.getITSTrack(gid);
195-
auto refs = mRecoCont.getITSTracksClusterRefs();
196-
int ncl = trc.getNumberOfClusters();
197-
int offset = trc.getFirstClusterEntry();
198-
for (int icl = 0; icl < ncl; icl++) {
199-
const auto& pnt = mITSClustersArray[refs[icl + offset]];
200-
const auto glo = mITSGeom->getMatrixT2G(pnt.getSensorID()) * pnt.getXYZ();
201-
drawPoint(glo.X(), glo.Y(), glo.Z(), trackTime);
195+
if (gid.getSource() == GID::ITS) { // this is for for full standalone tracks
196+
const auto& trc = mRecoCont.getITSTrack(gid);
197+
auto refs = mRecoCont.getITSTracksClusterRefs();
198+
int ncl = trc.getNumberOfClusters();
199+
int offset = trc.getFirstClusterEntry();
200+
for (int icl = 0; icl < ncl; icl++) {
201+
const auto& pnt = mITSClustersArray[refs[icl + offset]];
202+
const auto glo = mITSGeom->getMatrixT2G(pnt.getSensorID()) * pnt.getXYZ();
203+
drawPoint(glo.X(), glo.Y(), glo.Z(), trackTime);
204+
}
205+
} else if (gid.getSource() == GID::ITSAB) { // this is for ITS tracklets from ITS-TPC afterburner
206+
const auto& trc = mRecoCont.getITSABRef(gid);
207+
const auto& refs = mRecoCont.getITSABClusterRefs();
208+
int ncl = trc.getNClusters();
209+
int offset = trc.getFirstEntry();
210+
for (int icl = 0; icl < ncl; icl++) {
211+
const auto& pnt = mITSClustersArray[refs[icl + offset]];
212+
const auto glo = mITSGeom->getMatrixT2G(pnt.getSensorID()) * pnt.getXYZ();
213+
drawPoint(glo.X(), glo.Y(), glo.Z(), trackTime);
214+
}
202215
}
203216
}
204217

0 commit comments

Comments
 (0)