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

C++ class to directly handle JMR weights in the case of tau21 jet substructure. The values used (nominal, up, down) are: More...

Public Member Functions

template<class Tjet , class TgenJet >
RVec< RVec< float > > eval (std::vector< Tjet > jets, std::vector< TgenJet > genJets)
 Evaluation calculates the factor necessary for each jet in the provided vector of jets* in order to smear the jet mass distribution. See JetSmearer for more information on the smearing algorithm. More...
 
 JMR_weight (int year)
 Construct a new JMR weight object. More...
 

Detailed Description

C++ class to directly handle JMR weights in the case of tau21 jet substructure. The values used (nominal, up, down) are:

Constructor & Destructor Documentation

◆ JMR_weight()

JMR_weight ( int  year)

Construct a new JMR weight object.

Parameters
yearOptions are 2016, 2017, or 2018.

Member Function Documentation

◆ eval()

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

Evaluation calculates the factor necessary for each jet in the provided vector of jets* in order to smear the jet mass distribution. See JetSmearer for more information on the smearing 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.
genJetsVector of structs with the gen jet collection branches as attributes.
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: