Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLOQC: Reduce memory footprint #12871

Merged
merged 1 commit into from
Mar 25, 2024
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
73 changes: 39 additions & 34 deletions Detectors/GlobalTracking/include/GlobalTracking/MatchITSTPCQC.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class MatchITSTPCQC
void publishHistograms(const std::shared_ptr<T>& publisher)
{
for (int i = 0; i < matchType::SIZE; ++i) {
// Pt
publisher->startPublishing(mPtNum[i]);
publisher->startPublishing(mPtDen[i]);
publisher->startPublishing(mFractionITSTPCmatch[i]);
Expand All @@ -144,66 +145,72 @@ class MatchITSTPCQC
publisher->startPublishing(mPtDen_noEta0[i]);
publisher->startPublishing(mFractionITSTPCmatch_noEta0[i]);

publisher->startPublishing(mPtPhysPrimNum[i]);
publisher->startPublishing(mPtPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhysPrim[i]);

// Phi
publisher->startPublishing(mPhiNum[i]);
publisher->startPublishing(mPhiDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhi[i]);

if (mUseTrkPID) { // Vs Tracking PID hypothesis
for (int j = 0; j < o2::track::PID::NIDs; ++j) {
// Pt
publisher->startPublishing(mPtNumVsTrkPID[i][j]);
publisher->startPublishing(mPtDenVsTrkPID[i][j]);
publisher->startPublishing(mFractionITSTPCmatchPtVsTrkPID[i][j]);
// Phi
publisher->startPublishing(mPhiNumVsTrkPID[i][j]);
publisher->startPublishing(mPhiDenVsTrkPID[i][j]);
publisher->startPublishing(mFractionITSTPCmatchPhiVsTrkPID[i][j]);
// Eta
publisher->startPublishing(mEtaNumVsTrkPID[i][j]);
publisher->startPublishing(mEtaDenVsTrkPID[i][j]);
publisher->startPublishing(mFractionITSTPCmatchEtaVsTrkPID[i][j]);
}
}

publisher->startPublishing(mPhiPhysPrimNum[i]);
publisher->startPublishing(mPhiPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhiPhysPrim[i]);

publisher->startPublishing(mPhiVsPtNum[i]);
publisher->startPublishing(mPhiVsPtDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhiVsPt[i]);

// Eta
publisher->startPublishing(mEtaNum[i]);
publisher->startPublishing(mEtaDen[i]);
publisher->startPublishing(mFractionITSTPCmatchEta[i]);

publisher->startPublishing(mEtaPhysPrimNum[i]);
publisher->startPublishing(mEtaPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchEtaPhysPrim[i]);

publisher->startPublishing(mEtaVsPtNum[i]);
publisher->startPublishing(mEtaVsPtDen[i]);
publisher->startPublishing(mFractionITSTPCmatchEtaVsPt[i]);

// Clusters
publisher->startPublishing(mClsVsPtNum[i]);
publisher->startPublishing(mClsVsPtDen[i]);
publisher->startPublishing(mFractionITSTPCmatchClsVsPt[i]);

// Chi2
publisher->startPublishing(mChi2VsPtNum[i]);
publisher->startPublishing(mChi2VsPtDen[i]);
publisher->startPublishing(mFractionITSTPCmatchChi2VsPt[i]);

// 1/pt
publisher->startPublishing(m1OverPtNum[i]);
publisher->startPublishing(m1OverPtDen[i]);
publisher->startPublishing(mFractionITSTPCmatch1OverPt[i]);

publisher->startPublishing(m1OverPtPhysPrimNum[i]);
publisher->startPublishing(m1OverPtPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhysPrim1OverPt[i]);
if (mUseTrkPID) { // Vs Tracking PID hypothesis
for (int j = 0; j < o2::track::PID::NIDs; ++j) {
// Pt
publisher->startPublishing(mPtNumVsTrkPID[i][j]);
publisher->startPublishing(mPtDenVsTrkPID[i][j]);
publisher->startPublishing(mFractionITSTPCmatchPtVsTrkPID[i][j]);

// Phi
publisher->startPublishing(mPhiNumVsTrkPID[i][j]);
publisher->startPublishing(mPhiDenVsTrkPID[i][j]);
publisher->startPublishing(mFractionITSTPCmatchPhiVsTrkPID[i][j]);

// Eta
publisher->startPublishing(mEtaNumVsTrkPID[i][j]);
publisher->startPublishing(mEtaDenVsTrkPID[i][j]);
publisher->startPublishing(mFractionITSTPCmatchEtaVsTrkPID[i][j]);
}
}

if (mUseMC) {
publisher->startPublishing(mPhiPhysPrimNum[i]);
publisher->startPublishing(mPhiPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhiPhysPrim[i]);
publisher->startPublishing(mPtPhysPrimNum[i]);
publisher->startPublishing(mPtPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhysPrim[i]);
publisher->startPublishing(mEtaPhysPrimNum[i]);
publisher->startPublishing(mEtaPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchEtaPhysPrim[i]);
publisher->startPublishing(m1OverPtPhysPrimNum[i]);
publisher->startPublishing(m1OverPtPhysPrimDen[i]);
publisher->startPublishing(mFractionITSTPCmatchPhysPrim1OverPt[i]);
}
}
publisher->startPublishing(mChi2Matching);
publisher->startPublishing(mChi2Refit);
Expand All @@ -225,8 +232,6 @@ class MatchITSTPCQC
void deleteHistograms();
void setBz(float bz) { mBz = bz; }

// track selection
bool selectTrack(o2::tpc::TrackTPC const& track); // still present but not used
// ITS track
void setMinPtITSCut(float v) { mPtITSCut = v; };
void setEtaITSCut(float v) { mEtaITSCut = v; }; // TODO: define 2 different values for min and max (**)
Expand Down
Loading
Loading