APReweightND Class Reference

#include <APReweightND.h>

Inheritance diagram for APReweightND:
APReweightBase

List of all members.

Public Member Functions

 APReweightND ()
 APReweightND (THnSparse *denominator_in, THnSparse *numerator_in, bool isTrig=false)
virtual ~APReweightND ()
void ReadEfficiency (THnSparse *efficiency_in, THnSparse *err_low_in, THnSparse *err_high_in=0)
APWeightEntryGetBinWeight (const int bin[])
APWeightEntryGetWeight (double value[])
double GetSampleScale () const
unsigned int NBins () const
THnSparse * GetDenominatorHist () const
THnSparse * GetNumeratorHist () const
void SetSystUncert (double rel_uncert)
void SetQuietMode (bool isQuiet=true)

Detailed Description

Class to store n-dimensionally parameterized weight maps

Stores a n-dimensional parameterization of APWeightEntries from numerator and denominator histograms or from an efficiency histogram and uncertainties.

Author:
fabian.Kohn@cern.ch

Constructor & Destructor Documentation

APReweightND::APReweightND (  ) 

Default constructor.

APReweightND::APReweightND ( THnSparse *  denominator_in,
THnSparse *  numerator_in,
bool  isTrig = false 
)

Constructor for histograms (numerator/denominator) to read in.

APReweightND::~APReweightND (  )  [virtual]

Default destructor.


Member Function Documentation

APWeightEntry * APReweightND::GetBinWeight ( const int  bin[]  ) 

Get Weight entry for a given n-tuple of bin numbers.

THnSparse * APReweightND::GetDenominatorHist (  )  const

Get original denominator histogram.

THnSparse * APReweightND::GetNumeratorHist (  )  const

Get original numerator histogram.

double APReweightND::GetSampleScale (  )  const

Get scale factor that was calculated from sample sizes upon instantiation.

APWeightEntry * APReweightND::GetWeight ( double  value[]  ) 

Get Weight entry for a given n-tuple of values.

unsigned int APReweightND::NBins (  )  const

Get amount of bins.

void APReweightND::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.g. Bootstrap)).

void APReweightND::SetQuietMode ( bool  isQuiet = true  ) 

Sets the flag to turn off messages.

void APReweightND::SetSystUncert ( double  rel_uncert  ) 

Set the global relative (!) systematic uncertainty of all efficiencies/weights.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1