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_miniAOD Class Reference

#include <TopDQMHelpers.h>

Public Member Functions

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

Private Member Functions

void operator() (const std::vector< pat::Jet > &jets)
 
void operator() (const pat::Jet &bJet, pat::Electron *lepton, const pat::MET &met)
 do the calculation of the transverse top and W masses More...
 
void operator() (const pat::Jet &bJet, pat::Muon *lepton, const pat::MET &met)
 
void operator2 (const std::vector< pat::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

Definition at line 72 of file TopDQMHelpers.h.

Constructor & Destructor Documentation

Calculate_miniAOD::Calculate_miniAOD ( int  maxNJets,
double  wMass 
)

default constructor

Definition at line 168 of file TopDQMHelpers.cc.

Calculate_miniAOD::~Calculate_miniAOD ( )
inline

default destructor

Definition at line 77 of file TopDQMHelpers.h.

Member Function Documentation

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

calculate b-tagged t-quark mass estimate

Definition at line 188 of file TopDQMHelpers.cc.

double Calculate_miniAOD::massTopQuark ( const std::vector< pat::Jet > &  jets)

calculate t-quark mass estimate

Definition at line 183 of file TopDQMHelpers.cc.

double Calculate_miniAOD::massWBoson ( const std::vector< pat::Jet > &  jets)

calculate W boson mass estimate

Definition at line 178 of file TopDQMHelpers.cc.

void Calculate_miniAOD::operator() ( const std::vector< pat::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 250 of file TopDQMHelpers.cc.

void Calculate_miniAOD::operator() ( const pat::Jet bJet,
pat::Electron lepton,
const pat::MET met 
)
private

do the calculation of the transverse top and W masses

Definition at line 236 of file TopDQMHelpers.cc.

void Calculate_miniAOD::operator() ( const pat::Jet bJet,
pat::Muon lepton,
const pat::MET met 
)
private

Definition at line 222 of file TopDQMHelpers.cc.

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

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

Definition at line 308 of file TopDQMHelpers.cc.

double Calculate_miniAOD::tmassTopQuark ( pat::Muon lep,
const pat::MET met,
const pat::Jet b 
)

calculate top quark transverse mass estimate

Definition at line 215 of file TopDQMHelpers.cc.

double Calculate_miniAOD::tmassTopQuark ( pat::Electron lep,
const pat::MET met,
const pat::Jet b 
)

calculate top quark transverse mass estimate

Definition at line 208 of file TopDQMHelpers.cc.

double Calculate_miniAOD::tmassWBoson ( pat::Muon lep,
const pat::MET met,
const pat::Jet b 
)

calculate W boson transverse mass estimate

Definition at line 195 of file TopDQMHelpers.cc.

double Calculate_miniAOD::tmassWBoson ( pat::Electron lep,
const pat::MET met,
const pat::Jet b 
)

calculate W boson transverse mass estimate

Definition at line 201 of file TopDQMHelpers.cc.

Member Data Documentation

bool Calculate_miniAOD::failed_
private

indicate failed associations

Definition at line 120 of file TopDQMHelpers.h.

double Calculate_miniAOD::massBTopQuark_
private

cache of b-tagged top quark mass estimate

Definition at line 130 of file TopDQMHelpers.h.

double Calculate_miniAOD::massTopQuark_
private

cache of top quark mass estimate

Definition at line 128 of file TopDQMHelpers.h.

double Calculate_miniAOD::massWBoson_
private

cache of w boson mass estimate

Definition at line 126 of file TopDQMHelpers.h.

int Calculate_miniAOD::maxNJets_
private

max. number of jets to be considered

Definition at line 122 of file TopDQMHelpers.h.

double Calculate_miniAOD::tmassTopQuark_
private

cache of top quark transverse mass estimate

Definition at line 134 of file TopDQMHelpers.h.

double Calculate_miniAOD::tmassWBoson_
private

cache of W boson transverse mass estimate

Definition at line 132 of file TopDQMHelpers.h.

double Calculate_miniAOD::wMass_
private

paramater of the w boson mass

Definition at line 124 of file TopDQMHelpers.h.