6 #ifndef CALDP_ATTENHISTS_H 7 #define CALDP_ATTENHISTS_H 70 void Add(TH2F*& lhs, TH2F* rhs)
72 if(lhs) lhs->Add(rhs);
else lhs =
new TH2F(*rhs);
94 std::map<int, std::vector<TH2F*>>
ret;
96 const int plane =
it.first.Plane();
111 for(
auto&
it: rhs.
fMap) fMap[
it.first] +=
it.second;
121 std::map<geo::OfflineChan, AttenHists>
fMap;
AttenHists & GetHists(int plane, int cell)
std::map< int, std::vector< TH2F * > > GetAllHistsByPlane()
Intended for writing out/drawing all the histograms.
void Add(TH2F *&lhs, TH2F *rhs)
std::map< geo::OfflineChan, AttenHists > fMap
enum caldp::_path_type PathType_t
AttenHists & GetHists(const geo::OfflineChan &c)
Histograms used by attenuation calibration.
TH2F * HistogramByPathType(caldp::PathType_t const &pt)
AttenHists for many channels.
Histograms used by attenuation calibration.
AttenHistsMap & operator+=(const AttenHistsMap &rhs)
AttenHists & operator+=(const AttenHists &rhs)
Simple object representing a (plane, cell) pair.