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

Class derived from the TtEvent for the full leptonic decay channel. More...

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

Inheritance diagram for TtFullLeptonicEvent:
TtEvent

Public Member Functions

const reco::Candidateb (const std::string &key, const unsigned &cmb=0) const
 get b of the given hypothesis More...
 
const reco::Candidateb (const HypoClassKey &key, const unsigned &cmb=0) const
 get b of the given hypothesis More...
 
const reco::CandidatebBar (const std::string &key, const unsigned &cmb=0) const
 get anti-b of the given hypothesis More...
 
const reco::CandidatebBar (const HypoClassKey &key, const unsigned &cmb=0) const
 get anti-b of the given hypothesis More...
 
const reco::GenParticlegenB () const
 get b of the TtGenEvent More...
 
const reco::GenParticlegenBBar () const
 get anti-b of the TtGenEvent More...
 
const reco::GenParticlegenLepton () const
 get lepton of the TtGenEvent More...
 
const reco::GenParticlegenLeptonBar () const
 get anti-lepton of the TtGenEvent More...
 
const reco::GenParticlegenNeutrino () const
 get neutrino of the TtGenEvent More...
 
const reco::GenParticlegenNeutrinoBar () const
 get anti-neutrino of the TtGenEvent More...
 
const reco::GenParticlegenTop () const
 get top of the TtGenEvent More...
 
const reco::GenParticlegenTopBar () const
 get anti-top of the TtGenEvent More...
 
const reco::GenParticlegenWMinus () const
 get Wminus of the TtGenEvent More...
 
const reco::GenParticlegenWPlus () const
 get Wplus of the TtGenEvent More...
 
bool isWrongCharge () const
 return if the kinematic solution of hypothesis 'cmb' is right or wrong charge if available; -1 else More...
 
const reco::Candidatelepton (const std::string &key, const unsigned &cmb=0) const
 get lepton of the given hypothesis More...
 
const reco::Candidatelepton (const HypoClassKey &key, const unsigned &cmb=0) const
 get lepton of the given hypothesis More...
 
const reco::CandidateleptonBar (const std::string &key, const unsigned &cmb=0) const
 get anti-lepton of the given hypothesis More...
 
const reco::CandidateleptonBar (const HypoClassKey &key, const unsigned &cmb=0) const
 get anti-lepton of the given hypothesis More...
 
const reco::Candidateneutrino (const std::string &key, const unsigned &cmb=0) const
 get neutrino of the given hypothesis More...
 
const reco::Candidateneutrino (const HypoClassKey &key, const unsigned &cmb=0) const
 get neutrino of the given hypothesis More...
 
const reco::CandidateneutrinoBar (const std::string &key, const unsigned &cmb=0) const
 get anti-neutrino of the given hypothesis More...
 
const reco::CandidateneutrinoBar (const HypoClassKey &key, const unsigned &cmb=0) const
 get anti-neutrino of the given hypothesis More...
 
void print (const int verbosity=1) const
 
void setSolWeight (const std::vector< double > &val)
 set weight of kKinSolution hypothesis More...
 
void setWrongCharge (const bool &val)
 set right or wrong charge combination of kKinSolution hypothesis More...
 
double solWeight (const unsigned &cmb=0) const
 return the weight of the kinematic solution of hypothesis 'cmb' if available; -1 else More...
 
const reco::Candidatetop (const std::string &key, const unsigned &cmb=0) const
 get top of the given hypothesis More...
 
const reco::Candidatetop (const HypoClassKey &key, const unsigned &cmb=0) const
 get top of the given hypothesis More...
 
const reco::CandidatetopBar (const std::string &key, const unsigned &cmb=0) const
 get anti-top of the given hypothesis More...
 
const reco::CandidatetopBar (const HypoClassKey &key, const unsigned &cmb=0) const
 get anti-top of the given hypothesis More...
 
 TtFullLeptonicEvent ()
 empty constructor More...
 
const reco::CandidatewMinus (const std::string &key, const unsigned &cmb=0) const
 get Wminus of the given hypothesis More...
 
const reco::CandidatewMinus (const HypoClassKey &key, const unsigned &cmb=0) const
 get Wminus of the given hypothesis More...
 
const reco::CandidatewPlus (const std::string &key, const unsigned &cmb=0) const
 get Wplus of the given hypothesis More...
 
const reco::CandidatewPlus (const HypoClassKey &key, const unsigned &cmb=0) const
 get Wplus of the given hypothesis More...
 
virtual ~TtFullLeptonicEvent ()
 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::vector< double > solWeight_
 result of kinematic solution More...
 
bool wrongCharge_
 right/wrong charge booleans 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 full leptonic 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 TtFullLeptonicEvent.h.

Constructor & Destructor Documentation

TtFullLeptonicEvent::TtFullLeptonicEvent ( )
inline

empty constructor

Definition at line 28 of file TtFullLeptonicEvent.h.

28 {};
virtual TtFullLeptonicEvent::~TtFullLeptonicEvent ( )
inlinevirtual

default destructor

Definition at line 30 of file TtFullLeptonicEvent.h.

30 {};

Member Function Documentation

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

get b of the given hypothesis

Definition at line 37 of file TtFullLeptonicEvent.h.

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

Referenced by b(), genB(), and print().

37 { return b(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * b(const std::string &key, const unsigned &cmb=0) const
get b of the given hypothesis
const reco::Candidate* TtFullLeptonicEvent::b ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get b of the given hypothesis

Definition at line 39 of file TtFullLeptonicEvent.h.

References TtFullLepDaughter::B, reco::Candidate::daughter(), TtEvent::isHypoValid(), and top().

39 { return !isHypoValid(key,cmb) ? 0 : top(key,cmb)->daughter(TtFullLepDaughter::B); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const reco::Candidate * top(const std::string &key, const unsigned &cmb=0) const
get top of the given hypothesis
static const std::string B
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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::Candidate* TtFullLeptonicEvent::bBar ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get anti-b of the given hypothesis

Definition at line 57 of file TtFullLeptonicEvent.h.

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

Referenced by bBar(), genBBar(), and print().

57 { return bBar(hypoClassKeyFromString(key), cmb); };
const reco::Candidate * bBar(const std::string &key, const unsigned &cmb=0) const
get anti-b of the given hypothesis
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate* TtFullLeptonicEvent::bBar ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get anti-b of the given hypothesis

Definition at line 59 of file TtFullLeptonicEvent.h.

References TtFullLepDaughter::BBar, reco::Candidate::daughter(), TtEvent::isHypoValid(), and topBar().

59 { return !isHypoValid(key,cmb) ? 0 : topBar(key,cmb)->daughter(TtFullLepDaughter::BBar ); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * topBar(const std::string &key, const unsigned &cmb=0) const
get anti-top of the given hypothesis
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 BBar
const reco::GenParticle* TtFullLeptonicEvent::genB ( ) const
inline

get b of the TtGenEvent

Definition at line 76 of file TtFullLeptonicEvent.h.

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

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

get anti-b of the TtGenEvent

Definition at line 86 of file TtFullLeptonicEvent.h.

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

86 { return (!genEvt_ ? 0 : this->genEvent()->bBar() ); };
const reco::Candidate * bBar(const std::string &key, const unsigned &cmb=0) const
get anti-b of the given hypothesis
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* TtFullLeptonicEvent::genLepton ( ) const
inline

get lepton of the TtGenEvent

Definition at line 90 of file TtFullLeptonicEvent.h.

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

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

get anti-lepton of the TtGenEvent

Definition at line 80 of file TtFullLeptonicEvent.h.

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

80 { return (!genEvt_ ? 0 : this->genEvent()->leptonBar() ); };
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 * leptonBar(const std::string &key, const unsigned &cmb=0) const
get anti-lepton of the given hypothesis
const reco::GenParticle* TtFullLeptonicEvent::genNeutrino ( ) const
inline

get neutrino of the TtGenEvent

Definition at line 82 of file TtFullLeptonicEvent.h.

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

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

get anti-neutrino of the TtGenEvent

Definition at line 92 of file TtFullLeptonicEvent.h.

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

92 { return (!genEvt_ ? 0 : this->genEvent()->neutrinoBar()); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::Candidate * neutrinoBar(const std::string &key, const unsigned &cmb=0) const
get anti-neutrino of the given hypothesis
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
const reco::GenParticle* TtFullLeptonicEvent::genTop ( ) const
inline

get top of the TtGenEvent

Definition at line 74 of file TtFullLeptonicEvent.h.

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

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

get anti-top of the TtGenEvent

Definition at line 84 of file TtFullLeptonicEvent.h.

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

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

get Wminus of the TtGenEvent

Definition at line 88 of file TtFullLeptonicEvent.h.

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

88 { return (!genEvt_ ? 0 : this->genEvent()->wMinus() ); };
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 * wMinus(const std::string &key, const unsigned &cmb=0) const
get Wminus of the given hypothesis
const reco::GenParticle* TtFullLeptonicEvent::genWPlus ( ) const
inline

get Wplus of the TtGenEvent

Definition at line 78 of file TtFullLeptonicEvent.h.

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

78 { return (!genEvt_ ? 0 : this->genEvent()->wPlus() ); };
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
Definition: TtEvent.h:53
const reco::Candidate * wPlus(const std::string &key, const unsigned &cmb=0) const
get Wplus of the given hypothesis
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
Definition: TtEvent.h:150
bool TtFullLeptonicEvent::isWrongCharge ( ) const
inline

return if the kinematic solution of hypothesis 'cmb' is right or wrong charge if available; -1 else

Definition at line 97 of file TtFullLeptonicEvent.h.

References wrongCharge_.

Referenced by print().

97 { return wrongCharge_; }
bool wrongCharge_
right/wrong charge booleans
const reco::Candidate* TtFullLeptonicEvent::lepton ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get lepton of the given hypothesis

Definition at line 65 of file TtFullLeptonicEvent.h.

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

Referenced by genLepton(), lepton(), and print().

65 { return lepton(hypoClassKeyFromString(key), cmb); };
const reco::Candidate * lepton(const std::string &key, const unsigned &cmb=0) const
get lepton of the given hypothesis
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate* TtFullLeptonicEvent::lepton ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get lepton of the given hypothesis

Definition at line 67 of file TtFullLeptonicEvent.h.

References reco::Candidate::daughter(), TtEvent::isHypoValid(), TtFullLepDaughter::Lep, and wMinus().

67 { return !isHypoValid(key,cmb) ? 0 : wMinus(key,cmb)->daughter(TtFullLepDaughter::Lep ); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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::Candidate * wMinus(const std::string &key, const unsigned &cmb=0) const
get Wminus of the given hypothesis
static const std::string Lep
const reco::Candidate* TtFullLeptonicEvent::leptonBar ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get anti-lepton of the given hypothesis

Definition at line 45 of file TtFullLeptonicEvent.h.

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

Referenced by genLeptonBar(), leptonBar(), and print().

45 { return leptonBar(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * leptonBar(const std::string &key, const unsigned &cmb=0) const
get anti-lepton of the given hypothesis
const reco::Candidate* TtFullLeptonicEvent::leptonBar ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get anti-lepton of the given hypothesis

Definition at line 47 of file TtFullLeptonicEvent.h.

References reco::Candidate::daughter(), TtEvent::isHypoValid(), TtFullLepDaughter::LepBar, and wPlus().

47 { return !isHypoValid(key,cmb) ? 0 : wPlus(key,cmb)->daughter(TtFullLepDaughter::LepBar); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
static const std::string LepBar
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * wPlus(const std::string &key, const unsigned &cmb=0) const
get Wplus of the given hypothesis
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::Candidate* TtFullLeptonicEvent::neutrino ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get neutrino of the given hypothesis

Definition at line 49 of file TtFullLeptonicEvent.h.

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

Referenced by genNeutrino(), neutrino(), and print().

49 { return neutrino(hypoClassKeyFromString(key), cmb); };
const reco::Candidate * neutrino(const std::string &key, const unsigned &cmb=0) const
get neutrino of the given hypothesis
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate* TtFullLeptonicEvent::neutrino ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get neutrino of the given hypothesis

Definition at line 51 of file TtFullLeptonicEvent.h.

References reco::Candidate::daughter(), TtEvent::isHypoValid(), TtFullLepDaughter::Nu, and wPlus().

51 { return !isHypoValid(key,cmb) ? 0 : wPlus(key,cmb)->daughter(TtFullLepDaughter::Nu ); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
static const std::string Nu
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * wPlus(const std::string &key, const unsigned &cmb=0) const
get Wplus of the given hypothesis
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::Candidate* TtFullLeptonicEvent::neutrinoBar ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get anti-neutrino of the given hypothesis

Definition at line 69 of file TtFullLeptonicEvent.h.

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

Referenced by genNeutrinoBar(), neutrinoBar(), and print().

69 { return neutrinoBar(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * neutrinoBar(const std::string &key, const unsigned &cmb=0) const
get anti-neutrino of the given hypothesis
const reco::Candidate* TtFullLeptonicEvent::neutrinoBar ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get anti-neutrino of the given hypothesis

Definition at line 71 of file TtFullLeptonicEvent.h.

References reco::Candidate::daughter(), TtEvent::isHypoValid(), TtFullLepDaughter::NuBar, and wMinus().

71 { return !isHypoValid(key,cmb) ? 0 : wMinus (key,cmb)->daughter(TtFullLepDaughter::NuBar ); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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::Candidate * wMinus(const std::string &key, const unsigned &cmb=0) const
get Wminus of the given hypothesis
static const std::string NuBar
void TtFullLeptonicEvent::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 TtFullLeptonicEvent.cc.

References b(), bBar(), TtEvent::evtHyp_, plotBeamSpotDB::first, TtEvent::genEvent(), TtEvent::genMatchSumDR(), TtEvent::genMatchSumPt(), TtEvent::isHypoValid(), isWrongCharge(), 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, lepton(), leptonBar(), dqm-mbProfile::log, neutrino(), neutrinoBar(), TtEvent::numberOfAvailableHypoClasses(), TtEvent::numberOfAvailableHypos(), TtEvent::printParticle(), edm::second(), solWeight(), top(), topBar(), TtEvent::topPair(), wMinus(), and wPlus().

8 {
9  if(verbosity%10 <= 0)
10  return;
11 
12  edm::LogInfo log("TtFullLeptonicEvent");
13 
14  log << "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \n";
15 
16  // get some information from the genEvent
17  log << " TtGenEvent says: ";
18  if( !this->genEvent()->isTtBar() ) log << "Not TtBar";
19  else if( this->genEvent()->isFullHadronic() ) log << "Fully Hadronic TtBar";
20  else if( this->genEvent()->isSemiLeptonic() ) log << "Semi-leptonic TtBar";
21  else if( this->genEvent()->isFullLeptonic() ) {
22  log << "Fully Leptonic TtBar, ";
23  switch( this->genEvent()->fullLeptonicChannel().first ) {
24  case WDecay::kElec : log << "Electron-"; break;
25  case WDecay::kMuon : log << "Muon-" ; break;
26  case WDecay::kTau : log << "Tau-" ; break;
27  default : log << "Unknown-" ; break;
28  }
29  switch( this->genEvent()->fullLeptonicChannel().second ) {
30  case WDecay::kElec : log << "Electron-"; break;
31  case WDecay::kMuon : log << "Muon-" ; break;
32  case WDecay::kTau : log << "Tau-" ; break;
33  default : log << "Unknown-" ; break;
34  }
35  log << "Channel";
36  }
37  log << "\n";
38 
39  // get number of available hypothesis classes
40  log << " Number of available event hypothesis classes: " << this->numberOfAvailableHypoClasses() << " \n";
41 
42  // create a legend for the jetLepComb
43  log << " - JetLepComb: ";
44  log << " b ";
45  log << " bbar ";
46  log << " e1(+) ";
47  log << " e2(-) ";
48  log << " mu1(+)";
49  log << " mu2(-)";
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 not (yet) applicable to TtFullLeptonicEvent --> skipping" ; continue;
60  case kWMassMaxSumPt : log << " WMassMaxSumPt not (yet) applicable to TtFullLeptonicEvent --> skipping" ; continue;
61  case kMaxSumPtWMass : log << " MaxSumPtWMass not (yet) applicable to TtFullLeptonicEvent --> skipping" ; continue;
62  case kGenMatch : log << " GenMatch" ; break;
63  case kMVADisc : log << " MVADisc not (yet) applicable to TtFullLeptonicEvent --> skipping" ; continue;
64  case kKinFit : log << " KinFit not (yet) applicable to TtFullLeptonicEvent --> skipping" ; continue;
65  case kKinSolution : log << " KinSolution" ; break;
66  case kWMassDeltaTopMass : log << " WMassDeltaTopMass not (yet) applicable to TtFullLeptonicEvent --> skipping"; continue;
67  case kHitFit : log << " HitFit not (yet) applicable to TtFullLeptonicEvent --> skipping" ; continue;
68  default : log << " Unknown TtEvent::HypoClassKey provided --> skipping" ; continue;
69  }
70  log << "-Hypothesis: \n";
71  unsigned nOfHyp = this->numberOfAvailableHypos(hypKey);
72  if(nOfHyp > 1) {
73  log << " * Number of available jet combinations: " << nOfHyp << "\n";
74  if(verbosity < 10)
75  log << " The following was found to be the best one:\n";
76  }
77  // if verbosity level is smaller than 10, never show more than the best jet combination
78  if(verbosity < 10)
79  nOfHyp = 1;
80  for(unsigned cmb=0; cmb<nOfHyp; cmb++) {
81  // check if hypothesis is valid
82  if( !this->isHypoValid(hypKey, cmb) )
83  log << " * Not valid! \n";
84  // get meta information for valid hypothesis
85  else {
86  // jetLepComb
87  log << " * JetLepComb:";
88  std::vector<int> jets = this->jetLeptonCombination(hypKey, cmb);
89  for(unsigned int iJet = 0; iJet < jets.size(); iJet++) {
90  log << " " << jets[iJet] << " ";
91  }
92  log << "\n";
93  // specialties for some hypotheses
94  switch(hypKey) {
95  case kGenMatch : log << " * Sum(DeltaR) : " << this->genMatchSumDR(cmb) << " \n"
96  << " * Sum(DeltaPt): " << this->genMatchSumPt(cmb) << " \n"; break;
97  case kKinSolution : log << " * Weight : " << this->solWeight(cmb) << " \n"
98  << " * isWrongCharge: " << this->isWrongCharge() << " \n"; break;
99  default : break;
100  }
101  // kinematic quantities of particles (if last digit of verbosity level > 1)
102  if(verbosity%10 >= 2) {
103  log << " * Candidates (pt; eta; phi; mass):\n";
104  if(verbosity%10 >= 3)
105  printParticle(log, "top pair", this->topPair(hypKey, cmb));
106  printParticle(log, "top ", this->top (hypKey, cmb));
107  printParticle(log, "W plus ", this->wPlus(hypKey, cmb));
108  if(verbosity%10 >= 3) {
109  printParticle(log, "b ", this->b (hypKey, cmb));
110  printParticle(log, "leptonBar ", this->leptonBar(hypKey, cmb));
111  printParticle(log, "neutrino ", this->neutrino (hypKey, cmb));
112  }
113  printParticle(log, "topBar ", this->topBar(hypKey, cmb));
114  printParticle(log, "W minus ", this->wMinus(hypKey, cmb));
115  if(verbosity%10 >= 3) {
116  printParticle(log, "bBar ", this->bBar (hypKey, cmb));
117  printParticle(log, "lepton ", this->lepton (hypKey, cmb));
118  printParticle(log, "neutrinoBar ", this->neutrinoBar(hypKey, cmb));
119  }
120  }
121  }
122  }
123  }
124 
125  log << "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
126 }
HypoClassKey
supported classes of event hypotheses
Definition: TtEvent.h:31
const reco::Candidate * bBar(const std::string &key, const unsigned &cmb=0) const
get anti-b of the given hypothesis
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::Candidate * top(const std::string &key, const unsigned &cmb=0) const
get top of the given hypothesis
unsigned int numberOfAvailableHypoClasses() const
return number of available hypothesis classes
Definition: TtEvent.h:68
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:26
const reco::Candidate * lepton(const std::string &key, const unsigned &cmb=0) const
get lepton of the given hypothesis
U second(std::pair< T, U > const &p)
double genMatchSumDR(const unsigned &cmb=0) const
return the sum dr of the generator match if available; -1 else
Definition: TtEvent.h:84
const reco::Candidate * neutrino(const std::string &key, const unsigned &cmb=0) const
get neutrino of the given hypothesis
vector< PseudoJet > jets
bool isWrongCharge() const
return if the kinematic solution of hypothesis &#39;cmb&#39; is right or wrong charge if available; -1 else ...
const reco::Candidate * neutrinoBar(const std::string &key, const unsigned &cmb=0) const
get anti-neutrino of the given hypothesis
const reco::Candidate * b(const std::string &key, const unsigned &cmb=0) const
get b of the given hypothesis
const reco::Candidate * topBar(const std::string &key, const unsigned &cmb=0) const
get anti-top of the given hypothesis
double solWeight(const unsigned &cmb=0) const
return the weight of the kinematic solution of hypothesis &#39;cmb&#39; if available; -1 else ...
const reco::Candidate * wPlus(const std::string &key, const unsigned &cmb=0) const
get Wplus of the given hypothesis
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
double genMatchSumPt(const unsigned &cmb=0) const
return the sum pt of the generator match if available; -1 else
Definition: TtEvent.h:82
const reco::Candidate * wMinus(const std::string &key, const unsigned &cmb=0) const
get Wminus of the given hypothesis
std::map< HypoClassKey, std::vector< HypoCombPair > > evtHyp_
Definition: TtEvent.h:153
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::Candidate * leptonBar(const std::string &key, const unsigned &cmb=0) const
get anti-lepton of the given hypothesis
void TtFullLeptonicEvent::setSolWeight ( const std::vector< double > &  val)
inline

set weight of kKinSolution hypothesis

Definition at line 100 of file TtFullLeptonicEvent.h.

References solWeight_.

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

100 { solWeight_=val; };
std::vector< double > solWeight_
result of kinematic solution
void TtFullLeptonicEvent::setWrongCharge ( const bool &  val)
inline

set right or wrong charge combination of kKinSolution hypothesis

Definition at line 102 of file TtFullLeptonicEvent.h.

References wrongCharge_.

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

102 { wrongCharge_=val; };
bool wrongCharge_
right/wrong charge booleans
double TtFullLeptonicEvent::solWeight ( const unsigned &  cmb = 0) const
inline

return the weight of the kinematic solution of hypothesis 'cmb' if available; -1 else

Definition at line 95 of file TtFullLeptonicEvent.h.

References solWeight_.

Referenced by print().

95 { return (cmb<solWeight_.size() ? solWeight_[cmb] : -1.); }
std::vector< double > solWeight_
result of kinematic solution
const reco::Candidate* TtFullLeptonicEvent::top ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get top of the given hypothesis

Definition at line 33 of file TtFullLeptonicEvent.h.

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

Referenced by b(), genTop(), print(), top(), and wPlus().

33 { return top(hypoClassKeyFromString(key), cmb); };
const reco::Candidate * top(const std::string &key, const unsigned &cmb=0) const
get top of the given hypothesis
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate* TtFullLeptonicEvent::top ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get top of the given hypothesis

Definition at line 35 of file TtFullLeptonicEvent.h.

References TtEvent::eventHypo(), TtEvent::isHypoValid(), and TtFullLepDaughter::Top.

35 { return !isHypoValid(key,cmb) ? 0 : eventHypo(key,cmb). daughter(TtFullLepDaughter::Top); };
static const std::string Top
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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
const reco::Candidate* TtFullLeptonicEvent::topBar ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get anti-top of the given hypothesis

Definition at line 53 of file TtFullLeptonicEvent.h.

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

Referenced by bBar(), genTopBar(), print(), topBar(), and wMinus().

53 { return topBar(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * topBar(const std::string &key, const unsigned &cmb=0) const
get anti-top of the given hypothesis
const reco::Candidate* TtFullLeptonicEvent::topBar ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get anti-top of the given hypothesis

Definition at line 55 of file TtFullLeptonicEvent.h.

References TtEvent::eventHypo(), TtEvent::isHypoValid(), and TtFullLepDaughter::TopBar.

55 { return !isHypoValid(key,cmb) ? 0 : eventHypo(key,cmb). daughter(TtFullLepDaughter::TopBar); };
static const std::string TopBar
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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
const reco::Candidate* TtFullLeptonicEvent::wMinus ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get Wminus of the given hypothesis

Definition at line 61 of file TtFullLeptonicEvent.h.

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

Referenced by genWMinus(), lepton(), neutrinoBar(), print(), and wMinus().

61 { return wMinus(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * wMinus(const std::string &key, const unsigned &cmb=0) const
get Wminus of the given hypothesis
const reco::Candidate* TtFullLeptonicEvent::wMinus ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get Wminus of the given hypothesis

Definition at line 63 of file TtFullLeptonicEvent.h.

References reco::Candidate::daughter(), TtEvent::isHypoValid(), topBar(), and TtFullLepDaughter::WMinus.

63 { return !isHypoValid(key,cmb) ? 0 : topBar(key,cmb)->daughter(TtFullLepDaughter::WMinus); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
static const std::string WMinus
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * topBar(const std::string &key, const unsigned &cmb=0) const
get anti-top of the given hypothesis
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::Candidate* TtFullLeptonicEvent::wPlus ( const std::string &  key,
const unsigned &  cmb = 0 
) const
inline

get Wplus of the given hypothesis

Definition at line 41 of file TtFullLeptonicEvent.h.

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

Referenced by genWPlus(), leptonBar(), neutrino(), print(), and wPlus().

41 { return wPlus(hypoClassKeyFromString(key), cmb); };
HypoClassKey hypoClassKeyFromString(const std::string &label) const
return the corresponding enum value from a string
Definition: TtEvent.cc:19
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
const reco::Candidate * wPlus(const std::string &key, const unsigned &cmb=0) const
get Wplus of the given hypothesis
const reco::Candidate* TtFullLeptonicEvent::wPlus ( const HypoClassKey key,
const unsigned &  cmb = 0 
) const
inline

get Wplus of the given hypothesis

Definition at line 43 of file TtFullLeptonicEvent.h.

References reco::Candidate::daughter(), TtEvent::isHypoValid(), top(), and TtFullLepDaughter::WPlus.

43 { return !isHypoValid(key,cmb) ? 0 : top(key,cmb)->daughter(TtFullLepDaughter::WPlus); };
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
static const std::string WPlus
const reco::Candidate * top(const std::string &key, const unsigned &cmb=0) const
get top of the given hypothesis
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
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

Member Data Documentation

std::vector<double> TtFullLeptonicEvent::solWeight_
protected

result of kinematic solution

Definition at line 111 of file TtFullLeptonicEvent.h.

Referenced by setSolWeight(), and solWeight().

bool TtFullLeptonicEvent::wrongCharge_
protected

right/wrong charge booleans

Definition at line 113 of file TtFullLeptonicEvent.h.

Referenced by isWrongCharge(), and setWrongCharge().