Public Member Functions | Public Attributes | Private Attributes | List of all members
ana::ModularExtrapComponent::DivByZeroCounter Class Reference

Public Member Functions

 DivByZeroCounter (bool quiet=false)
 
 ~DivByZeroCounter ()
 

Public Attributes

std::set< std::tuple< std::string, std::string, int > > fBins
 

Private Attributes

bool fQuiet
 

Detailed Description

Definition at line 80 of file ModularExtrapComponent.h.

Constructor & Destructor Documentation

ana::ModularExtrapComponent::DivByZeroCounter::DivByZeroCounter ( bool  quiet = false)
inline

Definition at line 83 of file ModularExtrapComponent.h.

ana::ModularExtrapComponent::DivByZeroCounter::~DivByZeroCounter ( )

Definition at line 44 of file ModularExtrapComponent.cxx.

References om::cerr, allTimeWatchdog::endl, fBins, and fQuiet.

45  {
46  if (fQuiet)
47  return;
48 
49  if (fBins.empty())
50  return;
51 
52  std::cerr << "\nWARNING: There were attempted divisions by empty bins (for which a fallback to no reweighting was used)"
53  << "\n during extrapolation in the following bins (check your MC stats):"
54  << std::endl;
55 
56  for (const auto & tuple : this->fBins)
57  {
58  std::cerr << "\t Channel: " << std::get<0>(tuple)
59  << "\t\t Location: " << std::get<1>(tuple)
60  << "\t\t Bin Index: " << std::get<2>(tuple)
61  << std::endl;
62  }
63 
64  }
OStream cerr
Definition: OStream.cxx:7
std::set< std::tuple< std::string, std::string, int > > fBins

Member Data Documentation

std::set<std::tuple<std::string, std::string, int> > ana::ModularExtrapComponent::DivByZeroCounter::fBins
bool ana::ModularExtrapComponent::DivByZeroCounter::fQuiet
private

Definition at line 91 of file ModularExtrapComponent.h.

Referenced by ~DivByZeroCounter().


The documentation for this class was generated from the following files: