Skip to content

Commit bdf72dd

Browse files
Maximilian Horstshahor02
authored andcommitted
Added Separation Power Plot for Pions and electrons
Formatting Comments clang format naming Convention Added Separation Power Plot for Pions and electrons Comments last changes
1 parent e001ba3 commit bdf72dd

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Detectors/TPC/qc/include/TPCQC/PID.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class PID
8888
}
8989
std::unordered_map<std::string_view, std::vector<std::unique_ptr<TH1>>>& getMapOfHisto() { return mMapHist; }
9090
std::unordered_map<std::string_view, std::vector<std::unique_ptr<TCanvas>>>& getMapOfCanvas() { return mMapCanvas; }
91+
TCanvas* getSeparationPowerCanvas() { return mSeparationPowerCanvas.get(); }
9192
const std::unordered_map<std::string_view, std::vector<std::unique_ptr<TH1>>>& getMapOfHisto() const { return mMapHist; }
9293
const std::unordered_map<std::string_view, std::vector<std::unique_ptr<TCanvas>>>& getMapOfCanvas() const { return mMapCanvas; }
9394

@@ -107,6 +108,8 @@ class PID
107108
std::unordered_map<std::string_view, std::vector<std::unique_ptr<TCanvas>>> mMapCanvas;
108109
// Map for Histograms which will be put onto the canvases, and not published separately
109110
std::unordered_map<std::string_view, std::vector<std::unique_ptr<TH1>>> mMapHistCanvas;
111+
// Canvas for Trending Separation Power
112+
std::unique_ptr<TCanvas> mSeparationPowerCanvas;
110113
ClassDefNV(PID, 1)
111114
};
112115
} // namespace qc

Detectors/TPC/qc/src/PID.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void PID::initializeHistograms()
102102
mMapCanvas["CdEdxPIDHypothesisVsp"].emplace_back(std::make_unique<TCanvas>("CdEdxPIDHypothesisVsp", "PID Hypothesis Ratio"));
103103
mMapCanvas["CdEdxPIDHypothesisVsp"].at(0)->Divide(5, 2);
104104
}
105+
mSeparationPowerCanvas.reset(new TCanvas("CSeparationPower", "Separation Power"));
105106
}
106107

107108
//______________________________________________________________________________
@@ -225,6 +226,7 @@ bool PID::processTrack(const o2::tpc::TrackTPC& track, size_t nTracks)
225226
}
226227
}
227228
}
229+
228230
if (mCreateCanvas) {
229231
for (auto const& pairC : mMapCanvas) {
230232
for (auto& canv : pairC.second) {

0 commit comments

Comments
 (0)