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

C++ class to handle the JER weight calculations. More...

Public Member Functions

template<class Tjet , class TgenJet >
RVec< RVec< float > > eval (std::vector< Tjet > jets, std::vector< TgenJet > genJets, float fixedGridRhoFastjetAll)
 Evaluation calculates the factor necessary for each jet in the provided vector of jets* in order to smear the jet \(p_{T}\) distribution. See JetSmearer for more information on the smearing algorithm. More...
 
 JER_weight (std::string jerTag, std::string jetType)
 Construct a new JER weight object. More...
 

Detailed Description

C++ class to handle the JER weight calculations.

Constructor & Destructor Documentation

◆ JER_weight()

JER_weight ( std::string  jerTag,
std::string  jetType 
)

Construct a new JER weight object.

Parameters
jerTagThe JER tag to identify the JER files to load.
jetTypeThe type of jet - ex. AK8PFPuppi

Member Function Documentation

◆ eval()

RVec<RVec<float> > eval ( std::vector< Tjet >  jets,
std::vector< TgenJet >  genJets,
float  fixedGridRhoFastjetAll 
)

Evaluation calculates the factor necessary for each jet in the provided vector of jets* in order to smear the jet \(p_{T}\) distribution. See JetSmearer for more information on the smearing algorithm.

Parameters
jetsVector of structs with the jet collection branches as attributes.
genJetsVector of structs with the gen 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: