File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments