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 Member Functions | Private Member Functions | Private Attributes | Friends
TtSemiEvtSolution Class Reference

#include <TtSemiEvtSolution.h>

Public Member Functions

pat::Jet getCalHadb () const
 
pat::Jet getCalHadp () const
 
pat::Jet getCalHadq () const
 
reco::Particle getCalHadt () const
 
reco::Particle getCalHadW () const
 
pat::Jet getCalLepb () const
 
pat::Electron getCalLepe () const
 
pat::Muon getCalLepm () const
 
pat::MET getCalLepn () const
 
reco::Particle getCalLept () const
 
reco::Particle getCalLepW () const
 
std::string getDecay () const
 
pat::Electron getElectron () const
 
pat::Particle getFitHadb () const
 
pat::Particle getFitHadp () const
 
pat::Particle getFitHadq () const
 
reco::Particle getFitHadt () const
 
reco::Particle getFitHadW () const
 
const reco::CompositeCandidategetFitHyp () const
 
pat::Particle getFitLepb () const
 
pat::Particle getFitLepl () const
 
pat::Particle getFitLepn () const
 
reco::Particle getFitLept () const
 
reco::Particle getFitLepW () const
 
const edm::RefProd< TtGenEvent > & getGenEvent () const
 
const reco::GenParticlegetGenHadb () const
 
const reco::GenParticlegetGenHadp () const
 
const reco::GenParticlegetGenHadq () const
 
const reco::GenParticlegetGenHadt () const
 
const reco::GenParticlegetGenHadW () const
 
const reco::GenParticlegetGenLepb () const
 
const reco::GenParticlegetGenLepl () const
 
const reco::GenParticlegetGenLepn () const
 
const reco::GenParticlegetGenLept () const
 
const reco::GenParticlegetGenLepW () const
 
pat::Jet getHadb () const
 
pat::Jet getHadp () const
 
pat::Jet getHadq () const
 
int getJetParametrisation () const
 
pat::Jet getLepb () const
 
int getLeptonParametrisation () const
 
int getLRBestJetComb () const
 
double getLRJetCombLRval () const
 
double getLRJetCombObsVal (unsigned int) const
 
double getLRJetCombProb () const
 
double getLRSignalEvtLRval () const
 
double getLRSignalEvtObsVal (unsigned int) const
 
double getLRSignalEvtProb () const
 
double getMCBestAngleHadb () const
 
double getMCBestAngleHadp () const
 
double getMCBestAngleHadq () const
 
double getMCBestAngleLepb () const
 
int getMCBestJetComb () const
 
double getMCBestSumAngles () const
 
int getMCChangeWQ () const
 
const reco::CompositeCandidategetMCHyp () const
 
pat::Muon getMuon () const
 
pat::MET getNeutrino () const
 
int getNeutrinoParametrisation () const
 
double getProbChi2 () const
 
pat::Jet getRecHadb () const
 
pat::Jet getRecHadp () const
 
pat::Jet getRecHadq () const
 
reco::Particle getRecHadt () const
 
reco::Particle getRecHadW () const
 
pat::Jet getRecLepb () const
 
pat::Electron getRecLepe () const
 
pat::Muon getRecLepm () const
 
pat::MET getRecLepn () const
 
reco::Particle getRecLept () const
 
reco::Particle getRecLepW () const
 
const reco::CompositeCandidategetRecoHyp () const
 
int getSimpleBestJetComb () const
 
 TtSemiEvtSolution ()
 
virtual ~TtSemiEvtSolution ()
 

Protected Member Functions

void setElectron (const edm::Handle< std::vector< pat::Electron > > &elec, int i)
 
void setFitHadb (const pat::Particle &aFitHadb)
 
void setFitHadp (const pat::Particle &aFitHadp)
 
void setFitHadq (const pat::Particle &aFitHadq)
 
void setFitLepb (const pat::Particle &aFitLepb)
 
void setFitLepl (const pat::Particle &aFitLepl)
 
void setFitLepn (const pat::Particle &aFitLepn)
 
void setGenEvt (const edm::Handle< TtGenEvent > &aGenEvt)
 
void setHadb (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setHadp (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setHadq (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setJetCorrectionScheme (int scheme)
 
void setJetParametrisation (int jp)
 
void setLepb (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setLeptonParametrisation (int lp)
 
void setLRBestJetComb (int lrbs)
 
void setLRJetCombLRval (double clr)
 
void setLRJetCombObservables (const std::vector< std::pair< unsigned int, double > > &varval)
 
void setLRJetCombProb (double plr)
 
void setLRSignalEvtLRval (double clr)
 
void setLRSignalEvtObservables (const std::vector< std::pair< unsigned int, double > > &varval)
 
void setLRSignalEvtProb (double plr)
 
void setMCBestAngleHadb (double adr)
 
void setMCBestAngleHadp (double adr)
 
void setMCBestAngleHadq (double adr)
 
void setMCBestAngleLepb (double adr)
 
void setMCBestJetComb (int mcbs)
 
void setMCBestSumAngles (double sdr)
 
void setMCChangeWQ (int wq)
 
void setMuon (const edm::Handle< std::vector< pat::Muon > > &muon, int i)
 
void setNeutrino (const edm::Handle< std::vector< pat::MET > > &met, int i)
 
void setNeutrinoParametrisation (int mp)
 
void setProbChi2 (double c)
 
void setSimpleBestJetComb (int sbs)
 

Private Member Functions

void setupHyp ()
 

Private Attributes

double angleHadb_
 
double angleHadp_
 
double angleHadq_
 
double angleLepb_
 
int changeWQ_
 
std::string decay_
 
edm::Ptr< pat::Electronelectron_
 
std::vector< pat::ParticlefitHadb_
 
std::vector< pat::ParticlefitHadp_
 
std::vector< pat::ParticlefitHadq_
 
reco::CompositeCandidate fitHyp_
 
std::vector< pat::ParticlefitLepb_
 
std::vector< pat::ParticlefitLepl_
 
std::vector< pat::ParticlefitLepn_
 
edm::Ptr< pat::Jethadb_
 
edm::Ptr< pat::Jethadp_
 
edm::Ptr< pat::Jethadq_
 
int jetCorrScheme_
 
int jetParam_
 
edm::Ptr< pat::Jetlepb_
 
int leptonParam_
 
int lrBestJetComb_
 
double lrJetCombLRval_
 
double lrJetCombProb_
 
std::vector< std::pair
< unsigned int, double > > 
lrJetCombVarVal_
 
double lrSignalEvtLRval_
 
double lrSignalEvtProb_
 
std::vector< std::pair
< unsigned int, double > > 
lrSignalEvtVarVal_
 
int mcBestJetComb_
 
reco::CompositeCandidate mcHyp_
 
edm::Ptr< pat::Muonmuon_
 
edm::Ptr< pat::METneutrino_
 
int neutrinoParam_
 
double probChi2_
 
reco::CompositeCandidate recoHyp_
 
int simpleBestJetComb_
 
double sumAnglejp_
 
edm::RefProd< TtGenEventtheGenEvt_
 

Friends

class TtSemiEvtSolutionMaker
 
class TtSemiLepHitFit
 
class TtSemiLepKinFitter
 
class TtSemiLRJetCombCalc
 
class TtSemiLRJetCombObservables
 
class TtSemiLRSignalSelCalc
 
class TtSemiLRSignalSelObservables
 

Detailed Description

Definition at line 31 of file TtSemiEvtSolution.h.

Constructor & Destructor Documentation

TtSemiEvtSolution::TtSemiEvtSolution ( )

Definition at line 9 of file TtSemiEvtSolution.cc.

References angleHadb_, angleHadp_, angleHadq_, angleLepb_, changeWQ_, jetCorrScheme_, lrBestJetComb_, lrJetCombLRval_, lrJetCombProb_, lrSignalEvtLRval_, lrSignalEvtProb_, mcBestJetComb_, probChi2_, simpleBestJetComb_, and sumAnglejp_.

9  :
10  mcHyp_ ("ttSemiEvtMCHyp"),
11  recoHyp_("ttSemiEvtRecoHyp"),
12  fitHyp_ ("ttSemiEvtFitHyp")
13 {
14  jetCorrScheme_ = 0;
15  sumAnglejp_ = -999.;
16  angleHadp_ = -999.;
17  angleHadq_ = -999.;
18  angleHadb_ = -999.;
19  angleLepb_ = -999.;
20  changeWQ_ = -999;
21  probChi2_ = -999.;
22  mcBestJetComb_ = -999;
23  simpleBestJetComb_ = -999;
24  lrBestJetComb_ = -999;
25  lrJetCombLRval_ = -999.;
26  lrJetCombProb_ = -999.;
27  lrSignalEvtLRval_ = -999.;
28  lrSignalEvtProb_ = -999.;
29 }
reco::CompositeCandidate fitHyp_
reco::CompositeCandidate mcHyp_
reco::CompositeCandidate recoHyp_
TtSemiEvtSolution::~TtSemiEvtSolution ( )
virtual

Definition at line 31 of file TtSemiEvtSolution.cc.

32 {
33 }

Member Function Documentation

pat::Jet TtSemiEvtSolution::getCalHadb ( ) const
inline

Definition at line 91 of file TtSemiEvtSolution.h.

References getHadb().

Referenced by TtSemiLepKinFitter::addKinFitInfo(), getCalHadt(), and TtSemiLRJetCombObservables::operator()().

91 { return this->getHadb(); };
pat::Jet getHadb() const
pat::Jet TtSemiEvtSolution::getCalHadp ( ) const
inline

Definition at line 92 of file TtSemiEvtSolution.h.

References getHadp().

Referenced by TtSemiLepKinFitter::addKinFitInfo(), getCalHadt(), getCalHadW(), and TtSemiLRJetCombObservables::operator()().

92 { return this->getHadp(); };
pat::Jet getHadp() const
pat::Jet TtSemiEvtSolution::getCalHadq ( ) const
inline

Definition at line 93 of file TtSemiEvtSolution.h.

References getHadq().

Referenced by TtSemiLepKinFitter::addKinFitInfo(), getCalHadt(), getCalHadW(), and TtSemiLRJetCombObservables::operator()().

93 { return this->getHadq(); };
pat::Jet getHadq() const
reco::Particle TtSemiEvtSolution::getCalHadt ( ) const

Definition at line 109 of file TtSemiEvtSolution.cc.

References getCalHadb(), getCalHadp(), getCalHadq(), and p4.

Referenced by TtSemiLRJetCombObservables::operator()().

110 {
111  return reco::Particle(0,this->getCalHadp().p4() + this->getCalHadq().p4() + this->getCalHadb().p4());
112 }
pat::Jet getCalHadq() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Jet getCalHadb() const
pat::Jet getCalHadp() const
reco::Particle TtSemiEvtSolution::getCalHadW ( ) const

Definition at line 114 of file TtSemiEvtSolution.cc.

References getCalHadp(), getCalHadq(), and p4.

Referenced by TtSemiLRJetCombObservables::operator()().

115 {
116  return reco::Particle(0,this->getCalHadp().p4() + this->getCalHadq().p4());
117 }
pat::Jet getCalHadq() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Jet getCalHadp() const
pat::Jet TtSemiEvtSolution::getCalLepb ( ) const
inline

Definition at line 96 of file TtSemiEvtSolution.h.

References getLepb().

Referenced by TtSemiLepKinFitter::addKinFitInfo(), getCalLept(), and TtSemiLRJetCombObservables::operator()().

96 { return this->getLepb(); };
pat::Jet getLepb() const
pat::Electron TtSemiEvtSolution::getCalLepe ( ) const
inline

Definition at line 98 of file TtSemiEvtSolution.h.

References getElectron().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

98 { return this->getElectron(); };
pat::Electron getElectron() const
pat::Muon TtSemiEvtSolution::getCalLepm ( ) const
inline

Definition at line 97 of file TtSemiEvtSolution.h.

References getMuon().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

97 { return this->getMuon(); };
pat::Muon getMuon() const
pat::MET TtSemiEvtSolution::getCalLepn ( ) const
inline

Definition at line 99 of file TtSemiEvtSolution.h.

References getNeutrino().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

99 { return this->getNeutrino(); };
pat::MET getNeutrino() const
reco::Particle TtSemiEvtSolution::getCalLept ( ) const

Definition at line 119 of file TtSemiEvtSolution.cc.

References getCalLepb(), getDecay(), getRecLepe(), getRecLepm(), getRecLepn(), AlCaHLTBitMon_ParallelJobs::p, and p4.

Referenced by TtSemiLRJetCombObservables::operator()().

120 {
122  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4() + this->getCalLepb().p4());
123  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4() + this->getCalLepb().p4());
124  return p;
125 }
std::string getDecay() const
pat::Electron getRecLepe() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Muon getRecLepm() const
pat::Jet getCalLepb() const
pat::MET getRecLepn() const
reco::Particle TtSemiEvtSolution::getCalLepW ( ) const

Definition at line 127 of file TtSemiEvtSolution.cc.

References getDecay(), getRecLepe(), getRecLepm(), getRecLepn(), AlCaHLTBitMon_ParallelJobs::p, and p4.

128 {
130  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4());
131  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4());
132  return p;
133 }
std::string getDecay() const
pat::Electron getRecLepe() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Muon getRecLepm() const
pat::MET getRecLepn() const
std::string TtSemiEvtSolution::getDecay ( ) const
inline
pat::Electron TtSemiEvtSolution::getElectron ( ) const
inline

Definition at line 55 of file TtSemiEvtSolution.h.

References electron_.

Referenced by getCalLepe(), getRecLepe(), and TtSemiLRSignalSelObservables::operator()().

55 { return *electron_; };
edm::Ptr< pat::Electron > electron_
pat::Particle TtSemiEvtSolution::getFitHadb ( ) const
inline

Definition at line 106 of file TtSemiEvtSolution.h.

References fitHadb_.

Referenced by getFitHadt().

106 { return (fitHadb_.size()>0 ? fitHadb_.front() : pat::Particle()); };
std::vector< pat::Particle > fitHadb_
Analysis-level particle class.
Definition: Particle.h:32
pat::Particle TtSemiEvtSolution::getFitHadp ( ) const
inline

Definition at line 107 of file TtSemiEvtSolution.h.

References fitHadp_.

Referenced by getFitHadt(), and getFitHadW().

107 { return (fitHadp_.size()>0 ? fitHadp_.front() : pat::Particle()); };
Analysis-level particle class.
Definition: Particle.h:32
std::vector< pat::Particle > fitHadp_
pat::Particle TtSemiEvtSolution::getFitHadq ( ) const
inline

Definition at line 108 of file TtSemiEvtSolution.h.

References fitHadq_.

Referenced by getFitHadt(), and getFitHadW().

108 { return (fitHadq_.size()>0 ? fitHadq_.front() : pat::Particle()); };
Analysis-level particle class.
Definition: Particle.h:32
std::vector< pat::Particle > fitHadq_
reco::Particle TtSemiEvtSolution::getFitHadt ( ) const

Definition at line 138 of file TtSemiEvtSolution.cc.

References getFitHadb(), getFitHadp(), getFitHadq(), and p4.

Referenced by TtSemiLRJetCombObservables::operator()().

139 {
140  // FIXME: provide the correct charge from generated event
141  return reco::Particle(0, this->getFitHadp().p4() + this->getFitHadq().p4() + this->getFitHadb().p4());
142 }
pat::Particle getFitHadq() const
pat::Particle getFitHadp() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Particle getFitHadb() const
reco::Particle TtSemiEvtSolution::getFitHadW ( ) const

Definition at line 144 of file TtSemiEvtSolution.cc.

References getFitHadp(), getFitHadq(), and p4.

145 {
146  // FIXME: provide the correct charge from generated event
147  return reco::Particle(0, this->getFitHadp().p4() + this->getFitHadq().p4());
148 }
pat::Particle getFitHadq() const
pat::Particle getFitHadp() const
double p4[4]
Definition: TauolaWrapper.h:92
const reco::CompositeCandidate& TtSemiEvtSolution::getFitHyp ( ) const
inline

Definition at line 169 of file TtSemiEvtSolution.h.

References fitHyp_.

169 { return fitHyp_; }
reco::CompositeCandidate fitHyp_
pat::Particle TtSemiEvtSolution::getFitLepb ( ) const
inline

Definition at line 111 of file TtSemiEvtSolution.h.

References fitLepb_.

Referenced by getFitLept().

111 { return (fitLepb_.size()>0 ? fitLepb_.front() : pat::Particle()); };
std::vector< pat::Particle > fitLepb_
Analysis-level particle class.
Definition: Particle.h:32
pat::Particle TtSemiEvtSolution::getFitLepl ( ) const
inline

Definition at line 112 of file TtSemiEvtSolution.h.

References fitLepl_.

Referenced by getFitLept(), and getFitLepW().

112 { return (fitLepl_.size()>0 ? fitLepl_.front() : pat::Particle()); };
Analysis-level particle class.
Definition: Particle.h:32
std::vector< pat::Particle > fitLepl_
pat::Particle TtSemiEvtSolution::getFitLepn ( ) const
inline

Definition at line 113 of file TtSemiEvtSolution.h.

References fitLepn_.

Referenced by getFitLept(), getFitLepW(), and TtSemiLRJetCombObservables::operator()().

113 { return (fitLepn_.size()>0 ? fitLepn_.front() : pat::Particle()); };
std::vector< pat::Particle > fitLepn_
Analysis-level particle class.
Definition: Particle.h:32
reco::Particle TtSemiEvtSolution::getFitLept ( ) const

Definition at line 150 of file TtSemiEvtSolution.cc.

References getFitLepb(), getFitLepl(), getFitLepn(), and p4.

Referenced by TtSemiLRJetCombObservables::operator()().

151 {
152  // FIXME: provide the correct charge from generated event
153  return reco::Particle(0, this->getFitLepl().p4() + this->getFitLepn().p4() + this->getFitLepb().p4());
154 }
pat::Particle getFitLepn() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Particle getFitLepb() const
pat::Particle getFitLepl() const
reco::Particle TtSemiEvtSolution::getFitLepW ( ) const

Definition at line 156 of file TtSemiEvtSolution.cc.

References getFitLepl(), getFitLepn(), and p4.

157 {
158  // FIXME: provide the correct charge from generated event
159  return reco::Particle(0, this->getFitLepl().p4() + this->getFitLepn().p4());
160 }
pat::Particle getFitLepn() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Particle getFitLepl() const
const edm::RefProd<TtGenEvent>& TtSemiEvtSolution::getGenEvent ( ) const
inline

Definition at line 61 of file TtSemiEvtSolution.h.

References theGenEvt_.

Referenced by getGenHadb(), getGenHadp(), getGenHadq(), getGenHadt(), getGenHadW(), getGenLepb(), getGenLepl(), getGenLepn(), getGenLept(), and getGenLepW().

61 { return theGenEvt_; };
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadb ( ) const
inline

Definition at line 64 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

64 { if (!theGenEvt_) return 0; else return this->getGenEvent()->hadronicDecayB(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadp ( ) const
inline

Definition at line 65 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

65 { if (!theGenEvt_) return 0; else return this->getGenEvent()->hadronicDecayQuark(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadq ( ) const
inline

Definition at line 66 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

66 { if (!theGenEvt_) return 0; else return this->getGenEvent()->hadronicDecayQuarkBar(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadt ( ) const
inline

Definition at line 62 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

62 { if (!theGenEvt_) return 0; else return this->getGenEvent()->hadronicDecayTop(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadW ( ) const
inline

Definition at line 63 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

63 { if (!theGenEvt_) return 0; else return this->getGenEvent()->hadronicDecayW(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenLepb ( ) const
inline

Definition at line 69 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

69 { if (!theGenEvt_) return 0; else return this->getGenEvent()->leptonicDecayB(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenLepl ( ) const
inline

Definition at line 70 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

70 { if (!theGenEvt_) return 0; else return this->getGenEvent()->singleLepton(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenLepn ( ) const
inline

Definition at line 71 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

71 { if (!theGenEvt_) return 0; else return this->getGenEvent()->singleNeutrino(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenLept ( ) const
inline

Definition at line 67 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

67 { if (!theGenEvt_) return 0; else return this->getGenEvent()->leptonicDecayTop(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenLepW ( ) const
inline

Definition at line 68 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

68 { if (!theGenEvt_) return 0; else return this->getGenEvent()->leptonicDecayW(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
pat::Jet TtSemiEvtSolution::getHadb ( ) const

Definition at line 38 of file TtSemiEvtSolution.cc.

References hadb_, and jetCorrScheme_.

Referenced by getCalHadb(), getRecHadb(), and TtSemiLRJetCombObservables::operator()().

39 {
40  // WARNING this is obsolete and only
41  // kept for backwards compatibility
42  if (jetCorrScheme_ == 1) return hadb_->correctedJet("HAD", "B"); // calibrate jets according to MC truth
43  else if (jetCorrScheme_ == 2) return hadb_->correctedJet("HAD", "B");
44  else return *hadb_;
45 }
edm::Ptr< pat::Jet > hadb_
pat::Jet TtSemiEvtSolution::getHadp ( ) const

Definition at line 47 of file TtSemiEvtSolution.cc.

References hadp_, and jetCorrScheme_.

Referenced by getCalHadp(), getRecHadp(), and TtSemiLRJetCombObservables::operator()().

48 {
49  // WARNING this is obsolete and only
50  // kept for backwards compatibility
51  if (jetCorrScheme_ == 1) return hadp_->correctedJet("HAD", "UDS"); // calibrate jets according to MC truth
52  else if (jetCorrScheme_ == 2) return hadp_->correctedJet("HAD", "UDS");
53  else return *hadp_;
54 }
edm::Ptr< pat::Jet > hadp_
pat::Jet TtSemiEvtSolution::getHadq ( ) const

Definition at line 56 of file TtSemiEvtSolution.cc.

References hadq_, and jetCorrScheme_.

Referenced by getCalHadq(), getRecHadq(), and TtSemiLRJetCombObservables::operator()().

57 {
58  // WARNING this is obsolete and only
59  // kept for backwards compatibility
60  if (jetCorrScheme_ == 1) return hadq_->correctedJet("HAD", "UDS"); // calibrate jets according to MC truth
61  else if (jetCorrScheme_ == 2) return hadq_->correctedJet("HAD", "UDS");
62  else return *hadq_;
63 }
edm::Ptr< pat::Jet > hadq_
int TtSemiEvtSolution::getJetParametrisation ( ) const
inline

Definition at line 134 of file TtSemiEvtSolution.h.

References jetParam_.

134 { return jetParam_; }
pat::Jet TtSemiEvtSolution::getLepb ( ) const

Definition at line 65 of file TtSemiEvtSolution.cc.

References jetCorrScheme_, and lepb_.

Referenced by getCalLepb(), getRecLepb(), and TtSemiLRJetCombObservables::operator()().

66 {
67  // WARNING this is obsolete and only
68  // kept for backwards compatibility
69  if (jetCorrScheme_ == 1) return lepb_->correctedJet("HAD", "B"); // calibrate jets according to MC truth
70  else if (jetCorrScheme_ == 2) return lepb_->correctedJet("HAD", "B");
71  else return *lepb_;
72 }
edm::Ptr< pat::Jet > lepb_
int TtSemiEvtSolution::getLeptonParametrisation ( ) const
inline

Definition at line 135 of file TtSemiEvtSolution.h.

References leptonParam_.

135 { return leptonParam_; }
int TtSemiEvtSolution::getLRBestJetComb ( ) const
inline

Definition at line 158 of file TtSemiEvtSolution.h.

References lrBestJetComb_.

158 { return lrBestJetComb_; }
double TtSemiEvtSolution::getLRJetCombLRval ( ) const
inline

Definition at line 160 of file TtSemiEvtSolution.h.

References lrJetCombLRval_.

160 { return lrJetCombLRval_; }
double TtSemiEvtSolution::getLRJetCombObsVal ( unsigned int  selObs) const

Definition at line 178 of file TtSemiEvtSolution.cc.

References plotBeamSpotDB::first, lrJetCombVarVal_, and python.connectstrParser::o.

Referenced by TtSemiLRJetCombCalc::operator()().

179 {
180  double val = -999.;
181  for(size_t o=0; o<lrJetCombVarVal_.size(); o++){
182  if(lrJetCombVarVal_[o].first == selObs) val = lrJetCombVarVal_[o].second;
183  }
184  return val;
185 }
std::vector< std::pair< unsigned int, double > > lrJetCombVarVal_
double TtSemiEvtSolution::getLRJetCombProb ( ) const
inline

Definition at line 161 of file TtSemiEvtSolution.h.

References lrJetCombProb_.

161 { return lrJetCombProb_; }
double TtSemiEvtSolution::getLRSignalEvtLRval ( ) const
inline

Definition at line 149 of file TtSemiEvtSolution.h.

References lrSignalEvtLRval_.

149 { return lrSignalEvtLRval_; }
double TtSemiEvtSolution::getLRSignalEvtObsVal ( unsigned int  selObs) const

Definition at line 166 of file TtSemiEvtSolution.cc.

References plotBeamSpotDB::first, lrSignalEvtVarVal_, and python.connectstrParser::o.

Referenced by TtSemiLRSignalSelCalc::operator()().

166  {
167  double val = -999.;
168  for(size_t o=0; o<lrSignalEvtVarVal_.size(); o++){
169  if(lrSignalEvtVarVal_[o].first == selObs) val = lrSignalEvtVarVal_[o].second;
170  }
171  return val;
172 }
std::vector< std::pair< unsigned int, double > > lrSignalEvtVarVal_
double TtSemiEvtSolution::getLRSignalEvtProb ( ) const
inline

Definition at line 150 of file TtSemiEvtSolution.h.

References lrSignalEvtProb_.

150 { return lrSignalEvtProb_; }
double TtSemiEvtSolution::getMCBestAngleHadb ( ) const
inline

Definition at line 126 of file TtSemiEvtSolution.h.

References angleHadb_.

126 { return angleHadb_; };
double TtSemiEvtSolution::getMCBestAngleHadp ( ) const
inline

Definition at line 124 of file TtSemiEvtSolution.h.

References angleHadp_.

124 { return angleHadp_; };
double TtSemiEvtSolution::getMCBestAngleHadq ( ) const
inline

Definition at line 125 of file TtSemiEvtSolution.h.

References angleHadq_.

125 { return angleHadq_; };
double TtSemiEvtSolution::getMCBestAngleLepb ( ) const
inline

Definition at line 127 of file TtSemiEvtSolution.h.

References angleLepb_.

127 { return angleLepb_; };
int TtSemiEvtSolution::getMCBestJetComb ( ) const
inline

Definition at line 156 of file TtSemiEvtSolution.h.

References mcBestJetComb_.

156 { return mcBestJetComb_; }
double TtSemiEvtSolution::getMCBestSumAngles ( ) const
inline

Definition at line 123 of file TtSemiEvtSolution.h.

References sumAnglejp_.

123 { return sumAnglejp_;};
int TtSemiEvtSolution::getMCChangeWQ ( ) const
inline

Definition at line 128 of file TtSemiEvtSolution.h.

References changeWQ_.

128 { return changeWQ_; };
const reco::CompositeCandidate& TtSemiEvtSolution::getMCHyp ( ) const
inline

Definition at line 170 of file TtSemiEvtSolution.h.

References mcHyp_.

170 { return mcHyp_; }
reco::CompositeCandidate mcHyp_
pat::Muon TtSemiEvtSolution::getMuon ( ) const
inline

Definition at line 54 of file TtSemiEvtSolution.h.

References muon_.

Referenced by getCalLepm(), getRecLepm(), and TtSemiLRSignalSelObservables::operator()().

54 { return *muon_; };
edm::Ptr< pat::Muon > muon_
pat::MET TtSemiEvtSolution::getNeutrino ( ) const
inline

Definition at line 56 of file TtSemiEvtSolution.h.

References neutrino_.

Referenced by getCalLepn(), getRecLepn(), and TtSemiLRSignalSelObservables::operator()().

56 { return *neutrino_; };
edm::Ptr< pat::MET > neutrino_
int TtSemiEvtSolution::getNeutrinoParametrisation ( ) const
inline

Definition at line 136 of file TtSemiEvtSolution.h.

References neutrinoParam_.

136 { return neutrinoParam_; }
double TtSemiEvtSolution::getProbChi2 ( ) const
inline

Definition at line 142 of file TtSemiEvtSolution.h.

References probChi2_.

Referenced by TtSemiLRJetCombObservables::operator()().

142 { return probChi2_; }
pat::Jet TtSemiEvtSolution::getRecHadb ( ) const
inline

Definition at line 78 of file TtSemiEvtSolution.h.

References pat::Jet::correctedJet(), and getHadb().

Referenced by getRecHadt(), and TtSemiLRJetCombObservables::operator()().

78 { return this->getHadb().correctedJet("RAW"); };
pat::Jet getHadb() const
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
pat::Jet TtSemiEvtSolution::getRecHadp ( ) const
inline

Definition at line 79 of file TtSemiEvtSolution.h.

References pat::Jet::correctedJet(), and getHadp().

Referenced by getRecHadt(), getRecHadW(), and TtSemiLRJetCombObservables::operator()().

79 { return this->getHadp().correctedJet("RAW"); };
pat::Jet getHadp() const
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
pat::Jet TtSemiEvtSolution::getRecHadq ( ) const
inline

Definition at line 80 of file TtSemiEvtSolution.h.

References pat::Jet::correctedJet(), and getHadq().

Referenced by getRecHadt(), getRecHadW(), and TtSemiLRJetCombObservables::operator()().

80 { return this->getHadq().correctedJet("RAW"); };
pat::Jet getHadq() const
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
reco::Particle TtSemiEvtSolution::getRecHadt ( ) const

Definition at line 77 of file TtSemiEvtSolution.cc.

References getRecHadb(), getRecHadp(), getRecHadq(), and p4.

78 {
79  // FIXME: the charge from the genevent
80  return reco::Particle(0,this->getRecHadp().p4() + this->getRecHadq().p4() + this->getRecHadb().p4());
81 }
double p4[4]
Definition: TauolaWrapper.h:92
pat::Jet getRecHadp() const
pat::Jet getRecHadb() const
pat::Jet getRecHadq() const
reco::Particle TtSemiEvtSolution::getRecHadW ( ) const

Definition at line 83 of file TtSemiEvtSolution.cc.

References getRecHadp(), getRecHadq(), and p4.

84 {
85  // FIXME: the charge from the genevent
86  return reco::Particle(0,this->getRecHadp().p4() + this->getRecHadq().p4());
87 }
double p4[4]
Definition: TauolaWrapper.h:92
pat::Jet getRecHadp() const
pat::Jet getRecHadq() const
pat::Jet TtSemiEvtSolution::getRecLepb ( ) const
inline

Definition at line 83 of file TtSemiEvtSolution.h.

References pat::Jet::correctedJet(), and getLepb().

Referenced by getRecLept(), and TtSemiLRJetCombObservables::operator()().

83 { return this->getLepb().correctedJet("RAW"); };
pat::Jet getLepb() const
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
pat::Electron TtSemiEvtSolution::getRecLepe ( ) const
inline

Definition at line 85 of file TtSemiEvtSolution.h.

References getElectron().

Referenced by getCalLept(), getCalLepW(), getRecLept(), getRecLepW(), and TtSemiLRJetCombObservables::operator()().

85 { return this->getElectron(); };
pat::Electron getElectron() const
pat::Muon TtSemiEvtSolution::getRecLepm ( ) const
inline

Definition at line 84 of file TtSemiEvtSolution.h.

References getMuon().

Referenced by getCalLept(), getCalLepW(), getRecLept(), getRecLepW(), and TtSemiLRJetCombObservables::operator()().

84 { return this->getMuon(); };
pat::Muon getMuon() const
pat::MET TtSemiEvtSolution::getRecLepn ( ) const
inline

Definition at line 86 of file TtSemiEvtSolution.h.

References getNeutrino().

Referenced by getCalLept(), getCalLepW(), getRecLept(), getRecLepW(), and TtSemiLRJetCombObservables::operator()().

86 { return this->getNeutrino(); };
pat::MET getNeutrino() const
reco::Particle TtSemiEvtSolution::getRecLept ( ) const

Definition at line 89 of file TtSemiEvtSolution.cc.

References getDecay(), getRecLepb(), getRecLepe(), getRecLepm(), getRecLepn(), AlCaHLTBitMon_ParallelJobs::p, and p4.

90 {
91  // FIXME: the charge from the genevent
93  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4() + this->getRecLepb().p4());
94  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4() + this->getRecLepb().p4());
95  return p;
96 }
pat::Jet getRecLepb() const
std::string getDecay() const
pat::Electron getRecLepe() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Muon getRecLepm() const
pat::MET getRecLepn() const
reco::Particle TtSemiEvtSolution::getRecLepW ( ) const

Definition at line 98 of file TtSemiEvtSolution.cc.

References getDecay(), getRecLepe(), getRecLepm(), getRecLepn(), AlCaHLTBitMon_ParallelJobs::p, and p4.

Referenced by TtSemiLRJetCombObservables::operator()().

99 {
100  // FIXME: the charge from the genevent
102  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4());
103  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4());
104  return p;
105 }
std::string getDecay() const
pat::Electron getRecLepe() const
double p4[4]
Definition: TauolaWrapper.h:92
pat::Muon getRecLepm() const
pat::MET getRecLepn() const
const reco::CompositeCandidate& TtSemiEvtSolution::getRecoHyp ( ) const
inline

Definition at line 168 of file TtSemiEvtSolution.h.

References recoHyp_.

168 { return recoHyp_; }
reco::CompositeCandidate recoHyp_
int TtSemiEvtSolution::getSimpleBestJetComb ( ) const
inline

Definition at line 157 of file TtSemiEvtSolution.h.

References simpleBestJetComb_.

157 { return simpleBestJetComb_; }
void TtSemiEvtSolution::setElectron ( const edm::Handle< std::vector< pat::Electron > > &  elec,
int  i 
)
inlineprotected

Definition at line 193 of file TtSemiEvtSolution.h.

References decay_, electron_, and i.

Referenced by TtSemiEvtSolutionMaker::produce().

194  { electron_ = edm::Ptr<pat::Electron>(elec, i); decay_ = "electron"; };
int i
Definition: DBlmapReader.cc:9
edm::Ptr< pat::Electron > electron_
void TtSemiEvtSolution::setFitHadb ( const pat::Particle aFitHadb)
inlineprotected

Definition at line 201 of file TtSemiEvtSolution.h.

References fitHadb_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

201 { fitHadb_.clear(); fitHadb_.push_back(aFitHadb); };
std::vector< pat::Particle > fitHadb_
void TtSemiEvtSolution::setFitHadp ( const pat::Particle aFitHadp)
inlineprotected

Definition at line 202 of file TtSemiEvtSolution.h.

References fitHadp_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

202 { fitHadp_.clear(); fitHadp_.push_back(aFitHadp); };
std::vector< pat::Particle > fitHadp_
void TtSemiEvtSolution::setFitHadq ( const pat::Particle aFitHadq)
inlineprotected

Definition at line 203 of file TtSemiEvtSolution.h.

References fitHadq_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

203 { fitHadq_.clear(); fitHadq_.push_back(aFitHadq); };
std::vector< pat::Particle > fitHadq_
void TtSemiEvtSolution::setFitLepb ( const pat::Particle aFitLepb)
inlineprotected

Definition at line 204 of file TtSemiEvtSolution.h.

References fitLepb_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

204 { fitLepb_.clear(); fitLepb_.push_back(aFitLepb); };
std::vector< pat::Particle > fitLepb_
void TtSemiEvtSolution::setFitLepl ( const pat::Particle aFitLepl)
inlineprotected

Definition at line 205 of file TtSemiEvtSolution.h.

References fitLepl_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

205 { fitLepl_.clear(); fitLepl_.push_back(aFitLepl); };
std::vector< pat::Particle > fitLepl_
void TtSemiEvtSolution::setFitLepn ( const pat::Particle aFitLepn)
inlineprotected

Definition at line 206 of file TtSemiEvtSolution.h.

References fitLepn_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

206 { fitLepn_.clear(); fitLepn_.push_back(aFitLepn); };
std::vector< pat::Particle > fitLepn_
void TtSemiEvtSolution::setGenEvt ( const edm::Handle< TtGenEvent > &  aGenEvt)
protected

Definition at line 190 of file TtSemiEvtSolution.cc.

References theGenEvt_.

Referenced by TtSemiEvtSolutionMaker::produce().

191 {
192  if( !aGenEvt->isSemiLeptonic() ){
193  edm::LogWarning( "TtGenEventNotFilled" ) << "genEvt is not semi-leptonic; TtGenEvent is not filled";
194  return;
195  }
197 }
edm::RefProd< TtGenEvent > theGenEvt_
void TtSemiEvtSolution::setHadb ( const edm::Handle< std::vector< pat::Jet > > &  jet,
int  i 
)
inlineprotected

Definition at line 187 of file TtSemiEvtSolution.h.

References hadb_, i, and metsig::jet.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setHadp ( const edm::Handle< std::vector< pat::Jet > > &  jet,
int  i 
)
inlineprotected

Definition at line 183 of file TtSemiEvtSolution.h.

References hadp_, i, and metsig::jet.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setHadq ( const edm::Handle< std::vector< pat::Jet > > &  jet,
int  i 
)
inlineprotected

Definition at line 185 of file TtSemiEvtSolution.h.

References hadq_, i, and metsig::jet.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setJetCorrectionScheme ( int  scheme)
inlineprotected

Definition at line 182 of file TtSemiEvtSolution.h.

References jetCorrScheme_.

Referenced by TtSemiEvtSolutionMaker::produce().

182 { jetCorrScheme_ = scheme; };
void TtSemiEvtSolution::setJetParametrisation ( int  jp)
inlineprotected

Definition at line 222 of file TtSemiEvtSolution.h.

References jetParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

222 { jetParam_ = jp; };
void TtSemiEvtSolution::setLepb ( const edm::Handle< std::vector< pat::Jet > > &  jet,
int  i 
)
inlineprotected

Definition at line 189 of file TtSemiEvtSolution.h.

References i, metsig::jet, and lepb_.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setLeptonParametrisation ( int  lp)
inlineprotected

Definition at line 223 of file TtSemiEvtSolution.h.

References leptonParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

223 { leptonParam_ = lp; };
void TtSemiEvtSolution::setLRBestJetComb ( int  lrbs)
inlineprotected

Definition at line 238 of file TtSemiEvtSolution.h.

References lrBestJetComb_.

238 { lrBestJetComb_ = lrbs; };
void TtSemiEvtSolution::setLRJetCombLRval ( double  clr)
inlineprotected

Definition at line 240 of file TtSemiEvtSolution.h.

References lrJetCombLRval_.

Referenced by TtSemiLRJetCombCalc::operator()().

240 {lrJetCombLRval_ = clr;};
void TtSemiEvtSolution::setLRJetCombObservables ( const std::vector< std::pair< unsigned int, double > > &  varval)
protected

Definition at line 203 of file TtSemiEvtSolution.cc.

References lrJetCombVarVal_.

Referenced by TtSemiLRJetCombObservables::operator()().

204 {
205  lrJetCombVarVal_.clear();
206  for(size_t ijc = 0; ijc<varval.size(); ijc++) lrJetCombVarVal_.push_back(varval[ijc]);
207 }
std::vector< std::pair< unsigned int, double > > lrJetCombVarVal_
void TtSemiEvtSolution::setLRJetCombProb ( double  plr)
inlineprotected

Definition at line 241 of file TtSemiEvtSolution.h.

References lrJetCombProb_.

Referenced by TtSemiLRJetCombCalc::operator()().

241 {lrJetCombProb_ = plr;};
void TtSemiEvtSolution::setLRSignalEvtLRval ( double  clr)
inlineprotected

Definition at line 247 of file TtSemiEvtSolution.h.

References lrSignalEvtLRval_.

Referenced by TtSemiLRSignalSelCalc::operator()().

247 {lrSignalEvtLRval_ = clr;};
void TtSemiEvtSolution::setLRSignalEvtObservables ( const std::vector< std::pair< unsigned int, double > > &  varval)
protected

Definition at line 212 of file TtSemiEvtSolution.cc.

References lrSignalEvtVarVal_.

Referenced by TtSemiLRSignalSelObservables::operator()().

213 {
214  lrSignalEvtVarVal_.clear();
215  for(size_t ise = 0; ise<varval.size(); ise++) lrSignalEvtVarVal_.push_back(varval[ise]);
216 }
std::vector< std::pair< unsigned int, double > > lrSignalEvtVarVal_
void TtSemiEvtSolution::setLRSignalEvtProb ( double  plr)
inlineprotected

Definition at line 248 of file TtSemiEvtSolution.h.

Referenced by TtSemiLRSignalSelCalc::operator()().

248 {lrSignalEvtProb_ = plr;};
void TtSemiEvtSolution::setMCBestAngleHadb ( double  adr)
inlineprotected

Definition at line 214 of file TtSemiEvtSolution.h.

References angleHadb_.

214 { angleHadb_ = adr; };
void TtSemiEvtSolution::setMCBestAngleHadp ( double  adr)
inlineprotected

Definition at line 212 of file TtSemiEvtSolution.h.

References angleHadp_.

212 { angleHadp_ = adr; };
void TtSemiEvtSolution::setMCBestAngleHadq ( double  adr)
inlineprotected

Definition at line 213 of file TtSemiEvtSolution.h.

References angleHadq_.

213 { angleHadq_ = adr; };
void TtSemiEvtSolution::setMCBestAngleLepb ( double  adr)
inlineprotected

Definition at line 215 of file TtSemiEvtSolution.h.

References angleLepb_.

215 { angleLepb_ = adr; };
void TtSemiEvtSolution::setMCBestJetComb ( int  mcbs)
inlineprotected

Definition at line 236 of file TtSemiEvtSolution.h.

References mcBestJetComb_.

236 { mcBestJetComb_ = mcbs; };
void TtSemiEvtSolution::setMCBestSumAngles ( double  sdr)
inlineprotected

Definition at line 211 of file TtSemiEvtSolution.h.

References sumAnglejp_.

211 { sumAnglejp_= sdr; };
void TtSemiEvtSolution::setMCChangeWQ ( int  wq)
inlineprotected

Definition at line 216 of file TtSemiEvtSolution.h.

References changeWQ_.

216 { changeWQ_ = wq; };
void TtSemiEvtSolution::setMuon ( const edm::Handle< std::vector< pat::Muon > > &  muon,
int  i 
)
inlineprotected

Definition at line 191 of file TtSemiEvtSolution.h.

References decay_, i, metsig::muon, and muon_.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setNeutrino ( const edm::Handle< std::vector< pat::MET > > &  met,
int  i 
)
inlineprotected
void TtSemiEvtSolution::setNeutrinoParametrisation ( int  mp)
inlineprotected

Definition at line 224 of file TtSemiEvtSolution.h.

References neutrinoParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

224 { neutrinoParam_ = mp; };
void TtSemiEvtSolution::setProbChi2 ( double  c)
inlineprotected

Definition at line 230 of file TtSemiEvtSolution.h.

References EnergyCorrector::c, and probChi2_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

void TtSemiEvtSolution::setSimpleBestJetComb ( int  sbs)
inlineprotected

Definition at line 237 of file TtSemiEvtSolution.h.

References simpleBestJetComb_.

237 { simpleBestJetComb_ = sbs; };
void TtSemiEvtSolution::setupHyp ( )
private

Definition at line 219 of file TtSemiEvtSolution.cc.

References reco::CompositeCandidate::addDaughter(), reco::CompositeCandidate::clearDaughters(), reco::CompositeCandidate::clearRoles(), metsig::electron, electron_, getDecay(), hadb_, hadp_, hadq_, lepb_, metsig::muon, muon_, neutrino_, recoHyp_, and AddFourMomenta::set().

220 {
221 
222  AddFourMomenta addFourMomenta;
223 
226 
227  // Setup transient references
228  reco::CompositeCandidate recHadt;
229  reco::CompositeCandidate recLept;
230  reco::CompositeCandidate recHadW;
231  reco::CompositeCandidate recLepW;
232 
233  // Get refs to leaf nodes
234  reco::ShallowClonePtrCandidate hadp( hadp_, hadp_->charge(), hadp_->p4(), hadp_->vertex() );
235  reco::ShallowClonePtrCandidate hadq( hadq_, hadq_->charge(), hadq_->p4(), hadq_->vertex() );
236  reco::ShallowClonePtrCandidate hadb( hadb_, hadb_->charge(), hadb_->p4(), hadb_->vertex() );
237  reco::ShallowClonePtrCandidate lepb( lepb_, lepb_->charge(), lepb_->p4(), lepb_->vertex() );
238 
239  reco::ShallowClonePtrCandidate neutrino( neutrino_, neutrino_->charge(), neutrino_->p4(), neutrino_->vertex() );
240 
241 
242 // JetCandRef hadp( hadp_->p4(), hadp_->charge(), hadp_->vertex()); hadp.setRef( hadp_ );
243 // JetCandRef hadq( hadq_->p4(), hadq_->charge(), hadq_->vertex()); hadq.setRef( hadq_ );
244 // JetCandRef hadb( hadb_->p4(), hadb_->charge(), hadb_->vertex()); hadb.setRef( hadb_ );
245 // JetCandRef lepb( lepb_->p4(), lepb_->charge(), lepb_->vertex()); lepb.setRef( lepb_ );
246 
247 // METCandRef neutrino ( neutrino_->p4(), neutrino_->charge(), neutrino_->vertex() ); neutrino.setRef( neutrino_ );
248 
249 
250 
251  recHadW.addDaughter( hadp, "hadp" );
252  recHadW.addDaughter( hadq, "hadq" );
253 
254  addFourMomenta.set( recHadW );
255 
256  recHadt.addDaughter( hadb, "hadb" );
257  recHadt.addDaughter( recHadW, "hadW" );
258 
259  addFourMomenta.set( recHadt );
260 
261  recLepW.addDaughter( neutrino,"neutrino" );
262  if ( getDecay() == "electron" ) {
264 // ElectronCandRef electron ( electron_->p4(), electron_->charge(), electron_->vertex() ); electron.setRef( electron_ );
265  recLepW.addDaughter ( electron, "electron" );
266  } else if ( getDecay() == "muon" ) {
267  reco::ShallowClonePtrCandidate muon ( muon_, muon_->charge(), muon_->p4(), muon_->vertex() );
268 // MuonCandRef muon ( muon_->p4(), muon_->charge(), muon_->vertex() ); muon.setRef( muon_ );
269  recLepW.addDaughter ( muon, "muon" );
270  }
271 
272  addFourMomenta.set( recLepW );
273 
274  recLept.addDaughter( lepb, "lepb" );
275  recLept.addDaughter( recLepW, "lepW" );
276 
277  addFourMomenta.set( recLept );
278 
279  recoHyp_.addDaughter( recHadt, "hadt" );
280  recoHyp_.addDaughter( recLept, "lept" );
281 
282  addFourMomenta.set( recoHyp_ );
283 
284 
285 // // Setup transient references
286 // reco::CompositeCandidate fitHadt;
287 // reco::CompositeCandidate fitLept;
288 // reco::CompositeCandidate fitHadW;
289 // reco::CompositeCandidate fitLepW;
290 
291 // // Get refs to leaf nodes
292 // pat::Particle afitHadp = getFitHadp();
293 // pat::Particle afitHadq = getFitHadq();
294 // pat::Particle afitHadb = getFitHadb();
295 // pat::Particle afitLepb = getFitLepb();
296 // reco::ShallowClonePtrCandidate fitHadp( hadp_, afitHadp.charge(), afitHadp.p4(), afitHadp.vertex());
297 // reco::ShallowClonePtrCandidate fitHadq( hadq_, afitHadq.charge(), afitHadq.p4(), afitHadq.vertex());
298 // reco::ShallowClonePtrCandidate fitHadb( hadb_, afitHadb.charge(), afitHadb.p4(), afitHadb.vertex());
299 // reco::ShallowClonePtrCandidate fitLepb( lepb_, afitLepb.charge(), afitLepb.p4(), afitLepb.vertex());
300 
301 // reco::ShallowClonePtrCandidate fitNeutrino ( neutrino_, fitLepn_.charge(), fitLepn_.p4(), fitLepn_.vertex() );
302 
303 // fitHadW.addDaughter( fitHadp, "hadp" );
304 // fitHadW.addDaughter( fitHadq, "hadq" );
305 // fitHadt.addDaughter( fitHadb, "hadb" );
306 // fitHadt.addDaughter( fitHadW, "hadW" );
307 
308 // fitLepW.addDaughter( fitNeutrino,"neutrino" );
309 
310 // if ( getDecay() == "electron" ) {
311 // reco::ShallowClonePtrCandidate fitElectron ( electron_, electron_.charge(), electron_.p4(), electron_.vertex() );
312 // fitLepW.addDaughter ( fitElectron, "electron" );
313 // } else if ( getDecay() == "muon" ) {
314 // reco::ShallowClonePtrCandidate fitMuon ( muon_, muon_.charge(), muon_.p4(), muon_.vertex() );
315 // fitLepW.addDaughter ( fitMuon, "muon" );
316 // }
317 // fitLept.addDaughter( fitLepb, "lepb" );
318 // fitLept.addDaughter( fitLepW, "lepW" );
319 
320 // fitHyp_.addDaughter( fitHadt, "hadt" );
321 // fitHyp_.addDaughter( fitLept, "lept" );
322 
323 
324 
325 
326 }
std::string getDecay() const
edm::Ptr< pat::Jet > hadb_
edm::Ptr< pat::Jet > hadp_
void addDaughter(const Candidate &, const std::string &s="")
add a clone of the passed candidate as daughter
edm::Ptr< pat::Muon > muon_
edm::Ptr< pat::Electron > electron_
reco::CompositeCandidate recoHyp_
void clearDaughters()
clear daughters
edm::Ptr< pat::Jet > lepb_
edm::Ptr< pat::MET > neutrino_
edm::Ptr< pat::Jet > hadq_
void set(reco::Candidate &c) const
set up a candidate

Friends And Related Function Documentation

friend class TtSemiEvtSolutionMaker
friend

Definition at line 33 of file TtSemiEvtSolution.h.

friend class TtSemiLepHitFit
friend

Definition at line 35 of file TtSemiEvtSolution.h.

friend class TtSemiLepKinFitter
friend

Definition at line 34 of file TtSemiEvtSolution.h.

friend class TtSemiLRJetCombCalc
friend

Definition at line 39 of file TtSemiEvtSolution.h.

friend class TtSemiLRJetCombObservables
friend

Definition at line 38 of file TtSemiEvtSolution.h.

friend class TtSemiLRSignalSelCalc
friend

Definition at line 37 of file TtSemiEvtSolution.h.

friend class TtSemiLRSignalSelObservables
friend

Definition at line 36 of file TtSemiEvtSolution.h.

Member Data Documentation

double TtSemiEvtSolution::angleHadb_
private

Definition at line 273 of file TtSemiEvtSolution.h.

Referenced by getMCBestAngleHadb(), setMCBestAngleHadb(), and TtSemiEvtSolution().

double TtSemiEvtSolution::angleHadp_
private

Definition at line 273 of file TtSemiEvtSolution.h.

Referenced by getMCBestAngleHadp(), setMCBestAngleHadp(), and TtSemiEvtSolution().

double TtSemiEvtSolution::angleHadq_
private

Definition at line 273 of file TtSemiEvtSolution.h.

Referenced by getMCBestAngleHadq(), setMCBestAngleHadq(), and TtSemiEvtSolution().

double TtSemiEvtSolution::angleLepb_
private

Definition at line 273 of file TtSemiEvtSolution.h.

Referenced by getMCBestAngleLepb(), setMCBestAngleLepb(), and TtSemiEvtSolution().

int TtSemiEvtSolution::changeWQ_
private

Definition at line 274 of file TtSemiEvtSolution.h.

Referenced by getMCChangeWQ(), setMCChangeWQ(), and TtSemiEvtSolution().

std::string TtSemiEvtSolution::decay_
private

Definition at line 271 of file TtSemiEvtSolution.h.

Referenced by getDecay(), setElectron(), and setMuon().

edm::Ptr<pat::Electron> TtSemiEvtSolution::electron_
private

Definition at line 260 of file TtSemiEvtSolution.h.

Referenced by getElectron(), setElectron(), and setupHyp().

std::vector<pat::Particle> TtSemiEvtSolution::fitHadb_
private

Definition at line 262 of file TtSemiEvtSolution.h.

Referenced by getFitHadb(), and setFitHadb().

std::vector<pat::Particle> TtSemiEvtSolution::fitHadp_
private

Definition at line 262 of file TtSemiEvtSolution.h.

Referenced by getFitHadp(), and setFitHadp().

std::vector<pat::Particle> TtSemiEvtSolution::fitHadq_
private

Definition at line 262 of file TtSemiEvtSolution.h.

Referenced by getFitHadq(), and setFitHadq().

reco::CompositeCandidate TtSemiEvtSolution::fitHyp_
private

Definition at line 267 of file TtSemiEvtSolution.h.

Referenced by getFitHyp().

std::vector<pat::Particle> TtSemiEvtSolution::fitLepb_
private

Definition at line 263 of file TtSemiEvtSolution.h.

Referenced by getFitLepb(), and setFitLepb().

std::vector<pat::Particle> TtSemiEvtSolution::fitLepl_
private

Definition at line 263 of file TtSemiEvtSolution.h.

Referenced by getFitLepl(), and setFitLepl().

std::vector<pat::Particle> TtSemiEvtSolution::fitLepn_
private

Definition at line 263 of file TtSemiEvtSolution.h.

Referenced by getFitLepn(), and setFitLepn().

edm::Ptr<pat::Jet> TtSemiEvtSolution::hadb_
private

Definition at line 258 of file TtSemiEvtSolution.h.

Referenced by getHadb(), setHadb(), and setupHyp().

edm::Ptr<pat::Jet> TtSemiEvtSolution::hadp_
private

Definition at line 258 of file TtSemiEvtSolution.h.

Referenced by getHadp(), setHadp(), and setupHyp().

edm::Ptr<pat::Jet> TtSemiEvtSolution::hadq_
private

Definition at line 258 of file TtSemiEvtSolution.h.

Referenced by getHadq(), setHadq(), and setupHyp().

int TtSemiEvtSolution::jetCorrScheme_
private
int TtSemiEvtSolution::jetParam_
private

Definition at line 275 of file TtSemiEvtSolution.h.

Referenced by getJetParametrisation(), and setJetParametrisation().

edm::Ptr<pat::Jet> TtSemiEvtSolution::lepb_
private

Definition at line 258 of file TtSemiEvtSolution.h.

Referenced by getLepb(), setLepb(), and setupHyp().

int TtSemiEvtSolution::leptonParam_
private

Definition at line 275 of file TtSemiEvtSolution.h.

Referenced by getLeptonParametrisation(), and setLeptonParametrisation().

int TtSemiEvtSolution::lrBestJetComb_
private

Definition at line 277 of file TtSemiEvtSolution.h.

Referenced by getLRBestJetComb(), setLRBestJetComb(), and TtSemiEvtSolution().

double TtSemiEvtSolution::lrJetCombLRval_
private

Definition at line 278 of file TtSemiEvtSolution.h.

Referenced by getLRJetCombLRval(), setLRJetCombLRval(), and TtSemiEvtSolution().

double TtSemiEvtSolution::lrJetCombProb_
private

Definition at line 278 of file TtSemiEvtSolution.h.

Referenced by getLRJetCombProb(), setLRJetCombProb(), and TtSemiEvtSolution().

std::vector<std::pair<unsigned int, double> > TtSemiEvtSolution::lrJetCombVarVal_
private

Definition at line 280 of file TtSemiEvtSolution.h.

Referenced by getLRJetCombObsVal(), and setLRJetCombObservables().

double TtSemiEvtSolution::lrSignalEvtLRval_
private
double TtSemiEvtSolution::lrSignalEvtProb_
private

Definition at line 279 of file TtSemiEvtSolution.h.

Referenced by getLRSignalEvtProb(), and TtSemiEvtSolution().

std::vector<std::pair<unsigned int, double> > TtSemiEvtSolution::lrSignalEvtVarVal_
private

Definition at line 281 of file TtSemiEvtSolution.h.

Referenced by getLRSignalEvtObsVal(), and setLRSignalEvtObservables().

int TtSemiEvtSolution::mcBestJetComb_
private

Definition at line 277 of file TtSemiEvtSolution.h.

Referenced by getMCBestJetComb(), setMCBestJetComb(), and TtSemiEvtSolution().

reco::CompositeCandidate TtSemiEvtSolution::mcHyp_
private

Definition at line 265 of file TtSemiEvtSolution.h.

Referenced by getMCHyp().

edm::Ptr<pat::Muon> TtSemiEvtSolution::muon_
private

Definition at line 259 of file TtSemiEvtSolution.h.

Referenced by getMuon(), setMuon(), and setupHyp().

edm::Ptr<pat::MET> TtSemiEvtSolution::neutrino_
private

Definition at line 261 of file TtSemiEvtSolution.h.

Referenced by getNeutrino(), setNeutrino(), and setupHyp().

int TtSemiEvtSolution::neutrinoParam_
private

Definition at line 275 of file TtSemiEvtSolution.h.

Referenced by getNeutrinoParametrisation(), and setNeutrinoParametrisation().

double TtSemiEvtSolution::probChi2_
private

Definition at line 276 of file TtSemiEvtSolution.h.

Referenced by getProbChi2(), setProbChi2(), and TtSemiEvtSolution().

reco::CompositeCandidate TtSemiEvtSolution::recoHyp_
private

Definition at line 266 of file TtSemiEvtSolution.h.

Referenced by getRecoHyp(), and setupHyp().

int TtSemiEvtSolution::simpleBestJetComb_
private
double TtSemiEvtSolution::sumAnglejp_
private

Definition at line 273 of file TtSemiEvtSolution.h.

Referenced by getMCBestSumAngles(), setMCBestSumAngles(), and TtSemiEvtSolution().

edm::RefProd<TtGenEvent> TtSemiEvtSolution::theGenEvt_
private