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

C++ class to match single reconstructed jet (represented as a Lorentz vector) to the closest generator jet in a vector of generator jets (represented as Lorentz vectors). More...

Public Member Functions

 GenJetMatcher (float dRMax, float dPtMaxFactor=3)
 Construct a new GenJetMatcher object. More...
 
LorentzV match (LorentzV &jet, RVec< LorentzV > genJets, float resolution)
 Perform the actual matching. More...
 

Detailed Description

C++ class to match single reconstructed jet (represented as a Lorentz vector) to the closest generator jet in a vector of generator jets (represented as Lorentz vectors).

Constructor & Destructor Documentation

◆ GenJetMatcher()

GenJetMatcher ( float  dRMax,
float  dPtMaxFactor = 3 
)

Construct a new GenJetMatcher object.

Parameters
dRMaxThe maximum \(\Delta R\) to consider. For an AK8 jet, use 0.4.
dPtMaxFactorThe maximum \(p_{T}\) factor to consider where the difference \(p_{T}\) between the reco and gen jets must be less than dPtMaxFactor times the resolution (provided as an argument to GenJetMatcher::match). Default is 3.

Member Function Documentation

◆ match()

LorentzV match ( LorentzV &  jet,
RVec< LorentzV >  genJets,
float  resolution 
)

Perform the actual matching.

Parameters
jetLorentz vector for the reco jet.
genJetsVector of Lorentz vectors of the gen jets.
resolution\(p_{T}\) resolution to consider.
Returns
LorentzV The gen jet that matches.

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