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

C++ class to handle the JES/JEC weight calculations. More...

Public Member Functions

template<class T >
RVec< RVec< float > > eval (std::vector< T > jets, float fixedGridRhoFastjetAll)
 If redoJECs is true, evaluation calculates the weight necessary to uncorrect and recorrect the jet energy for each jet in the provided vector of jets*. In either case of redoJECs, the uncertainties are calculated. See JetRecalibrator for more information on the algorithm. More...
 
 JES_weight (str jecTag, str jetType, str uncertType="", bool redoJECs=false)
 Construct a new JES weight object. More...
 

Detailed Description

C++ class to handle the JES/JEC weight calculations.

Constructor & Destructor Documentation

◆ JES_weight()

JES_weight ( str  jecTag,
str  jetType,
str  uncertType = "",
bool  redoJECs = false 
)

Construct a new JES weight object.

Parameters
jecTagThe JEC tag to identify the JEC files to load.
jetTypeThe type of jet - ex. AK8PFPuppi.
uncertTypeEmpty string for the total uncertainty but any uncertainty in the JEC file can be provided. Default is empty string.
redoJECsSet to false if the sample already has the desired JECs applied. If true, derive correction that undoes the current JECs and applies new ones instead. Uncertainty variations are calculated in either case. Defaults to false.

Member Function Documentation

◆ eval()

RVec<RVec<float> > eval ( std::vector< T >  jets,
float  fixedGridRhoFastjetAll 
)

If redoJECs is true, evaluation calculates the weight necessary to uncorrect and recorrect the jet energy for each jet in the provided vector of jets*. In either case of redoJECs, the uncertainties are calculated. See JetRecalibrator for more information on the algorithm.

  • NOTE that the "jet" is a struct which is custom made by TIMBER's analyzer() to have the branches of the collection as the attributes of the struct. To use it in TIMBER, just reference the vector of all struct of objections named <CollectionName>s (ex. FatJets).
Parameters
jetsVector of structs with the jet collection branches as attributes.
fixedGridRhoFastjetAllStored in the NanoAOD with this name as the branch name.
Returns
RVec< RVec<float> > Nested vector of floats where the outer vector is the jet index and the inner vector is the nominal (0), up (1), and down (2 variations for that jet.

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