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

C++ class to access scale factors associated with tau32+subjet btag(+mass) based top tagging. More details provided at https://twiki.cern.ch/twiki/bin/viewauth/CMS/JetTopTagging](https://twiki.cern.ch/twiki/bin/viewauth/CMS/JetTopTagging) More...

Public Member Functions

template<class T >
RVec< double > eval (LVector top_vect, std::vector< T > GenParts)
 Evaluation function based on the reconstructed top jet pt and the matched generator particles (GenParts). More...
 
int NMerged (LVector top_vect, RVec< Particle *> Ws, RVec< Particle *> quarks, GenParticleTree GPT)
 Finds the number of merged generator particles in the reconstructed jet. More...
 
 TopTag_SF (int year, int workpoint, bool NoMassCut=false)
 Construct a new TopTag_SF object. More...
 

Detailed Description

C++ class to access scale factors associated with tau32+subjet btag(+mass) based top tagging. More details provided at https://twiki.cern.ch/twiki/bin/viewauth/CMS/JetTopTagging](https://twiki.cern.ch/twiki/bin/viewauth/CMS/JetTopTagging)

Constructor & Destructor Documentation

◆ TopTag_SF()

TopTag_SF ( int  year,
int  workpoint,
bool  NoMassCut = false 
)

Construct a new TopTag_SF object.

Parameters
year2016, 2017, 2018
workpoint1 through 5. See Twiki above for details.
NoMassCutBool based on whether a jet mass cut is applied for the tag.

Member Function Documentation

◆ eval()

RVec<double> eval ( LVector  top_vect,
std::vector< T >  GenParts 
)

Evaluation function based on the reconstructed top jet pt and the matched generator particles (GenParts).

Template Parameters
TArray of structs constructed dynamically by TIMBER
Parameters
top_vectReconstructed top jet LorentzVector
GenPartsGenerator particles array of structs created dynamically by TIMBER (named GenParts).
Returns
RVec<double> Scale factor values, {nominal, up, down} (absolute)

◆ NMerged()

int NMerged ( LVector  top_vect,
RVec< Particle *>  Ws,
RVec< Particle *>  quarks,
GenParticleTree  GPT 
)

Finds the number of merged generator particles in the reconstructed jet.

Parameters
top_vectLorentzVector of the reconstructed top jet
WsVector of (pointers to) the W particles
quarksVector of (pointers to) the non-top quark particles
GPTGenParticleTree object with particles already added to tree.
Returns
int Number of merged particles. Maximum of 3 (ie. if more than three are found, three is returned).

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