HistReader Class Reference
Auxiliary class to simplify reading of histograms in PileUpIdWeight::LoadScaleFactors.
More...
List of all members.
Public Member Functions |
| HistReader (std::filesystem::path const &path) |
std::shared_ptr< TH2 > | operator() (std::string const &name) |
Private Attributes |
TFile | file_ |
std::map< std::string,
std::shared_ptr< TH2 > > | readHistograms_ |
Detailed Description
Auxiliary class to simplify reading of histograms in PileUpIdWeight::LoadScaleFactors.
It reads 2D histograms for a ROOT file, wrapping them in std::shared_ptr. If a histogram with the same name is requested again, the already existing std::shared_ptr is returned.
The documentation for this class was generated from the following file: