CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
TtEvent Class Reference

Base class to hold information for ttbar event interpretation. More...

#include "AnalysisDataFormats/TopObjects/interface/TtEvent.h"

Inheritance diagram for TtEvent:
TtFullHadronicEvent TtFullLeptonicEvent TtSemiLeptonicEvent

Classes

struct  HypoClassKeyStringToEnum
 a lightweight map for selection type string label and enum value More...
 

Public Types

enum  HypoClassKey {
  kGeom, kWMassMaxSumPt, kMaxSumPtWMass, kGenMatch,
  kMVADisc, kKinFit, kKinSolution, kWMassDeltaTopMass,
  kHitFit
}
 supported classes of event hypotheses More...
 
typedef std::pair< reco::CompositeCandidate, std::vector< int > > HypoCombPair
 pair of hypothesis and lepton jet combinatorics for a given hypothesis More...
 

Public Member Functions

void addEventHypo (const HypoClassKey &key, const HypoCombPair &hyp)
 add new hypotheses More...
 
int correspondingHypo (const HypoClassKey &key1, const unsigned &hyp1, const HypoClassKey &key2) const
 return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesis class 'key1' More...
 
int correspondingHypo (const std::string &key1, const unsigned &hyp1, const std::string &key2) const
 return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesis class 'key1' More...
 
const reco::CompositeCandidateeventHypo (const HypoClassKey &key, const unsigned &cmb=0) const
 
double fitChi2 (const unsigned &cmb=0) const
 return the chi2 of the kinematic fit of hypothesis 'cmb' if available; -1 else More...
 
double fitProb (const unsigned &cmb=0) const
 return the fit probability of hypothesis 'cmb' if available; -1 else More...
 
const edm::RefProd< TtGenEvent > & genEvent () const
 get TtGenEvent More...
 
double genMatchSumDR (const unsigned &cmb=0) const
 return the sum dr of the generator match if available; -1 else More...
 
double genMatchSumPt (const unsigned &cmb=0) const
 return the sum pt of the generator match if available; -1 else More...
 
double hitFitChi2 (const unsigned &cmb=0) const
 return the hitfit chi2 of hypothesis 'cmb' if available; -1 else More...
 
double hitFitMT (const unsigned &cmb=0) const
 return the hitfit top mass of hypothesis 'cmb' if available; -1 else More...
 
double hitFitProb (const unsigned &cmb=0) const
 return the hitfit probability of hypothesis 'cmb' if available; -1 else More...
 
double hitFitSigMT (const unsigned &cmb=0) const
 return the hitfit top mass uncertainty of hypothesis 'cmb' if available; -1 else More...
 
bool isHypoAvailable (const HypoClassKey &key, const unsigned &cmb=0) const
 check if hypothesis 'cmb' is available within the hypothesis class More...
 
bool isHypoAvailable (const std::string &key, const unsigned &cmb=0) const
 
bool isHypoClassAvailable (const HypoClassKey &key) const
 check if hypothesis class 'key' was added to the event structure More...
 
bool isHypoClassAvailable (const std::string &key) const
 check if hypothesis class 'key' was added to the event structure More...
 
bool isHypoValid (const HypoClassKey &key, const unsigned &cmb=0) const
 check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty CompositeCandidate More...
 
bool isHypoValid (const std::string &key, const unsigned &cmb=0) const
 check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty CompositeCandidate More...
 
std::vector< int > jetLeptonCombination (const HypoClassKey &key, const unsigned &cmb=0) const
 return the vector of jet lepton combinatorics for a given hypothesis and class More...
 
std::vector< int > jetLeptonCombination (const std::string &key, const unsigned &cmb=0) const
 return the vector of jet lepton combinatorics for a given hypothesis and class More...
 
std::pair< WDecay::LeptonType, WDecay::LeptonTypelepDecays () const
 get leptonic decay channels More...
 
double mvaDisc (const unsigned &cmb=0) const
 return the mva discriminant value of hypothesis 'cmb' if available; -1 else More...
 
std::string mvaMethod () const
 return the label of the mva method in use for the jet parton association (if kMVADisc is not available the string is empty) More...
 
unsigned int numberOfAvailableHypoClasses () const
 return number of available hypothesis classes More...
 
unsigned int numberOfAvailableHypos (const HypoClassKey &key) const
 return number of available hypotheses within a given hypothesis class More...
 
unsigned int numberOfAvailableHypos (const std::string &key) const
 return number of available hypotheses within a given hypothesis class More...
 
int numberOfConsideredJets (const HypoClassKey &key) const
 return number of jets that were considered when building a given hypothesis More...
 
int numberOfConsideredJets (const std::string &key) const
 return number of jets that were considered when building a given hypothesis More...
 
void printParticle (edm::LogInfo &log, const char *name, const reco::Candidate *cand) const
 print pt, eta, phi, mass of a given candidate into an existing LogInfo More...
 
void setFitChi2 (const std::vector< double > &val)
 set chi2 of kKinFit hypothesis More...
 
void setFitProb (const std::vector< double > &val)
 set fit probability of kKinFit hypothesis More...
 
void setGenEvent (const edm::Handle< TtGenEvent > &evt)
 set TtGenEvent More...
 
void setGenMatchSumDR (const std::vector< double > &val)
 set sum dr of kGenMatch hypothesis More...
 
void setGenMatchSumPt (const std::vector< double > &val)
 set sum pt of kGenMatch hypothesis More...
 
void setHitFitChi2 (const std::vector< double > &val)
 set chi2 of kHitFit hypothesis More...
 
void setHitFitMT (const std::vector< double > &val)
 set fitted top mass of kHitFit hypothesis More...
 
void setHitFitProb (const std::vector< double > &val)
 set fit probability of kHitFit hypothesis More...
 
void setHitFitSigMT (const std::vector< double > &val)
 set fitted top mass uncertainty of kHitFit hypothesis More...
 
void setLepDecays (const WDecay::LeptonType &lepDecTop1, const WDecay::LeptonType &lepDecTop2)
 set leptonic decay channels More...
 
void setMvaDiscriminators (const std::vector< double > &val)
 set mva discriminant values of kMVADisc hypothesis More...
 
void setMvaMethod (const std::string &name)
 set label of mva method for kMVADisc hypothesis More...
 
void setNumberOfConsideredJets (const HypoClassKey &key, const unsigned int nJets)
 set number of jets considered when building a given hypothesis More...
 
const math::XYZTLorentzVectortopPair () const
 get combined 4-vector of top and topBar from the TtGenEvent More...
 
const reco::CandidatetopPair (const HypoClassKey &key, const unsigned &cmb=0) const
 get combined 4-vector of top and topBar of the given hypothesis More...
 
const reco::CandidatetopPair (const std::string &key, const unsigned &cmb=0) const
 get combined 4-vector of top and topBar of the given hypothesis More...
 
 TtEvent ()
 empty constructor More...
 
virtual ~TtEvent ()
 default destructor More...
 

Protected Member Functions

HypoClassKey hypoClassKeyFromString (const std::string &label) const
 return the corresponding enum value from a string More...
 

Protected Attributes

std::map< HypoClassKey, std::vector< HypoCombPair > > evtHyp_
 
std::vector< double > fitChi2_
 result of kinematic fit More...
 
std::vector< double > fitProb_
 result of kinematic fit More...
 
edm::RefProd< TtGenEventgenEvt_
 reference to TtGenEvent (has to be kept in the event!) More...
 
std::vector< double > genMatchSumDR_
 result of gen match More...
 
std::vector< double > genMatchSumPt_
 result of gen match More...
 
std::vector< double > hitFitChi2_
 
std::vector< double > hitFitMT_
 result of hitfit More...
 
std::vector< double > hitFitProb_
 
std::vector< double > hitFitSigMT_
 
std::pair< WDecay::LeptonType, WDecay::LeptonTypelepDecays_
 leptonic decay channels More...
 
std::vector< double > mvaDisc_
 MVA discriminants. More...
 
std::string mvaMethod_
 label of the MVA method More...
 
std::map< HypoClassKey, int > nJetsConsidered_
 number of jets considered when building the hypotheses More...
 

Detailed Description

Base class to hold information for ttbar event interpretation.

The structure holds information for ttbar event interpretation. All event hypotheses of different classes (user defined during production) and a reference to the TtGenEvent (if available). It provides access and administration.

Definition at line 27 of file TtEvent.h.

Member Typedef Documentation

◆ HypoCombPair

typedef std::pair<reco::CompositeCandidate, std::vector<int> > TtEvent::HypoCombPair

pair of hypothesis and lepton jet combinatorics for a given hypothesis

Definition at line 42 of file TtEvent.h.

Member Enumeration Documentation

◆ HypoClassKey

supported classes of event hypotheses

Enumerator
kGeom 
kWMassMaxSumPt 
kMaxSumPtWMass 
kGenMatch 
kMVADisc 
kKinFit 
kKinSolution 
kWMassDeltaTopMass 
kHitFit 

Definition at line 30 of file TtEvent.h.

30  {
31  kGeom,
34  kGenMatch,
35  kMVADisc,
36  kKinFit,
39  kHitFit
40  };

Constructor & Destructor Documentation

◆ TtEvent()

TtEvent::TtEvent ( )
inline

empty constructor

Definition at line 55 of file TtEvent.h.

55 {};

◆ ~TtEvent()

virtual TtEvent::~TtEvent ( )
inlinevirtual

default destructor

Definition at line 57 of file TtEvent.h.

57 {};

Member Function Documentation

◆ addEventHypo()

void TtEvent::addEventHypo ( const HypoClassKey key,
const HypoCombPair hyp 
)
inline

add new hypotheses

Definition at line 167 of file TtEvent.h.

167 { evtHyp_[key].push_back(hyp); };

References evtHyp_, and crabWrapper::key.

◆ correspondingHypo() [1/2]

int TtEvent::correspondingHypo ( const HypoClassKey key1,
const unsigned &  hyp1,
const HypoClassKey key2 
) const

return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesis class 'key1'

Definition at line 7 of file TtEvent.cc.

7  {
8  for (unsigned hyp2 = 0; hyp2 < this->numberOfAvailableHypos(key2); ++hyp2) {
9  if (this->jetLeptonCombination(key1, hyp1) == this->jetLeptonCombination(key2, hyp2))
10  return hyp2;
11  }
12  return -1; // if no corresponding hypothesis was found
13 }

References jetLeptonCombination(), and numberOfAvailableHypos().

◆ correspondingHypo() [2/2]

int TtEvent::correspondingHypo ( const std::string &  key1,
const unsigned &  hyp1,
const std::string &  key2 
) const
inline

return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesis class 'key1'

Definition at line 140 of file TtEvent.h.

140  {
142  };

References hypoClassKeyFromString().

◆ eventHypo()

const reco::CompositeCandidate& TtEvent::eventHypo ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get event hypothesis; there can be more hypotheses of a certain class (sorted by quality); per default the best hypothesis is returned

Definition at line 63 of file TtEvent.h.

63  {
64  return (evtHyp_.find(key)->second)[cmb].first;
65  };

References evtHyp_, dqmdumpme::first, and crabWrapper::key.

Referenced by TtSemiLeptonicEvent::hadronicDecayTop(), isHypoValid(), TtSemiLeptonicEvent::leptonicDecayTop(), BoostedTopProducer::produce(), TtFullLeptonicEvent::top(), TtFullHadronicEvent::top(), TtFullLeptonicEvent::topBar(), TtFullHadronicEvent::topBar(), and topPair().

◆ fitChi2()

double TtEvent::fitChi2 ( const unsigned &  cmb = 0) const
inline

return the chi2 of the kinematic fit of hypothesis 'cmb' if available; -1 else

Definition at line 128 of file TtEvent.h.

128 { return (cmb < fitChi2_.size() ? fitChi2_[cmb] : -1.); }

References fitChi2_.

Referenced by TtSemiLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ fitProb()

double TtEvent::fitProb ( const unsigned &  cmb = 0) const
inline

return the fit probability of hypothesis 'cmb' if available; -1 else

Definition at line 132 of file TtEvent.h.

132 { return (cmb < fitProb_.size() ? fitProb_[cmb] : -1.); }

References fitProb_.

Referenced by HypothesisAnalyzer::analyze(), TtSemiLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ genEvent()

const edm::RefProd<TtGenEvent>& TtEvent::genEvent ( ) const
inline

◆ genMatchSumDR()

double TtEvent::genMatchSumDR ( const unsigned &  cmb = 0) const
inline

return the sum dr of the generator match if available; -1 else

Definition at line 120 of file TtEvent.h.

120  {
121  return (cmb < genMatchSumDR_.size() ? genMatchSumDR_[cmb] : -1.);
122  };

References genMatchSumDR_.

Referenced by HypothesisAnalyzer::analyze(), TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ genMatchSumPt()

double TtEvent::genMatchSumPt ( const unsigned &  cmb = 0) const
inline

return the sum pt of the generator match if available; -1 else

Definition at line 116 of file TtEvent.h.

116  {
117  return (cmb < genMatchSumPt_.size() ? genMatchSumPt_[cmb] : -1.);
118  };

References genMatchSumPt_.

Referenced by TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ hitFitChi2()

double TtEvent::hitFitChi2 ( const unsigned &  cmb = 0) const
inline

return the hitfit chi2 of hypothesis 'cmb' if available; -1 else

Definition at line 130 of file TtEvent.h.

130 { return (cmb < hitFitChi2_.size() ? hitFitChi2_[cmb] : -1.); }

References hitFitChi2_.

Referenced by TtSemiLeptonicEvent::print().

◆ hitFitMT()

double TtEvent::hitFitMT ( const unsigned &  cmb = 0) const
inline

return the hitfit top mass of hypothesis 'cmb' if available; -1 else

Definition at line 136 of file TtEvent.h.

136 { return (cmb < hitFitMT_.size() ? hitFitMT_[cmb] : -1.); }

References hitFitMT_.

Referenced by TtSemiLeptonicEvent::print().

◆ hitFitProb()

double TtEvent::hitFitProb ( const unsigned &  cmb = 0) const
inline

return the hitfit probability of hypothesis 'cmb' if available; -1 else

Definition at line 134 of file TtEvent.h.

134 { return (cmb < hitFitProb_.size() ? hitFitProb_[cmb] : -1.); }

References hitFitProb_.

Referenced by TtSemiLeptonicEvent::print().

◆ hitFitSigMT()

double TtEvent::hitFitSigMT ( const unsigned &  cmb = 0) const
inline

return the hitfit top mass uncertainty of hypothesis 'cmb' if available; -1 else

Definition at line 138 of file TtEvent.h.

138 { return (cmb < hitFitSigMT_.size() ? hitFitSigMT_[cmb] : -1.); }

References hitFitSigMT_.

Referenced by TtSemiLeptonicEvent::print().

◆ hypoClassKeyFromString()

TtEvent::HypoClassKey TtEvent::hypoClassKeyFromString ( const std::string &  label) const
protected

◆ isHypoAvailable() [1/2]

bool TtEvent::isHypoAvailable ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

check if hypothesis 'cmb' is available within the hypothesis class

Definition at line 78 of file TtEvent.h.

78  {
79  return isHypoClassAvailable(key) ? (cmb < evtHyp_.find(key)->second.size()) : false;
80  };

References evtHyp_, isHypoClassAvailable(), and crabWrapper::key.

◆ isHypoAvailable() [2/2]

bool TtEvent::isHypoAvailable ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

◆ isHypoClassAvailable() [1/2]

bool TtEvent::isHypoClassAvailable ( const HypoClassKey key) const
inline

check if hypothesis class 'key' was added to the event structure

Definition at line 72 of file TtEvent.h.

72 { return (evtHyp_.find(key) != evtHyp_.end()); };

References evtHyp_, and crabWrapper::key.

◆ isHypoClassAvailable() [2/2]

bool TtEvent::isHypoClassAvailable ( const std::string &  key) const
inline

check if hypothesis class 'key' was added to the event structure

Definition at line 70 of file TtEvent.h.

References hypoClassKeyFromString(), isHypoClassAvailable(), and crabWrapper::key.

Referenced by isHypoAvailable(), and isHypoClassAvailable().

◆ isHypoValid() [1/2]

bool TtEvent::isHypoValid ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty CompositeCandidate

Definition at line 86 of file TtEvent.h.

86  {
87  return isHypoAvailable(key, cmb) ? !eventHypo(key, cmb).roles().empty() : false;
88  };

References eventHypo(), isHypoAvailable(), crabWrapper::key, and reco::CompositeCandidate::roles().

◆ isHypoValid() [2/2]

bool TtEvent::isHypoValid ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

◆ jetLeptonCombination() [1/2]

std::vector<int> TtEvent::jetLeptonCombination ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

return the vector of jet lepton combinatorics for a given hypothesis and class

Definition at line 112 of file TtEvent.h.

112  {
113  return (evtHyp_.find(key)->second)[cmb].second;
114  };

References evtHyp_, crabWrapper::key, and edm::second().

◆ jetLeptonCombination() [2/2]

std::vector<int> TtEvent::jetLeptonCombination ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

return the vector of jet lepton combinatorics for a given hypothesis and class

Definition at line 108 of file TtEvent.h.

108  {
110  };

References hypoClassKeyFromString(), and crabWrapper::key.

Referenced by correspondingHypo(), TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ lepDecays()

std::pair<WDecay::LeptonType, WDecay::LeptonType> TtEvent::lepDecays ( ) const
inline

get leptonic decay channels

Definition at line 60 of file TtEvent.h.

60 { return lepDecays_; }

References lepDecays_.

◆ mvaDisc()

double TtEvent::mvaDisc ( const unsigned &  cmb = 0) const
inline

return the mva discriminant value of hypothesis 'cmb' if available; -1 else

Definition at line 126 of file TtEvent.h.

126 { return (cmb < mvaDisc_.size() ? mvaDisc_[cmb] : -1.); }

References mvaDisc_.

Referenced by TtSemiLeptonicEvent::print().

◆ mvaMethod()

std::string TtEvent::mvaMethod ( ) const
inline

return the label of the mva method in use for the jet parton association (if kMVADisc is not available the string is empty)

Definition at line 124 of file TtEvent.h.

124 { return mvaMethod_; }

References mvaMethod_.

Referenced by TtSemiLeptonicEvent::print().

◆ numberOfAvailableHypoClasses()

unsigned int TtEvent::numberOfAvailableHypoClasses ( ) const
inline

return number of available hypothesis classes

Definition at line 90 of file TtEvent.h.

90 { return evtHyp_.size(); };

References evtHyp_.

Referenced by TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ numberOfAvailableHypos() [1/2]

unsigned int TtEvent::numberOfAvailableHypos ( const HypoClassKey key) const
inline

return number of available hypotheses within a given hypothesis class

Definition at line 96 of file TtEvent.h.

96  {
97  return isHypoAvailable(key) ? evtHyp_.find(key)->second.size() : 0;
98  };

References evtHyp_, isHypoAvailable(), and crabWrapper::key.

◆ numberOfAvailableHypos() [2/2]

unsigned int TtEvent::numberOfAvailableHypos ( const std::string &  key) const
inline

return number of available hypotheses within a given hypothesis class

Definition at line 92 of file TtEvent.h.

92  {
94  };

References hypoClassKeyFromString(), and crabWrapper::key.

Referenced by correspondingHypo(), TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ numberOfConsideredJets() [1/2]

int TtEvent::numberOfConsideredJets ( const HypoClassKey key) const
inline

return number of jets that were considered when building a given hypothesis

Definition at line 104 of file TtEvent.h.

104  {
105  return (isHypoAvailable(key) ? nJetsConsidered_.find(key)->second : -1);
106  };

References isHypoAvailable(), crabWrapper::key, and nJetsConsidered_.

◆ numberOfConsideredJets() [2/2]

int TtEvent::numberOfConsideredJets ( const std::string &  key) const
inline

return number of jets that were considered when building a given hypothesis

Definition at line 100 of file TtEvent.h.

100  {
102  };

References hypoClassKeyFromString(), and crabWrapper::key.

Referenced by TtSemiLeptonicEvent::print().

◆ printParticle()

void TtEvent::printParticle ( edm::LogInfo log,
const char *  name,
const reco::Candidate cand 
) const

print pt, eta, phi, mass of a given candidate into an existing LogInfo

Definition at line 21 of file TtEvent.cc.

21  {
22  if (!cand) {
23  log << std::setw(15) << name << ": not available!\n";
24  return;
25  }
26  log << std::setprecision(3) << setiosflags(std::ios::fixed | std::ios::showpoint);
27  log << std::setw(15) << name << ": " << std::setw(7) << cand->pt() << "; " << std::setw(7) << cand->eta() << "; "
28  << std::setw(7) << cand->phi() << "; " << resetiosflags(std::ios::fixed | std::ios::showpoint)
29  << setiosflags(std::ios::scientific) << std::setw(10) << cand->mass() << "\n";
30  log << resetiosflags(std::ios::scientific);
31 }

References alignBH_cfg::fixed, dqm-mbProfile::log, and Skims_PA_cff::name.

Referenced by TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ setFitChi2()

void TtEvent::setFitChi2 ( const std::vector< double > &  val)
inline

set chi2 of kKinFit hypothesis

Definition at line 179 of file TtEvent.h.

179 { fitChi2_ = val; };

References fitChi2_, and heppy_batch::val.

◆ setFitProb()

void TtEvent::setFitProb ( const std::vector< double > &  val)
inline

set fit probability of kKinFit hypothesis

Definition at line 183 of file TtEvent.h.

183 { fitProb_ = val; };

References fitProb_, and heppy_batch::val.

◆ setGenEvent()

void TtEvent::setGenEvent ( const edm::Handle< TtGenEvent > &  evt)
inline

set TtGenEvent

Definition at line 165 of file TtEvent.h.

References genEvt_.

◆ setGenMatchSumDR()

void TtEvent::setGenMatchSumDR ( const std::vector< double > &  val)
inline

set sum dr of kGenMatch hypothesis

Definition at line 173 of file TtEvent.h.

173 { genMatchSumDR_ = val; };

References genMatchSumDR_, and heppy_batch::val.

◆ setGenMatchSumPt()

void TtEvent::setGenMatchSumPt ( const std::vector< double > &  val)
inline

set sum pt of kGenMatch hypothesis

Definition at line 171 of file TtEvent.h.

171 { genMatchSumPt_ = val; };

References genMatchSumPt_, and heppy_batch::val.

◆ setHitFitChi2()

void TtEvent::setHitFitChi2 ( const std::vector< double > &  val)
inline

set chi2 of kHitFit hypothesis

Definition at line 181 of file TtEvent.h.

181 { hitFitChi2_ = val; };

References hitFitChi2_, and heppy_batch::val.

◆ setHitFitMT()

void TtEvent::setHitFitMT ( const std::vector< double > &  val)
inline

set fitted top mass of kHitFit hypothesis

Definition at line 187 of file TtEvent.h.

187 { hitFitMT_ = val; };

References hitFitMT_, and heppy_batch::val.

◆ setHitFitProb()

void TtEvent::setHitFitProb ( const std::vector< double > &  val)
inline

set fit probability of kHitFit hypothesis

Definition at line 185 of file TtEvent.h.

185 { hitFitProb_ = val; };

References hitFitProb_, and heppy_batch::val.

◆ setHitFitSigMT()

void TtEvent::setHitFitSigMT ( const std::vector< double > &  val)
inline

set fitted top mass uncertainty of kHitFit hypothesis

Definition at line 189 of file TtEvent.h.

189 { hitFitSigMT_ = val; };

References hitFitSigMT_, and heppy_batch::val.

◆ setLepDecays()

void TtEvent::setLepDecays ( const WDecay::LeptonType lepDecTop1,
const WDecay::LeptonType lepDecTop2 
)
inline

set leptonic decay channels

Definition at line 161 of file TtEvent.h.

161  {
162  lepDecays_ = std::make_pair(lepDecTop1, lepDecTop2);
163  };

References lepDecays_.

◆ setMvaDiscriminators()

void TtEvent::setMvaDiscriminators ( const std::vector< double > &  val)
inline

set mva discriminant values of kMVADisc hypothesis

Definition at line 177 of file TtEvent.h.

177 { mvaDisc_ = val; };

References mvaDisc_, and heppy_batch::val.

◆ setMvaMethod()

void TtEvent::setMvaMethod ( const std::string &  name)
inline

set label of mva method for kMVADisc hypothesis

Definition at line 175 of file TtEvent.h.

175 { mvaMethod_ = name; };

References mvaMethod_, and Skims_PA_cff::name.

◆ setNumberOfConsideredJets()

void TtEvent::setNumberOfConsideredJets ( const HypoClassKey key,
const unsigned int  nJets 
)
inline

set number of jets considered when building a given hypothesis

Definition at line 169 of file TtEvent.h.

169 { nJetsConsidered_[key] = nJets; };

References crabWrapper::key, and nJetsConsidered_.

Referenced by TtEvtBuilder< C >::fillSpecific().

◆ topPair() [1/3]

const math::XYZTLorentzVector* TtEvent::topPair ( ) const
inline

get combined 4-vector of top and topBar from the TtGenEvent

Definition at line 155 of file TtEvent.h.

155 { return (!genEvt_ ? nullptr : this->genEvent()->topPair()); };

References genEvent(), genEvt_, and topPair().

Referenced by TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), TtFullHadronicEvent::print(), and topPair().

◆ topPair() [2/3]

const reco::Candidate* TtEvent::topPair ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get combined 4-vector of top and topBar of the given hypothesis

Definition at line 151 of file TtEvent.h.

151  {
152  return !isHypoValid(key, cmb) ? nullptr : (reco::Candidate*)&eventHypo(key, cmb);
153  };

References eventHypo(), isHypoValid(), and crabWrapper::key.

◆ topPair() [3/3]

const reco::Candidate* TtEvent::topPair ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get combined 4-vector of top and topBar of the given hypothesis

Definition at line 147 of file TtEvent.h.

147  {
148  return topPair(hypoClassKeyFromString(key), cmb);
149  };

References hypoClassKeyFromString(), crabWrapper::key, and topPair().

Referenced by HypothesisAnalyzer::analyze().

Member Data Documentation

◆ evtHyp_

std::map<HypoClassKey, std::vector<HypoCombPair> > TtEvent::evtHyp_
protected

map of hypotheses; for each HypoClassKey a vector of hypothesis and their lepton jet combinatorics are kept

Definition at line 198 of file TtEvent.h.

Referenced by addEventHypo(), eventHypo(), isHypoAvailable(), isHypoClassAvailable(), jetLeptonCombination(), numberOfAvailableHypoClasses(), numberOfAvailableHypos(), TtSemiLeptonicEvent::print(), TtFullLeptonicEvent::print(), and TtFullHadronicEvent::print().

◆ fitChi2_

std::vector<double> TtEvent::fitChi2_
protected

result of kinematic fit

Definition at line 203 of file TtEvent.h.

Referenced by fitChi2(), and setFitChi2().

◆ fitProb_

std::vector<double> TtEvent::fitProb_
protected

result of kinematic fit

Definition at line 206 of file TtEvent.h.

Referenced by fitProb(), and setFitProb().

◆ genEvt_

edm::RefProd<TtGenEvent> TtEvent::genEvt_
protected

◆ genMatchSumDR_

std::vector<double> TtEvent::genMatchSumDR_
protected

result of gen match

Definition at line 214 of file TtEvent.h.

Referenced by genMatchSumDR(), and setGenMatchSumDR().

◆ genMatchSumPt_

std::vector<double> TtEvent::genMatchSumPt_
protected

result of gen match

Definition at line 212 of file TtEvent.h.

Referenced by genMatchSumPt(), and setGenMatchSumPt().

◆ hitFitChi2_

std::vector<double> TtEvent::hitFitChi2_
protected

Definition at line 204 of file TtEvent.h.

Referenced by hitFitChi2(), and setHitFitChi2().

◆ hitFitMT_

std::vector<double> TtEvent::hitFitMT_
protected

result of hitfit

Definition at line 209 of file TtEvent.h.

Referenced by hitFitMT(), and setHitFitMT().

◆ hitFitProb_

std::vector<double> TtEvent::hitFitProb_
protected

Definition at line 207 of file TtEvent.h.

Referenced by hitFitProb(), and setHitFitProb().

◆ hitFitSigMT_

std::vector<double> TtEvent::hitFitSigMT_
protected

Definition at line 210 of file TtEvent.h.

Referenced by hitFitSigMT(), and setHitFitSigMT().

◆ lepDecays_

std::pair<WDecay::LeptonType, WDecay::LeptonType> TtEvent::lepDecays_
protected

leptonic decay channels

Definition at line 189 of file TtEvent.h.

Referenced by lepDecays(), and setLepDecays().

◆ mvaDisc_

std::vector<double> TtEvent::mvaDisc_
protected

MVA discriminants.

Definition at line 218 of file TtEvent.h.

Referenced by mvaDisc(), and setMvaDiscriminators().

◆ mvaMethod_

std::string TtEvent::mvaMethod_
protected

label of the MVA method

Definition at line 216 of file TtEvent.h.

Referenced by mvaMethod(), and setMvaMethod().

◆ nJetsConsidered_

std::map<HypoClassKey, int> TtEvent::nJetsConsidered_
protected

number of jets considered when building the hypotheses

Definition at line 200 of file TtEvent.h.

Referenced by numberOfConsideredJets(), and setNumberOfConsideredJets().

edm::RefProd< TtGenEvent >
TtEvent::kWMassMaxSumPt
Definition: TtEvent.h:32
TtEvent::mvaDisc_
std::vector< double > mvaDisc_
MVA discriminants.
Definition: TtEvent.h:218
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
TtEvent::genEvt_
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:195
TtEvent::hitFitSigMT_
std::vector< double > hitFitSigMT_
Definition: TtEvent.h:210
TtEvent::isHypoValid
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:82
TtEvent::isHypoAvailable
bool isHypoAvailable(const std::string &key, const unsigned &cmb=0) const
Definition: TtEvent.h:74
TtEvent::mvaMethod_
std::string mvaMethod_
label of the MVA method
Definition: TtEvent.h:216
TtEvent::numberOfConsideredJets
int numberOfConsideredJets(const std::string &key) const
return number of jets that were considered when building a given hypothesis
Definition: TtEvent.h:100
TtEvent::evtHyp_
std::map< HypoClassKey, std::vector< HypoCombPair > > evtHyp_
Definition: TtEvent.h:198
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
TtEvent::kKinFit
Definition: TtEvent.h:36
dqmdumpme.first
first
Definition: dqmdumpme.py:55
TtEvent::jetLeptonCombination
std::vector< int > jetLeptonCombination(const std::string &key, const unsigned &cmb=0) const
return the vector of jet lepton combinatorics for a given hypothesis and class
Definition: TtEvent.h:108
TtEvent::hitFitProb_
std::vector< double > hitFitProb_
Definition: TtEvent.h:207
TtEvent::eventHypo
const reco::CompositeCandidate & eventHypo(const HypoClassKey &key, const unsigned &cmb=0) const
Definition: TtEvent.h:63
TtEvent::numberOfAvailableHypos
unsigned int numberOfAvailableHypos(const std::string &key) const
return number of available hypotheses within a given hypothesis class
Definition: TtEvent.h:92
TtEvent::isHypoClassAvailable
bool isHypoClassAvailable(const std::string &key) const
check if hypothesis class 'key' was added to the event structure
Definition: TtEvent.h:70
TtEvent::fitProb_
std::vector< double > fitProb_
result of kinematic fit
Definition: TtEvent.h:206
TtEvent::genMatchSumPt_
std::vector< double > genMatchSumPt_
result of gen match
Definition: TtEvent.h:212
TtEvent::genEvent
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:67
reco::CompositeCandidate::roles
role_collection const & roles() const
get the roles
Definition: CompositeCandidate.h:49
TtEvent::hitFitChi2_
std::vector< double > hitFitChi2_
Definition: TtEvent.h:204
TtEvent::hypoClassKeyFromString
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:16
TtEvent::kMVADisc
Definition: TtEvent.h:35
TtEvent::hitFitMT_
std::vector< double > hitFitMT_
result of hitfit
Definition: TtEvent.h:209
TtEvent::lepDecays_
std::pair< WDecay::LeptonType, WDecay::LeptonType > lepDecays_
leptonic decay channels
Definition: TtEvent.h:189
TtEvent::nJetsConsidered_
std::map< HypoClassKey, int > nJetsConsidered_
number of jets considered when building the hypotheses
Definition: TtEvent.h:200
TtEvent::kHitFit
Definition: TtEvent.h:39
TtEvent::HypoClassKey
HypoClassKey
supported classes of event hypotheses
Definition: TtEvent.h:30
cand
Definition: decayParser.h:34
TtEvent::kWMassDeltaTopMass
Definition: TtEvent.h:38
TtEvent::fitChi2_
std::vector< double > fitChi2_
result of kinematic fit
Definition: TtEvent.h:203
reco::Candidate
Definition: Candidate.h:27
TtEvent::genMatchSumDR_
std::vector< double > genMatchSumDR_
result of gen match
Definition: TtEvent.h:214
TtEvent::kGenMatch
Definition: TtEvent.h:34
heppy_batch.val
val
Definition: heppy_batch.py:351
TtEvent::kKinSolution
Definition: TtEvent.h:37
TtEvent::topPair
const math::XYZTLorentzVector * topPair() const
get combined 4-vector of top and topBar from the TtGenEvent
Definition: TtEvent.h:155
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
TtEvent::kMaxSumPtWMass
Definition: TtEvent.h:33
TtEvent::correspondingHypo
int correspondingHypo(const std::string &key1, const unsigned &hyp1, const std::string &key2) const
return the hypothesis in hypothesis class 'key2', which corresponds to hypothesis 'hyp1' in hypothesi...
Definition: TtEvent.h:140
crabWrapper.key
key
Definition: crabWrapper.py:19
label
const char * label
Definition: PFTauDecayModeTools.cc:11
TtEvent::kGeom
Definition: TtEvent.h:31