  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   17 #ifndef APReweightND_h 
   18 #define APReweightND_h 
   33   APReweightND(THnSparse* denominator_in, THnSparse* numerator_in, 
bool isTrig = 
false); 
 
   36   void ReadEfficiency(THnSparse* efficiency_in, THnSparse* err_low_in, THnSparse* err_high_in = 0); 
 
   42   unsigned int NBins() 
const;                                                    
 
  
const THnSparse * GetDenominatorHist() const
Get original denominator histogram.
 
APWeightEntry * GetWeight(double value[])
Get Weight entry for a given n-tuple of values.
 
APWeightEntry * GetBinWeight(const int bin[])
Get Weight entry for a given n-tuple of bin numbers.
 
void SetSystUncert(double rel_uncert)
Set the global relative (!) systematic uncertainty of all efficiencies/weights.
 
double GetSampleScale() const
Get scale factor that was calculated from sample sizes upon instantiation.
 
unsigned int NBins() const
Get amount of bins.
 
void ReadEfficiency(THnSparse *efficiency_in, THnSparse *err_low_in, THnSparse *err_high_in=0)
Read efficiencies and upper/lower uncertainty (if numerator/denominator not applicable (e....
 
virtual ~APReweightND()
Default destructor.
 
std::vector< TAxis * > m_axes
Holds all axes of the APReweightND instance (from input histograms).
 
APReweightND()
Default constructor.
 
const THnSparse * GetNumeratorHist() const
Get original numerator histogram.
 
void SetQuietMode(bool isQuiet=true)
Sets the flag to turn off messages.
 
std::map< std::vector< int >, APWeightEntry * > m_weights
Holds all weight entries.
 
THnSparse * m_numerator_hist
Holds the original numerator histogram.
 
ClassDef(APReweightND, 1) private THnSparse * m_denominator_hist
< Holds the amount of dimensions.