CMS 3D CMS Logo

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

Class derived from the TtEvent for the semileptonic decay channel. More...

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

Inheritance diagram for TtSemiLeptonicEvent:
TtEvent

Public Member Functions

const reco::CandidatehadronicDecayB (const std::string &key, const unsigned &cmb=0) const
 get hadronic b of the given hypothesis More...
 
const reco::CandidatehadronicDecayB (const HypoClassKey &key, const unsigned &cmb=0) const
 get hadronic b of the given hypothesis More...
 
const reco::GenParticlehadronicDecayB () const
 get hadronic b of the TtGenEvent More...
 
const reco::CandidatehadronicDecayQuark (const std::string &key, const unsigned &cmb=0) const
 get hadronic light quark of the given hypothesis More...
 
const reco::CandidatehadronicDecayQuark (const HypoClassKey &key, const unsigned &cmb=0) const
 get hadronic light quark of the given hypothesis More...
 
const reco::GenParticlehadronicDecayQuark () const
 get hadronic light quark of the TtGenEvent More...
 
const reco::CandidatehadronicDecayQuarkBar (const std::string &key, const unsigned &cmb=0) const
 get hadronic light quark of the given hypothesis More...
 
const reco::CandidatehadronicDecayQuarkBar (const HypoClassKey &key, const unsigned &cmb=0) const
 get hadronic light quark of the given hypothesis More...
 
const reco::GenParticlehadronicDecayQuarkBar () const
 get hadronic light quark of the TtGenEvent More...
 
const reco::CandidatehadronicDecayTop (const std::string &key, const unsigned &cmb=0) const
 get hadronic top of the given hypothesis More...
 
const reco::CandidatehadronicDecayTop (const HypoClassKey &key, const unsigned &cmb=0) const
 get hadronic top of the given hypothesis More...
 
const reco::GenParticlehadronicDecayTop () const
 get hadronic top of the TtGenEvent More...
 
const reco::CandidatehadronicDecayW (const std::string &key, const unsigned &cmb=0) const
 get hadronic W of the given hypothesis More...
 
const reco::CandidatehadronicDecayW (const HypoClassKey &key, const unsigned &cmb=0) const
 get hadronic W of the given hypothesis More...
 
const reco::GenParticlehadronicDecayW () const
 get hadronic W of the TtGenEvent More...
 
const reco::CandidateleptonicDecayB (const std::string &key, const unsigned &cmb=0) const
 get leptonic b of the given hypothesis More...
 
const reco::CandidateleptonicDecayB (const HypoClassKey &key, const unsigned &cmb=0) const
 get leptonic b of the given hypothesis More...
 
const reco::GenParticleleptonicDecayB () const
 get leptonic b of the TtGenEvent More...
 
const reco::CandidateleptonicDecayTop (const std::string &key, const unsigned &cmb=0) const
 get leptonic top of the given hypothesis More...
 
const reco::CandidateleptonicDecayTop (const HypoClassKey &key, const unsigned &cmb=0) const
 get leptonic top of the given hypothesis More...
 
const reco::GenParticleleptonicDecayTop () const
 get leptonic top of the TtGenEvent More...
 
const reco::CandidateleptonicDecayW (const std::string &key, const unsigned &cmb=0) const
 get leptonic W of the given hypothesis More...
 
const reco::CandidateleptonicDecayW (const HypoClassKey &key, const unsigned &cmb=0) const
 get leptonic W of the given hypothesis More...
 
const reco::GenParticleleptonicDecayW () const
 get leptonic W of the TtGenEvent More...
 
const int numberOfRealNeutrinoSolutions (const HypoClassKey &key) const
 get number of real neutrino solutions for a given hypo class More...
 
const int numberOfRealNeutrinoSolutions (const std::string &key) const
 get number of real neutrino solutions for a given hypo class More...
 
void print (const int verbosity=1) const
 
void setNumberOfRealNeutrinoSolutions (const HypoClassKey &key, const int &nr)
 set number of real neutrino solutions for a given hypo class More...
 
const reco::CandidatesingleLepton (const std::string &key, const unsigned &cmb=0) const
 get leptonic light quark of the given hypothesis More...
 
const reco::CandidatesingleLepton (const HypoClassKey &key, const unsigned &cmb=0) const
 get leptonic light quark of the given hypothesis More...
 
const reco::GenParticlesingleLepton () const
 get lepton top of the TtGenEvent More...
 
const reco::CandidatesingleNeutrino (const std::string &key, const unsigned &cmb=0) const
 get leptonic light quark of the given hypothesis More...
 
const reco::CandidatesingleNeutrino (const HypoClassKey &key, const unsigned &cmb=0) const
 get leptonic light quark of the given hypothesis More...
 
const reco::GenParticlesingleNeutrino () const
 get neutrino of the TtGenEvent More...
 
 TtSemiLeptonicEvent ()
 empty constructor More...
 
virtual ~TtSemiLeptonicEvent ()
 default destructor More...
 
- Public Member Functions inherited from TtEvent
void addEventHypo (const HypoClassKey &key, const HypoCombPair hyp)
 add new hypotheses 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...
 
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...
 
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 std::string &key, const unsigned &cmb=0) const
 
bool isHypoAvailable (const HypoClassKey &key, const unsigned &cmb=0) const
 check if hypothesis 'cmb' is available within the hypothesis class More...
 
bool isHypoClassAvailable (const std::string &key) const
 check if hypothesis class 'key' was added to the event structure More...
 
bool isHypoClassAvailable (const HypoClassKey &key) const
 check if hypothesis class 'key' was added to the event structure 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...
 
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...
 
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::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::pair< WDecay::LeptonType,
WDecay::LeptonType
lepDecays () 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 std::string &key) const
 return number of available hypotheses within a given hypothesis class More...
 
unsigned int numberOfAvailableHypos (const HypoClassKey &key) const
 return number of available hypotheses within a given hypothesis class More...
 
int numberOfConsideredJets (const std::string &key) const
 return number of jets that were considered when building a given hypothesis More...
 
int numberOfConsideredJets (const HypoClassKey &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 reco::CandidatetopPair (const std::string &key, const unsigned &cmb=0) const
 get combined 4-vector of top and topBar of the given hypothesis 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 math::XYZTLorentzVectortopPair () const
 get combined 4-vector of top and topBar from the TtGenEvent More...
 
 TtEvent ()
 empty constructor More...
 
virtual ~TtEvent ()
 default destructor More...
 

Protected Attributes

std::map< HypoClassKey, int > numberOfRealNeutrinoSolutions_
 number of real neutrino solutions for all hypo classes More...
 
- Protected Attributes inherited from TtEvent
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::LeptonType
lepDecays_
 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...
 

Additional Inherited Members

- Public Types inherited from TtEvent
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...
 
- Protected Member Functions inherited from TtEvent
HypoClassKey hypoClassKeyFromString (const std::string &label) const
 return the corresponding enum value from a string More...
 

Detailed Description

Class derived from the TtEvent for the semileptonic decay channel.

The structure holds information on the leptonic decay channels, 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 24 of file TtSemiLeptonicEvent.h.

Constructor & Destructor Documentation

TtSemiLeptonicEvent::TtSemiLeptonicEvent ( )
inline

empty constructor

Definition at line 29 of file TtSemiLeptonicEvent.h.

29 {};
virtual TtSemiLeptonicEvent::~TtSemiLeptonicEvent ( )
inlinevirtual

default destructor

Definition at line 31 of file TtSemiLeptonicEvent.h.

31 {};

Member Function Documentation

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

get hadronic b of the given hypothesis

Definition at line 38 of file TtSemiLeptonicEvent.h.

References hadronicDecayB(), and TtEvent::hypoClassKeyFromString().

Referenced by hadronicDecayB().

38 { return hadronicDecayB(hypoClassKeyFromString(key), cmb); };
const reco::GenParticle * hadronicDecayB() const
get hadronic b of the TtGenEvent
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayB ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get hadronic b of the given hypothesis

Definition at line 40 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtSemiLepDaughter::HadB, hadronicDecayTop(), and TtEvent::isHypoValid().

static const std::string HadB
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
const reco::GenParticle * hadronicDecayTop() const
get hadronic top of the TtGenEvent
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::hadronicDecayB ( ) const
inline

get hadronic b of the TtGenEvent

Definition at line 77 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and hadronicDecayB().

Referenced by hadronicDecayB(), and print().

77 { return (!genEvt_ ? 0 : this->genEvent()->hadronicDecayB()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::GenParticle * hadronicDecayB() const
get hadronic b of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayQuark ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get hadronic light quark of the given hypothesis

Definition at line 46 of file TtSemiLeptonicEvent.h.

References hadronicDecayQuark(), and TtEvent::hypoClassKeyFromString().

Referenced by hadronicDecayQuark().

HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::GenParticle * hadronicDecayQuark() const
get hadronic light quark of the TtGenEvent
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayQuark ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get hadronic light quark of the given hypothesis

Definition at line 48 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtSemiLepDaughter::HadP, hadronicDecayW(), and TtEvent::isHypoValid().

48 { return !isHypoValid(key,cmb) ? 0 : hadronicDecayW(key,cmb)->daughter(TtSemiLepDaughter::HadP); };
static const std::string HadP
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const reco::GenParticle * hadronicDecayW() const
get hadronic W of the TtGenEvent
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::hadronicDecayQuark ( ) const
inline

get hadronic light quark of the TtGenEvent

Definition at line 81 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and hadronicDecayQuark().

Referenced by hadronicDecayQuark(), and print().

81 { return (!genEvt_ ? 0 : this->genEvent()->hadronicDecayQuark()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::GenParticle * hadronicDecayQuark() const
get hadronic light quark of the TtGenEvent
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayQuarkBar ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get hadronic light quark of the given hypothesis

Definition at line 50 of file TtSemiLeptonicEvent.h.

References hadronicDecayQuarkBar(), and TtEvent::hypoClassKeyFromString().

Referenced by hadronicDecayQuarkBar().

HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
const reco::GenParticle * hadronicDecayQuarkBar() const
get hadronic light quark of the TtGenEvent
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayQuarkBar ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get hadronic light quark of the given hypothesis

Definition at line 52 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtSemiLepDaughter::HadQ, hadronicDecayW(), and TtEvent::isHypoValid().

52 { return !isHypoValid(key,cmb) ? 0 : hadronicDecayW(key,cmb)->daughter(TtSemiLepDaughter::HadQ); };
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const reco::GenParticle * hadronicDecayW() const
get hadronic W of the TtGenEvent
static const std::string HadQ
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::hadronicDecayQuarkBar ( ) const
inline

get hadronic light quark of the TtGenEvent

Definition at line 83 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and hadronicDecayQuarkBar().

Referenced by hadronicDecayQuarkBar(), and print().

83 { return (!genEvt_ ? 0 : this->genEvent()->hadronicDecayQuarkBar()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::GenParticle * hadronicDecayQuarkBar() const
get hadronic light quark of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayTop ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get hadronic top of the given hypothesis

Definition at line 34 of file TtSemiLeptonicEvent.h.

References hadronicDecayTop(), and TtEvent::hypoClassKeyFromString().

Referenced by hadronicDecayTop(), and main().

HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
const reco::GenParticle * hadronicDecayTop() const
get hadronic top of the TtGenEvent
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayTop ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get hadronic top of the given hypothesis

Definition at line 36 of file TtSemiLeptonicEvent.h.

References TtEvent::eventHypo(), TtSemiLepDaughter::HadTop, and TtEvent::isHypoValid().

36 { return !isHypoValid(key,cmb) ? 0 : eventHypo(key,cmb). daughter(TtSemiLepDaughter::HadTop); };
static const std::string HadTop
const reco::CompositeCandidate & eventHypo(const HypoClassKey &key, const unsigned &cmb=0) const
Definition: TtEvent.h:51
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::hadronicDecayTop ( ) const
inline

get hadronic top of the TtGenEvent

Definition at line 75 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and hadronicDecayTop().

Referenced by hadronicDecayB(), hadronicDecayTop(), hadronicDecayW(), and print().

75 { return (!genEvt_ ? 0 : this->genEvent()->hadronicDecayTop()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::GenParticle * hadronicDecayTop() const
get hadronic top of the TtGenEvent
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayW ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get hadronic W of the given hypothesis

Definition at line 42 of file TtSemiLeptonicEvent.h.

References hadronicDecayW(), and TtEvent::hypoClassKeyFromString().

Referenced by hadronicDecayW(), and main().

42 { return hadronicDecayW(hypoClassKeyFromString(key), cmb); };
const reco::GenParticle * hadronicDecayW() const
get hadronic W of the TtGenEvent
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::hadronicDecayW ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get hadronic W of the given hypothesis

Definition at line 44 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), hadronicDecayTop(), TtSemiLepDaughter::HadW, and TtEvent::isHypoValid().

virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
static const std::string HadW
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
const reco::GenParticle * hadronicDecayTop() const
get hadronic top of the TtGenEvent
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::hadronicDecayW ( ) const
inline

get hadronic W of the TtGenEvent

Definition at line 79 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and hadronicDecayW().

Referenced by hadronicDecayQuark(), hadronicDecayQuarkBar(), hadronicDecayW(), and print().

79 { return (!genEvt_ ? 0 : this->genEvent()->hadronicDecayW()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::GenParticle * hadronicDecayW() const
get hadronic W of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::Candidate* TtSemiLeptonicEvent::leptonicDecayB ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get leptonic b of the given hypothesis

Definition at line 58 of file TtSemiLeptonicEvent.h.

References TtEvent::hypoClassKeyFromString(), and leptonicDecayB().

Referenced by leptonicDecayB().

58 { return leptonicDecayB(hypoClassKeyFromString(key), cmb); };
const reco::GenParticle * leptonicDecayB() const
get leptonic b of the TtGenEvent
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::leptonicDecayB ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get leptonic b of the given hypothesis

Definition at line 60 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), TtSemiLepDaughter::LepB, and leptonicDecayTop().

const reco::GenParticle * leptonicDecayTop() const
get leptonic top of the TtGenEvent
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
static const std::string LepB
const reco::GenParticle* TtSemiLeptonicEvent::leptonicDecayB ( ) const
inline

get leptonic b of the TtGenEvent

Definition at line 87 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and leptonicDecayB().

Referenced by leptonicDecayB(), and print().

87 { return (!genEvt_ ? 0 : this->genEvent()->leptonicDecayB()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::GenParticle * leptonicDecayB() const
get leptonic b of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::Candidate* TtSemiLeptonicEvent::leptonicDecayTop ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get leptonic top of the given hypothesis

Definition at line 54 of file TtSemiLeptonicEvent.h.

References TtEvent::hypoClassKeyFromString(), and leptonicDecayTop().

Referenced by leptonicDecayTop(), and main().

const reco::GenParticle * leptonicDecayTop() const
get leptonic top of the TtGenEvent
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::leptonicDecayTop ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get leptonic top of the given hypothesis

Definition at line 56 of file TtSemiLeptonicEvent.h.

References TtEvent::eventHypo(), TtEvent::isHypoValid(), and TtSemiLepDaughter::LepTop.

56 { return !isHypoValid(key,cmb) ? 0 : eventHypo(key,cmb). daughter(TtSemiLepDaughter::LepTop); };
static const std::string LepTop
const reco::CompositeCandidate & eventHypo(const HypoClassKey &key, const unsigned &cmb=0) const
Definition: TtEvent.h:51
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::leptonicDecayTop ( ) const
inline

get leptonic top of the TtGenEvent

Definition at line 85 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and leptonicDecayTop().

Referenced by leptonicDecayB(), leptonicDecayTop(), leptonicDecayW(), and print().

85 { return (!genEvt_ ? 0 : this->genEvent()->leptonicDecayTop()); };
const reco::GenParticle * leptonicDecayTop() const
get leptonic top of the TtGenEvent
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::Candidate* TtSemiLeptonicEvent::leptonicDecayW ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get leptonic W of the given hypothesis

Definition at line 62 of file TtSemiLeptonicEvent.h.

References TtEvent::hypoClassKeyFromString(), and leptonicDecayW().

Referenced by leptonicDecayW(), and main().

62 { return leptonicDecayW(hypoClassKeyFromString(key), cmb); };
const reco::GenParticle * leptonicDecayW() const
get leptonic W of the TtGenEvent
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::leptonicDecayW ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get leptonic W of the given hypothesis

Definition at line 64 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), leptonicDecayTop(), and TtSemiLepDaughter::LepW.

const reco::GenParticle * leptonicDecayTop() const
get leptonic top of the TtGenEvent
static const std::string LepW
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::leptonicDecayW ( ) const
inline

get leptonic W of the TtGenEvent

Definition at line 89 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and leptonicDecayW().

Referenced by leptonicDecayW(), print(), singleLepton(), and singleNeutrino().

89 { return (!genEvt_ ? 0 : this->genEvent()->leptonicDecayW()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::GenParticle * leptonicDecayW() const
get leptonic W of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const int TtSemiLeptonicEvent::numberOfRealNeutrinoSolutions ( const HypoClassKey key) const
inline

get number of real neutrino solutions for a given hypo class

Definition at line 100 of file TtSemiLeptonicEvent.h.

References numberOfRealNeutrinoSolutions_.

Referenced by print().

list key
Definition: combine.py:13
std::map< HypoClassKey, int > numberOfRealNeutrinoSolutions_
number of real neutrino solutions for all hypo classes
const int TtSemiLeptonicEvent::numberOfRealNeutrinoSolutions ( const std::string &  key) const
inline

get number of real neutrino solutions for a given hypo class

Definition at line 102 of file TtSemiLeptonicEvent.h.

References TtEvent::hypoClassKeyFromString(), and numberOfRealNeutrinoSolutions().

Referenced by numberOfRealNeutrinoSolutions().

HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const int numberOfRealNeutrinoSolutions(const HypoClassKey &key) const
get number of real neutrino solutions for a given hypo class
void TtSemiLeptonicEvent::print ( const int  verbosity = 1) const

print full content of the structure as formated LogInfo to the MessageLogger output for debugging

Definition at line 7 of file TtSemiLeptonicEvent.cc.

References TtEvent::evtHyp_, TtEvent::fitChi2(), TtEvent::fitProb(), TtEvent::genEvent(), TtEvent::genEvt_, TtEvent::genMatchSumDR(), TtEvent::genMatchSumPt(), TtSemiLepEvtPartons::HadB, hadronicDecayB(), hadronicDecayQuark(), hadronicDecayQuarkBar(), hadronicDecayTop(), hadronicDecayW(), TtEvent::hitFitChi2(), TtEvent::hitFitMT(), TtEvent::hitFitProb(), TtEvent::hitFitSigMT(), TtEvent::isHypoValid(), TtEvent::jetLeptonCombination(), fwrapper::jets, WDecay::kElec, TtEvent::kGenMatch, TtEvent::kGeom, TtEvent::kHitFit, TtEvent::kKinFit, TtEvent::kKinSolution, TtEvent::kMaxSumPtWMass, WDecay::kMuon, TtEvent::kMVADisc, WDecay::kTau, TtEvent::kWMassDeltaTopMass, TtEvent::kWMassMaxSumPt, TtSemiLepEvtPartons::LepB, TtSemiLepEvtPartons::Lepton, leptonicDecayB(), leptonicDecayTop(), leptonicDecayW(), TtSemiLepEvtPartons::LightQ, TtSemiLepEvtPartons::LightQBar, create_public_lumi_plots::log, TtEvent::mvaDisc(), TtEvent::mvaMethod(), TtEvent::numberOfAvailableHypoClasses(), TtEvent::numberOfAvailableHypos(), TtEvent::numberOfConsideredJets(), numberOfRealNeutrinoSolutions(), TtEvent::printParticle(), singleLepton(), singleNeutrino(), and TtEvent::topPair().

8 {
9  if(verbosity%10 <= 0)
10  return;
11 
12  edm::LogInfo log("TtSemiLeptonicEvent");
13 
14  log << "++++++++++++++++++++++++++++++++++++++++++++++++++ \n";
15 
16  // get some information from the genEvent (if available)
17  if( !genEvt_ ) log << " TtGenEvent not available! \n";
18  else {
19  log << " TtGenEvent says: ";
20  if( !this->genEvent()->isTtBar() ) log << "Not TtBar";
21  else if( this->genEvent()->isFullHadronic() ) log << "Fully Hadronic TtBar";
22  else if( this->genEvent()->isFullLeptonic() ) log << "Fully Leptonic TtBar";
23  else if( this->genEvent()->isSemiLeptonic() ) {
24  log << "Semi-leptonic TtBar, ";
25  switch( this->genEvent()->semiLeptonicChannel() ) {
26  case WDecay::kElec : log << "Electron"; break;
27  case WDecay::kMuon : log << "Muon" ; break;
28  case WDecay::kTau : log << "Tau" ; break;
29  default : log << "Unknown" ; break;
30  }
31  log << " Channel";
32  }
33  log << "\n";
34  }
35 
36  // get number of available hypothesis classes
37  log << " Number of available event hypothesis classes: " << this->numberOfAvailableHypoClasses() << " \n";
38 
39  // create a legend for the jetLepComb
40  log << " - JetLepComb: ";
41  for(unsigned idx = 0; idx < 5; idx++) {
42  switch(idx) {
43  case TtSemiLepEvtPartons::LightQ : log << "LightP "; break;
44  case TtSemiLepEvtPartons::LightQBar : log << "LightQ "; break;
45  case TtSemiLepEvtPartons::HadB : log << " HadB "; break;
46  case TtSemiLepEvtPartons::LepB : log << " LepB "; break;
47  case TtSemiLepEvtPartons::Lepton : log << "Lepton "; break;
48  }
49  }
50  log << "\n";
51 
52  // get details from the hypotheses
53  typedef std::map<HypoClassKey, std::vector<HypoCombPair> >::const_iterator EventHypo;
54  for(EventHypo hyp = evtHyp_.begin(); hyp != evtHyp_.end(); ++hyp) {
55  HypoClassKey hypKey = (*hyp).first;
56  // header for each hypothesis
57  log << "-------------------------------------------------- \n";
58  switch(hypKey) {
59  case kGeom : log << " Geom" ; break;
60  case kWMassMaxSumPt : log << " WMassMaxSumPt" ; break;
61  case kMaxSumPtWMass : log << " MaxSumPtWMass" ; break;
62  case kGenMatch : log << " GenMatch" ; break;
63  case kMVADisc : log << " MVADisc" ; break;
64  case kKinFit : log << " KinFit" ; break;
65  case kKinSolution : log << " KinSolution not (yet) applicable to TtSemiLeptonicEvent --> skipping"; continue;
66  case kWMassDeltaTopMass : log << " WMassDeltaTopMass" ; break;
67  case kHitFit : log << " HitFit" ; break;
68  default : log << " Unknown TtEvent::HypoClassKey provided --> skipping" ; continue;
69  }
70  log << "-Hypothesis: \n";
71  log << " * Number of real neutrino solutions: " << this->numberOfRealNeutrinoSolutions(hypKey) << "\n";
72  log << " * Number of considered jets : " << this->numberOfConsideredJets(hypKey) << "\n";
73  unsigned nOfHyp = this->numberOfAvailableHypos(hypKey);
74  if(nOfHyp > 1) {
75  log << " * Number of stored jet combinations: " << nOfHyp << "\n";
76  if(verbosity < 10)
77  log << " The following was found to be the best one:\n";
78  }
79  // if verbosity level is smaller than 10, never show more than the best jet combination
80  if(verbosity < 10)
81  nOfHyp = 1;
82  for(unsigned cmb=0; cmb<nOfHyp; cmb++) {
83  // check if hypothesis is valid
84  if( !this->isHypoValid(hypKey, cmb) )
85  log << " * Not valid! \n";
86  // get meta information for valid hypothesis
87  else {
88  // jetLepComb
89  log << " * JetLepComb:";
90  std::vector<int> jets = this->jetLeptonCombination(hypKey, cmb);
91  for(unsigned int iJet = 0; iJet < jets.size(); iJet++) {
92  log << " " << jets[iJet] << " ";
93  }
94  log << "\n";
95  // specialties for some hypotheses
96  switch(hypKey) {
97  case kGenMatch : log << " * Sum(DeltaR) : " << this->genMatchSumDR(cmb) << " \n"
98  << " * Sum(DeltaPt): " << this->genMatchSumPt(cmb) << " \n"; break;
99  case kMVADisc : log << " * Method : " << this->mvaMethod() << " \n"
100  << " * Discrim.: " << this->mvaDisc(cmb) << " \n"; break;
101  case kKinFit : log << " * Chi^2 : " << this->fitChi2(cmb) << " \n"
102  << " * Prob(Chi^2): " << this->fitProb(cmb) << " \n"; break;
103  case kHitFit : log << " * Chi^2 : " << this->hitFitChi2(cmb) << " \n"
104  << " * Prob(Chi^2): " << this->hitFitProb(cmb) << " \n"
105  << " * Top mass : " << this->hitFitMT(cmb) << " +/- " << this->hitFitSigMT(cmb) << " \n"; break;
106  default : break;
107  }
108  // kinematic quantities of particles (if last digit of verbosity level > 1)
109  if(verbosity%10 >= 2) {
110  log << " * Candidates (pt; eta; phi; mass):\n";
111  if(verbosity%10 >= 3)
112  printParticle(log, "top pair", this->topPair(hypKey, cmb));
113  printParticle(log, "hadronic top", this->hadronicDecayTop(hypKey, cmb));
114  printParticle(log, "hadronic W ", this->hadronicDecayW (hypKey, cmb));
115  if(verbosity%10 >= 3) {
116  printParticle(log, "hadronic b ", this->hadronicDecayB (hypKey, cmb));
117  printParticle(log, "hadronic p ", this->hadronicDecayQuark (hypKey, cmb));
118  printParticle(log, "hadronic q ", this->hadronicDecayQuarkBar(hypKey, cmb));
119  }
120  printParticle(log, "leptonic top", this->leptonicDecayTop(hypKey, cmb));
121  printParticle(log, "leptonic W ", this->leptonicDecayW (hypKey, cmb));
122  if(verbosity%10 >= 3) {
123  printParticle(log, "leptonic b ", this->leptonicDecayB(hypKey, cmb));
124  printParticle(log, "lepton ", this->singleLepton (hypKey, cmb));
125  printParticle(log, "neutrino ", this->singleNeutrino(hypKey, cmb));
126  }
127  }
128  }
129  }
130  }
131 
132  log << "++++++++++++++++++++++++++++++++++++++++++++++++++";
133 }
const reco::GenParticle * leptonicDecayTop() const
get leptonic top of the TtGenEvent
HypoClassKey
supported classes of event hypotheses
Definition: TtEvent.h:31
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const math::XYZTLorentzVector * topPair() const
get combined 4-vector of top and topBar from the TtGenEvent
Definition: TtEvent.h:111
unsigned int numberOfAvailableHypos(const std::string &key) const
return number of available hypotheses within a given hypothesis class
Definition: TtEvent.h:70
const reco::GenParticle * leptonicDecayB() const
get leptonic b of the TtGenEvent
unsigned int numberOfAvailableHypoClasses() const
return number of available hypothesis classes
Definition: TtEvent.h:68
const reco::GenParticle * hadronicDecayB() const
get hadronic b of the TtGenEvent
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
Definition: TtEvent.cc:51
double fitChi2(const unsigned &cmb=0) const
return the chi2 of the kinematic fit of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:90
const reco::GenParticle * singleLepton() const
get lepton top of the TtGenEvent
double genMatchSumDR(const unsigned &cmb=0) const
return the sum dr of the generator match if available; -1 else
Definition: TtEvent.h:84
int numberOfConsideredJets(const std::string &key) const
return number of jets that were considered when building a given hypothesis
Definition: TtEvent.h:74
double hitFitMT(const unsigned &cmb=0) const
return the hitfit top mass of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:98
vector< PseudoJet > jets
const reco::GenParticle * leptonicDecayW() const
get leptonic W of the TtGenEvent
const reco::GenParticle * hadronicDecayW() const
get hadronic W of the TtGenEvent
double mvaDisc(const unsigned &cmb=0) const
return the mva discriminant value of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:88
const reco::GenParticle * hadronicDecayQuarkBar() const
get hadronic light quark of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
double hitFitChi2(const unsigned &cmb=0) const
return the hitfit chi2 of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:92
double fitProb(const unsigned &cmb=0) const
return the fit probability of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:94
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
const reco::GenParticle * hadronicDecayTop() const
get hadronic top of the TtGenEvent
double genMatchSumPt(const unsigned &cmb=0) const
return the sum pt of the generator match if available; -1 else
Definition: TtEvent.h:82
double hitFitProb(const unsigned &cmb=0) const
return the hitfit probability of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:96
std::string mvaMethod() const
return the label of the mva method in use for the jet parton association (if kMVADisc is not availabl...
Definition: TtEvent.h:86
const reco::GenParticle * hadronicDecayQuark() const
get hadronic light quark of the TtGenEvent
std::map< HypoClassKey, std::vector< HypoCombPair > > evtHyp_
Definition: TtEvent.h:153
const int numberOfRealNeutrinoSolutions(const HypoClassKey &key) const
get number of real neutrino solutions for a given hypo class
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:78
const reco::GenParticle * singleNeutrino() const
get neutrino of the TtGenEvent
double hitFitSigMT(const unsigned &cmb=0) const
return the hitfit top mass uncertainty of hypothesis &#39;cmb&#39; if available; -1 else
Definition: TtEvent.h:100
void TtSemiLeptonicEvent::setNumberOfRealNeutrinoSolutions ( const HypoClassKey key,
const int &  nr 
)
inline

set number of real neutrino solutions for a given hypo class

Definition at line 105 of file TtSemiLeptonicEvent.h.

References combine::key, and numberOfRealNeutrinoSolutions_.

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

list key
Definition: combine.py:13
std::map< HypoClassKey, int > numberOfRealNeutrinoSolutions_
number of real neutrino solutions for all hypo classes
const reco::Candidate* TtSemiLeptonicEvent::singleLepton ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get leptonic light quark of the given hypothesis

Definition at line 70 of file TtSemiLeptonicEvent.h.

References TtEvent::hypoClassKeyFromString(), and singleLepton().

Referenced by singleLepton().

70 { return singleLepton(hypoClassKeyFromString(key), cmb); };
const reco::GenParticle * singleLepton() const
get lepton top of the TtGenEvent
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::Candidate* TtSemiLeptonicEvent::singleLepton ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get leptonic light quark of the given hypothesis

Definition at line 72 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), TtSemiLepDaughter::Lep, and leptonicDecayW().

72 { return !isHypoValid(key,cmb) ? 0 : leptonicDecayW(key,cmb)->daughter(TtSemiLepDaughter::Lep); };
static const std::string Lep
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const reco::GenParticle * leptonicDecayW() const
get leptonic W of the TtGenEvent
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::singleLepton ( ) const
inline

get lepton top of the TtGenEvent

Definition at line 91 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and singleLepton().

Referenced by print(), and singleLepton().

91 { return (!genEvt_ ? 0 : this->genEvent()->singleLepton()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::GenParticle * singleLepton() const
get lepton top of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::Candidate* TtSemiLeptonicEvent::singleNeutrino ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get leptonic light quark of the given hypothesis

Definition at line 66 of file TtSemiLeptonicEvent.h.

References TtEvent::hypoClassKeyFromString(), and singleNeutrino().

Referenced by singleNeutrino().

66 { return singleNeutrino(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:18
list key
Definition: combine.py:13
const reco::GenParticle * singleNeutrino() const
get neutrino of the TtGenEvent
const reco::Candidate* TtSemiLeptonicEvent::singleNeutrino ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get leptonic light quark of the given hypothesis

Definition at line 68 of file TtSemiLeptonicEvent.h.

References reco::CompositeRefCandidateT< D >::daughter(), TtEvent::isHypoValid(), leptonicDecayW(), and TtSemiLepDaughter::Nu.

68 { return !isHypoValid(key,cmb) ? 0 : leptonicDecayW(key,cmb)->daughter(TtSemiLepDaughter::Nu); };
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const reco::GenParticle * leptonicDecayW() const
get leptonic W of the TtGenEvent
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis &#39;cmb&#39; within the hypothesis class was valid; if not it lead to an empty Composite...
Definition: TtEvent.h:64
static const std::string Nu
list key
Definition: combine.py:13
const reco::GenParticle* TtSemiLeptonicEvent::singleNeutrino ( ) const
inline

get neutrino of the TtGenEvent

Definition at line 93 of file TtSemiLeptonicEvent.h.

References TtEvent::genEvent(), TtEvent::genEvt_, and singleNeutrino().

Referenced by print(), and singleNeutrino().

93 { return (!genEvt_ ? 0 : this->genEvent()->singleNeutrino()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::GenParticle * singleNeutrino() const
get neutrino of the TtGenEvent

Member Data Documentation

std::map<HypoClassKey, int> TtSemiLeptonicEvent::numberOfRealNeutrinoSolutions_
protected

number of real neutrino solutions for all hypo classes

Definition at line 105 of file TtSemiLeptonicEvent.h.

Referenced by numberOfRealNeutrinoSolutions(), and setNumberOfRealNeutrinoSolutions().