|
26 | 26 | #include "TPCReconstruction/TPCFastTransformHelperO2.h" |
27 | 27 | #include "MCHTracking/TrackParam.h" |
28 | 28 | #include "MCHTracking/TrackExtrap.h" |
| 29 | +#include "DataFormatsITSMFT/TrkClusRef.h" |
29 | 30 |
|
30 | 31 | using namespace o2::event_visualisation; |
31 | 32 |
|
@@ -191,14 +192,26 @@ void EveWorkflowHelper::drawITSTPCTOF(GID gid, float trackTime) |
191 | 192 |
|
192 | 193 | void EveWorkflowHelper::drawITSClusters(GID gid, float trackTime) |
193 | 194 | { |
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 | + } |
202 | 215 | } |
203 | 216 | } |
204 | 217 |
|
|
0 commit comments