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

C++ class to weight events as if one were dropping any events with a jet in the effected region. Information on the HEM15/16 issue here. Note that this class is not meant to scale jet energy as described at the link. In place of energy scaling, the evaluation will return 0 or 1 for data and either 0.353 or 1 for MC (affected and unaffected, respectively). The value of 0.353 is derived from the ratio of 2018 affected by this issue (that is, 35.3% of MC should be unaffected but MC obviously does not have run or luminosity blocks). More...

Public Member Functions

std::vector< float > eval (RVec< float > FatJet_eta, RVec< float > FatJet_phi, int run=0)
 Return an event weight based on the existence of at least one jet in the affected HEM15/16 region. The algorithm is meant to drop the event entirely in data if there is a jet in this region and to weight down the event if affected in simulation. More...
 
 HEM_drop (std::string setname, std::vector< int > idxToCheck={})
 Constructor for HEM_drop. More...
 

Detailed Description

C++ class to weight events as if one were dropping any events with a jet in the effected region. Information on the HEM15/16 issue here. Note that this class is not meant to scale jet energy as described at the link. In place of energy scaling, the evaluation will return 0 or 1 for data and either 0.353 or 1 for MC (affected and unaffected, respectively). The value of 0.353 is derived from the ratio of 2018 affected by this issue (that is, 35.3% of MC should be unaffected but MC obviously does not have run or luminosity blocks).

Constructor & Destructor Documentation

◆ HEM_drop()

HEM_drop ( std::string  setname,
std::vector< int >  idxToCheck = {} 
)

Constructor for HEM_drop.

Parameters
setnamedataA, dataB, dataC, dataD, or some MC name (does not matter what)
idxToCheckVector of jet indexes to check. Defaults to empty in which case all jets will be checked.

Member Function Documentation

◆ eval()

std::vector< float > eval ( RVec< float >  FatJet_eta,
RVec< float >  FatJet_phi,
int  run = 0 
)

Return an event weight based on the existence of at least one jet in the affected HEM15/16 region. The algorithm is meant to drop the event entirely in data if there is a jet in this region and to weight down the event if affected in simulation.

Parameters
runrun for data. Defaults to 0 (to be used with MC).
FatJet_eta
FatJet_phi

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