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...
|
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...
|
|
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.
◆ JetRecalibrator()
JetRecalibrator |
( |
str |
jecTag, |
|
|
str |
jetType, |
|
|
bool |
doResidualJECs, |
|
|
str |
uncertType, |
|
|
int |
upToLevel = 3 |
|
) |
| |
Construct a new Jet Recalibrator object.
- Parameters
-
jecTag | The JEC tag to identify the JEC files to load. |
jetType | The type of jet - ex. AK8PFPuppi. |
doResidualJECs | Flag to turn on or off the residual JECs |
uncertType | Empty string for the total uncertainty but any uncertainty in the JEC file can be provided. |
upToLevel | Correction level to apply. Options are 1, 2, or 3 (corresponding to L1, L2, L3). Defaults to 3. |
◆ CalculateCorrection()
void CalculateCorrection |
( |
T |
jet, |
|
|
float |
fixedGridRhoFastjetAll |
|
) |
| |
Calculate the correction for a given jet and rho and store the value internally.
- Parameters
-
jet | TIMBER jet struct (generated automatically by TIMBER's analyzer()) which stores the attributes of the jet (pt, eta, phi, tagging values, etc). |
fixedGridRhoFastjetAll | Stored in the NanoAOD with this name as the branch name. |
- Returns
- void
◆ CalculateUncertainty()
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.
- Parameters
-
jet | TIMBER jet struct (generated automatically by TIMBER's analyzer()) which stores the attributes of the jet (pt, eta, phi, tagging values, etc). |
delta | Multiplicative factor on the uncertainty. Defaults to 1. |
◆ GetCorrection()
Return the internally stored correction value that was calculated during CalculateCorrection.
- Returns
- 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: