Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ struct TrackInfoExt {
float q2ptITSTPC = 0.f;
float q2ptITSTPCTRD = 0.f;
uint16_t nClTPC = 0;
uint16_t nClTPCShared = 0;
uint8_t pattITS = 0;
uint8_t nClITS = 0;
uint8_t rowMinTPC = 0;
Expand All @@ -54,7 +55,7 @@ struct TrackInfoExt {
float getTPCInY0() const { return innerTPCPos0[1]; }
float getTPCInZ0() const { return innerTPCPos0[2]; }

ClassDefNV(TrackInfoExt, 3);
ClassDefNV(TrackInfoExt, 4);
};

} // namespace dataformats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ void TrackingStudySpec::process(o2::globaltracking::RecoContainer& recoData)

auto fillTPCClInfo = [&recoData, this](const o2::tpc::TrackTPC& trc, o2::dataformats::TrackInfoExt& trExt, float timestampTB = -1e9) {
const auto clRefs = recoData.getTPCTracksClusterRefs();
const auto shMap = recoData.clusterShMapTPC.data();
if (recoData.inputsTPCclusters) {
uint8_t clSect = 0, clRow = 0, clRowP = -1;
uint32_t clIdx = 0;
Expand All @@ -259,6 +260,9 @@ void TrackingStudySpec::process(o2::globaltracking::RecoContainer& recoData)
trExt.rowCountTPC++;
clRowP = clRow;
}
if (shMap[clRefs[ic + trc.getClusterRef().getFirstEntry()]]) {
trExt.nClTPCShared++;
}
}
trc.getClusterReference(clRefs, trc.getNClusterReferences() - 1, clSect, clRow, clIdx);
trExt.rowMinTPC = clRow;
Expand Down
Loading