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 reco::Jet &bJet, reco::RecoCandidate *lepton, const reco::MET &met) |
do the calculation of the transverse top and W masses More... | |
void | operator() (const std::vector< reco::Jet > &jets) |
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... | |
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 127 of file TopDQMHelpers.h.
Calculate::Calculate | ( | int | maxNJets, |
double | wMass | ||
) |
|
inline |
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 25 of file TopDQMHelpers.cc.
References failed_, singleTopDQM_cfi::jets, massBTopQuark_, and operator2().
Referenced by TopSingleLepton::MonitorEnsemble::fill().
double Calculate::massTopQuark | ( | const std::vector< reco::Jet > & | jets | ) |
calculate t-quark mass estimate
Definition at line 19 of file TopDQMHelpers.cc.
References failed_, singleTopDQM_cfi::jets, massTopQuark_, and operator()().
Referenced by TopSingleLepton::MonitorEnsemble::fill(), and SingleTopTChannelLepton::MonitorEnsemble::fill().
double Calculate::massWBoson | ( | const std::vector< reco::Jet > & | jets | ) |
calculate W boson mass estimate
Definition at line 13 of file TopDQMHelpers.cc.
References failed_, singleTopDQM_cfi::jets, massWBoson_, and operator()().
Referenced by TopSingleLepton::MonitorEnsemble::fill(), and SingleTopTChannelLepton::MonitorEnsemble::fill().
|
private |
do the calculation of the transverse top and W masses
Definition at line 43 of file TopDQMHelpers.cc.
References BTaggingMonitor_cfi::met, reco::LeafCandidate::p4(), funct::pow(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), mathSSE::sqrt(), tmassTopQuark_, and tmassWBoson_.
|
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 53 of file TopDQMHelpers.cc.
References failed_, heavyIonCSV_trainingSettings::idx, createfilelist::int, singleTopDQM_cfi::jets, EgHLTOffHistBins_cfi::mass, massTopQuark_, massWBoson_, maxNJets_, MuonErrorMatrixAnalyzer_cfi::maxPt, and wMass_.
Referenced by massTopQuark(), massWBoson(), tmassTopQuark(), and tmassWBoson().
|
private |
do the calculation of the t-quark mass with one b-jet
Definition at line 110 of file TopDQMHelpers.cc.
References failed_, heavyIonCSV_trainingSettings::idx, createfilelist::int, singleTopDQM_cfi::jets, EgHLTOffHistBins_cfi::mass, massBTopQuark_, and maxNJets_.
Referenced by massBTopQuark().
double Calculate::tmassTopQuark | ( | reco::RecoCandidate * | lep, |
const reco::MET & | met, | ||
const reco::Jet & | b | ||
) |
calculate top quark transverse mass estimate
Definition at line 37 of file TopDQMHelpers.cc.
References b, BTaggingMonitor_cfi::met, operator()(), and tmassTopQuark_.
Referenced by SingleTopTChannelLepton::MonitorEnsemble::fill().
double Calculate::tmassWBoson | ( | reco::RecoCandidate * | lep, |
const reco::MET & | met, | ||
const reco::Jet & | b | ||
) |
calculate W boson transverse mass estimate
Definition at line 31 of file TopDQMHelpers.cc.
References b, BTaggingMonitor_cfi::met, amptDefaultParameters_cff::mu, operator()(), and tmassWBoson_.
Referenced by SingleTopTChannelLepton::MonitorEnsemble::fill().
|
private |
indicate failed associations
Definition at line 160 of file TopDQMHelpers.h.
Referenced by massBTopQuark(), massTopQuark(), massWBoson(), operator()(), and operator2().
|
private |
cache of b-tagged top quark mass estimate
Definition at line 170 of file TopDQMHelpers.h.
Referenced by massBTopQuark(), and operator2().
|
private |
cache of top quark mass estimate
Definition at line 168 of file TopDQMHelpers.h.
Referenced by massTopQuark(), and operator()().
|
private |
cache of w boson mass estimate
Definition at line 166 of file TopDQMHelpers.h.
Referenced by massWBoson(), and operator()().
|
private |
max. number of jets to be considered
Definition at line 162 of file TopDQMHelpers.h.
Referenced by operator()(), and operator2().
|
private |
cache of top quark transverse mass estimate
Definition at line 174 of file TopDQMHelpers.h.
Referenced by operator()(), and tmassTopQuark().
|
private |
cache of W boson transverse mass estimate
Definition at line 172 of file TopDQMHelpers.h.
Referenced by operator()(), and tmassWBoson().
|
private |
paramater of the w boson mass
Definition at line 164 of file TopDQMHelpers.h.
Referenced by operator()().