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

C++ class to recalibrate the \(p_{T}\) of jets. Initialized with basic parameters and calculations done on vectors of jets from an event using the class methods. More...

Public Member Functions

template<class T >
void CalculateCorrection (T jet, float fixedGridRhoFastjetAll)
 Calculate the correction for a given jet and rho and store the value internally. More...
 
template<class T >
void CalculateUncertainty (T jet, float delta=1)
 Calculate the correction uncertainty for a given jet and store the value internally. WARNING: CalculateCorrection must be run first. More...
 
float GetCorrection ()
 Return the internally stored correction value that was calculated during CalculateCorrection. More...
 
float GetUncertainty ()
 Return the internally stored uncertainty value that was calculated during CalculateUncertainty. More...
 
 JetRecalibrator ()
 Construct a new Jet Recalibrator object.
 
 JetRecalibrator (str jecTag, str jetType, bool doResidualJECs, str uncertType, int upToLevel=3)
 Construct a new Jet Recalibrator object. More...
 

Detailed Description

C++ class to recalibrate the \(p_{T}\) of jets. Initialized with basic parameters and calculations done on vectors of jets from an event using the class methods.

Constructor & Destructor Documentation

◆ JetRecalibrator()

JetRecalibrator ( str  jecTag,
str  jetType,
bool  doResidualJECs,
str  uncertType,
int  upToLevel = 3 
)

Construct a new Jet Recalibrator object.

Parameters
jecTagThe JEC tag to identify the JEC files to load.
jetTypeThe type of jet - ex. AK8PFPuppi.
doResidualJECsFlag to turn on or off the residual JECs
uncertTypeEmpty string for the total uncertainty but any uncertainty in the JEC file can be provided.
upToLevelCorrection level to apply. Options are 1, 2, or 3 (corresponding to L1, L2, L3). Defaults to 3.

Member Function Documentation

◆ CalculateCorrection()

void CalculateCorrection ( jet,
float  fixedGridRhoFastjetAll 
)

Calculate the correction for a given jet and rho and store the value internally.

Parameters
jetTIMBER jet struct (generated automatically by TIMBER's analyzer()) which stores the attributes of the jet (pt, eta, phi, tagging values, etc).
fixedGridRhoFastjetAllStored in the NanoAOD with this name as the branch name.
Returns
void

◆ CalculateUncertainty()

void CalculateUncertainty ( jet,
float  delta = 1 
)

Calculate the correction uncertainty for a given jet and store the value internally. WARNING: CalculateCorrection must be run first.

Parameters
jetTIMBER jet struct (generated automatically by TIMBER's analyzer()) which stores the attributes of the jet (pt, eta, phi, tagging values, etc).
deltaMultiplicative factor on the uncertainty. Defaults to 1.

◆ GetCorrection()

float GetCorrection ( )

Return the internally stored correction value that was calculated during CalculateCorrection.

Returns
float

◆ GetUncertainty()

float GetUncertainty ( )

Return the internally stored uncertainty value that was calculated during CalculateUncertainty.

Returns
float

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