TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
Public Member Functions | List of all members
Pileup_weight Class Reference

C++ class to handle pileup reweighting. Used in AutoPU.py. More...

Public Member Functions

std::vector< float > eval (int Pileup_nTrueInt)
 Evaluate the pileup weight (value of ratio of data to simulation). More...
 
 Pileup_weight (std::string filename_mc, std::string filename_data, std::string histname_mc, std::string histname_data)
 Construct a new Pileup_weight object, providing custom MC and data histograms to take the ratio of the true number of primary vertices. More...
 
 Pileup_weight (std::string era)
 Construct a new Pileup_weight object. Assumes "auto" pileup calculation for MC distribution. Calculates the ratio of the true number of primary vertices between data and simulation. More...
 

Detailed Description

C++ class to handle pileup reweighting. Used in AutoPU.py.

Constructor & Destructor Documentation

◆ Pileup_weight() [1/2]

Pileup_weight ( std::string  filename_mc,
std::string  filename_data,
std::string  histname_mc,
std::string  histname_data 
)

Construct a new Pileup_weight object, providing custom MC and data histograms to take the ratio of the true number of primary vertices.

Parameters
filename_mcUse "auto" to get the number of primary vertices directly from "autoPU" histogram in memory (gDirectory)
filename_data
histname_mc
histname_data

◆ Pileup_weight() [2/2]

Pileup_weight ( std::string  era)

Construct a new Pileup_weight object. Assumes "auto" pileup calculation for MC distribution. Calculates the ratio of the true number of primary vertices between data and simulation.

Parameters
era2016(UL), 2017(UL), 2018(UL)

Member Function Documentation

◆ eval()

std::vector< float > eval ( int  Pileup_nTrueInt)

Evaluate the pileup weight (value of ratio of data to simulation).

Parameters
Pileup_nTrueInt
Returns
std::vector<float>

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