CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Calculate Class Reference

Helper class for the calculation of a top and a W boson mass estime. More...

#include "DQM/Physics/interface/TopDQMHelpers.h"

Public Member Functions

 Calculate (int maxNJets, double wMass)
 default constructor More...
 
double massBTopQuark (const std::vector< reco::Jet > &jets, std::vector< double > VbtagWP, double btagWP_)
 calculate b-tagged t-quark mass estimate More...
 
double massTopQuark (const std::vector< reco::Jet > &jets)
 calculate t-quark mass estimate More...
 
double massWBoson (const std::vector< reco::Jet > &jets)
 calculate W boson mass estimate More...
 
double tmassTopQuark (reco::RecoCandidate *lep, const reco::MET &met, const reco::Jet &b)
 calculate top quark transverse mass estimate More...
 
double tmassWBoson (reco::RecoCandidate *lep, const reco::MET &met, const reco::Jet &b)
 calculate W boson transverse mass estimate More...
 
 ~Calculate ()
 default destructor More...
 

Private Member Functions

void operator() (const std::vector< reco::Jet > &jets)
 
void operator() (const reco::Jet &bJet, reco::RecoCandidate *lepton, const reco::MET &met)
 do the calculation of the transverse top and W masses More...
 
void operator2 (const std::vector< reco::Jet > &, std::vector< double >, double)
 do the calculation of the t-quark mass with one b-jet More...
 

Private Attributes

bool failed_
 indicate failed associations More...
 
double massBTopQuark_
 cache of b-tagged top quark mass estimate More...
 
double massTopQuark_
 cache of top quark mass estimate More...
 
double massWBoson_
 cache of w boson mass estimate More...
 
int maxNJets_
 max. number of jets to be considered More...
 
double tmassTopQuark_
 cache of top quark transverse mass estimate More...
 
double tmassWBoson_
 cache of W boson transverse mass estimate More...
 
double wMass_
 paramater of the w boson mass More...
 

Detailed Description

Helper class for the calculation of a top and a W boson mass estime.

Helper class for the calculation of a top and a W boson mass estimate. The core implementation originates from the plugin TtSemiLepHypMaxSumPtWMass in TopQuarkAnalysis/TopJetCombination package. It may be extended to include b tag information.

Definition at line 139 of file TopDQMHelpers.h.

Constructor & Destructor Documentation

Calculate::Calculate ( int  maxNJets,
double  wMass 
)

default constructor

Definition at line 3 of file TopDQMHelpers.cc.

Calculate::~Calculate ( )
inline

default destructor

Definition at line 144 of file TopDQMHelpers.h.

Member Function Documentation

double Calculate::massBTopQuark ( const std::vector< reco::Jet > &  jets,
std::vector< double >  VbtagWP,
double  btagWP_ 
)

calculate b-tagged t-quark mass estimate

Definition at line 23 of file TopDQMHelpers.cc.

double Calculate::massTopQuark ( const std::vector< reco::Jet > &  jets)

calculate t-quark mass estimate

Definition at line 18 of file TopDQMHelpers.cc.

double Calculate::massWBoson ( const std::vector< reco::Jet > &  jets)

calculate W boson mass estimate

Definition at line 13 of file TopDQMHelpers.cc.

void Calculate::operator() ( const std::vector< reco::Jet > &  jets)
private

do the calculation; this is called only once per event by the first function call to return a mass estimate. The once calculated values are cached afterwards

Definition at line 54 of file TopDQMHelpers.cc.

void Calculate::operator() ( const reco::Jet bJet,
reco::RecoCandidate lepton,
const reco::MET met 
)
private

do the calculation of the transverse top and W masses

Definition at line 41 of file TopDQMHelpers.cc.

void Calculate::operator2 ( const std::vector< reco::Jet > &  jets,
std::vector< double >  bjet,
double  btagWP 
)
private

do the calculation of the t-quark mass with one b-jet

Definition at line 112 of file TopDQMHelpers.cc.

double Calculate::tmassTopQuark ( reco::RecoCandidate lep,
const reco::MET met,
const reco::Jet b 
)

calculate top quark transverse mass estimate

Definition at line 35 of file TopDQMHelpers.cc.

double Calculate::tmassWBoson ( reco::RecoCandidate lep,
const reco::MET met,
const reco::Jet b 
)

calculate W boson transverse mass estimate

Definition at line 29 of file TopDQMHelpers.cc.

Member Data Documentation

bool Calculate::failed_
private

indicate failed associations

Definition at line 176 of file TopDQMHelpers.h.

double Calculate::massBTopQuark_
private

cache of b-tagged top quark mass estimate

Definition at line 186 of file TopDQMHelpers.h.

double Calculate::massTopQuark_
private

cache of top quark mass estimate

Definition at line 184 of file TopDQMHelpers.h.

double Calculate::massWBoson_
private

cache of w boson mass estimate

Definition at line 182 of file TopDQMHelpers.h.

int Calculate::maxNJets_
private

max. number of jets to be considered

Definition at line 178 of file TopDQMHelpers.h.

double Calculate::tmassTopQuark_
private

cache of top quark transverse mass estimate

Definition at line 190 of file TopDQMHelpers.h.

double Calculate::tmassWBoson_
private

cache of W boson transverse mass estimate

Definition at line 188 of file TopDQMHelpers.h.

double Calculate::wMass_
private

paramater of the w boson mass

Definition at line 180 of file TopDQMHelpers.h.