Skip to content

Commit 20973f4

Browse files
committed
Add TPC sh.clusters info to study output
1 parent 32451dc commit 20973f4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Detectors/GlobalTrackingWorkflow/study/include/GlobalTrackingStudy/TrackInfoExt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct TrackInfoExt {
4141
float q2ptITSTPC = 0.f;
4242
float q2ptITSTPCTRD = 0.f;
4343
uint16_t nClTPC = 0;
44+
uint16_t nClTPCShared = 0;
4445
uint8_t pattITS = 0;
4546
uint8_t nClITS = 0;
4647
uint8_t rowMinTPC = 0;
@@ -54,7 +55,7 @@ struct TrackInfoExt {
5455
float getTPCInY0() const { return innerTPCPos0[1]; }
5556
float getTPCInZ0() const { return innerTPCPos0[2]; }
5657

57-
ClassDefNV(TrackInfoExt, 3);
58+
ClassDefNV(TrackInfoExt, 4);
5859
};
5960

6061
} // namespace dataformats

Detectors/GlobalTrackingWorkflow/study/src/TrackingStudy.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ void TrackingStudySpec::process(o2::globaltracking::RecoContainer& recoData)
250250

251251
auto fillTPCClInfo = [&recoData, this](const o2::tpc::TrackTPC& trc, o2::dataformats::TrackInfoExt& trExt, float timestampTB = -1e9) {
252252
const auto clRefs = recoData.getTPCTracksClusterRefs();
253+
const auto shMap = recoData.clusterShMapTPC.data();
253254
if (recoData.inputsTPCclusters) {
254255
uint8_t clSect = 0, clRow = 0, clRowP = -1;
255256
uint32_t clIdx = 0;
@@ -259,6 +260,9 @@ void TrackingStudySpec::process(o2::globaltracking::RecoContainer& recoData)
259260
trExt.rowCountTPC++;
260261
clRowP = clRow;
261262
}
263+
if (shMap[clRefs[ic + trc.getClusterRef().getFirstEntry()]]) {
264+
trExt.nClTPCShared++;
265+
}
262266
}
263267
trc.getClusterReference(clRefs, trc.getNClusterReferences() - 1, clSect, clRow, clIdx);
264268
trExt.rowMinTPC = clRow;

0 commit comments

Comments
 (0)