HistReader Class Reference

Auxiliary class to simplify reading of histograms in PileUpIdWeight::LoadScaleFactors. More...

Collaboration diagram for HistReader:
Collaboration graph
[legend]

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:
 All Classes Namespaces Functions Variables Enumerations Enumerator

Generated on 30 Oct 2020 for H→ZZ→2ℓ2ν analysis by  doxygen 1.6.1