APReweight3D Class Reference

#include <APReweight3D.h>

Inheritance diagram for APReweight3D:
APReweightBase

List of all members.

Public Member Functions

 APReweight3D ()
 APReweight3D (TH3 *denominator_in, TH3 *numerator_in, bool isTrig=false)
virtual ~APReweight3D ()
void ReadEfficiency (TH3 *efficiency_in, TH3 *err_low_in, TH3 *err_high_in=0)
APWeightEntryGetBinWeight (unsigned int bin_x, unsigned int bin_y, unsigned int bin_z) const
APWeightEntryGetWeight (double value_x, double value_y, double value_z) const
double GetSampleScale () const
unsigned int NBins () const
unsigned int GetBinX (double value_x) const
unsigned int GetBinY (double value_y) const
unsigned int GetBinZ (double value_z) const
TH3D * GetDenominatorHist () const
TH3D * GetNumeratorHist () const
void SetSystUncert (double rel_uncert)
void SetQuietMode (bool isQuiet=true)

Detailed Description

Class to store 3D parameterized weight maps

Stores a 3D parameterization of APWeightEntries from numerator and denominator histograms or from an efficiency histogram and uncertainties.

Author:
fabian.Kohn@cern.ch

Constructor & Destructor Documentation

APReweight3D::APReweight3D (  ) 

Default constructor.

APReweight3D::APReweight3D ( TH3 *  denominator_in,
TH3 *  numerator_in,
bool  isTrig = false 
)

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

APReweight3D::~APReweight3D (  )  [virtual]

Default destructor.


Member Function Documentation

APWeightEntry * APReweight3D::GetBinWeight ( unsigned int  bin_x,
unsigned int  bin_y,
unsigned int  bin_z 
) const

Get Weight entry for a given triplet of bin numbers.

unsigned int APReweight3D::GetBinX ( double  value_x  )  const

Get bin number in X that corresponds to a given value.

unsigned int APReweight3D::GetBinY ( double  value_y  )  const

Get bin number in Y that corresponds to a given value.

unsigned int APReweight3D::GetBinZ ( double  value_z  )  const

Get bin number in Z that corresponds to a given value.

TH3D * APReweight3D::GetDenominatorHist (  )  const

Get original denominator histogram.

TH3D * APReweight3D::GetNumeratorHist (  )  const

Get original numerator histogram.

double APReweight3D::GetSampleScale (  )  const

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

APWeightEntry * APReweight3D::GetWeight ( double  value_x,
double  value_y,
double  value_z 
) const

Get Weight entry for a given triplet of values.

unsigned int APReweight3D::NBins (  )  const

Get amount of bins.

void APReweight3D::ReadEfficiency ( TH3 *  efficiency_in,
TH3 *  err_low_in,
TH3 *  err_high_in = 0 
)

Read efficiencies and upper/lower uncertainty (if numerator/denominator not applicable (e.g. Bootstrap)).

void APReweight3D::SetQuietMode ( bool  isQuiet = true  ) 

Sets the flag to turn off messages.

void APReweight3D::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