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 (std::vector< std::pair< unsigned int, double > > varval)
 
void setLRJetCombProb (double plr)
 
void setLRSignalEvtLRval (double clr)
 
void setLRSignalEvtObservables (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 32 of file TtSemiEvtSolution.h.

Constructor & Destructor Documentation

TtSemiEvtSolution::TtSemiEvtSolution ( )

Definition at line 10 of file TtSemiEvtSolution.cc.

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

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

Definition at line 32 of file TtSemiEvtSolution.cc.

33 {
34 }

Member Function Documentation

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

Definition at line 92 of file TtSemiEvtSolution.h.

References getHadb().

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

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

Definition at line 93 of file TtSemiEvtSolution.h.

References getHadp().

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

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

Definition at line 94 of file TtSemiEvtSolution.h.

References getHadq().

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

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

Definition at line 110 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

111 {
112  return reco::Particle(0,this->getCalHadp().p4() + this->getCalHadq().p4() + this->getCalHadb().p4());
113 }
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 115 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

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

Definition at line 97 of file TtSemiEvtSolution.h.

References getLepb().

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

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

Definition at line 99 of file TtSemiEvtSolution.h.

References getElectron().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 98 of file TtSemiEvtSolution.h.

References getMuon().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 100 of file TtSemiEvtSolution.h.

References getNeutrino().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 120 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

121 {
123  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4() + this->getCalLepb().p4());
124  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4() + this->getCalLepb().p4());
125  return p;
126 }
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 128 of file TtSemiEvtSolution.cc.

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

129 {
131  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4());
132  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4());
133  return p;
134 }
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 56 of file TtSemiEvtSolution.h.

References electron_.

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

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

Definition at line 107 of file TtSemiEvtSolution.h.

References fitHadb_.

Referenced by getFitHadt().

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

Definition at line 108 of file TtSemiEvtSolution.h.

References fitHadp_.

Referenced by getFitHadt(), and getFitHadW().

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

Definition at line 109 of file TtSemiEvtSolution.h.

References fitHadq_.

Referenced by getFitHadt(), and getFitHadW().

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

Definition at line 139 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

140 {
141  // FIXME: provide the correct charge from generated event
142  return reco::Particle(0, this->getFitHadp().p4() + this->getFitHadq().p4() + this->getFitHadb().p4());
143 }
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 145 of file TtSemiEvtSolution.cc.

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

146 {
147  // FIXME: provide the correct charge from generated event
148  return reco::Particle(0, this->getFitHadp().p4() + this->getFitHadq().p4());
149 }
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 170 of file TtSemiEvtSolution.h.

References fitHyp_.

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

Definition at line 112 of file TtSemiEvtSolution.h.

References fitLepb_.

Referenced by getFitLept().

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

Definition at line 113 of file TtSemiEvtSolution.h.

References fitLepl_.

Referenced by getFitLept(), and getFitLepW().

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

Definition at line 114 of file TtSemiEvtSolution.h.

References fitLepn_.

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

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

Definition at line 151 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

152 {
153  // FIXME: provide the correct charge from generated event
154  return reco::Particle(0, this->getFitLepl().p4() + this->getFitLepn().p4() + this->getFitLepb().p4());
155 }
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 157 of file TtSemiEvtSolution.cc.

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

158 {
159  // FIXME: provide the correct charge from generated event
160  return reco::Particle(0, this->getFitLepl().p4() + this->getFitLepn().p4());
161 }
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 62 of file TtSemiEvtSolution.h.

References theGenEvt_.

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

62 { return theGenEvt_; };
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadb ( ) 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()->hadronicDecayB(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadp ( ) 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()->hadronicDecayQuark(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadq ( ) 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()->hadronicDecayQuarkBar(); };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle* TtSemiEvtSolution::getGenHadt ( ) const
inline

Definition at line 63 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

63 { 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 64 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

64 { 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 70 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

70 { 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 71 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

71 { 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 72 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

72 { 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 68 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

68 { 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 69 of file TtSemiEvtSolution.h.

References getGenEvent(), and theGenEvt_.

69 { 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 39 of file TtSemiEvtSolution.cc.

References hadb_, and jetCorrScheme_.

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

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

Definition at line 48 of file TtSemiEvtSolution.cc.

References hadp_, and jetCorrScheme_.

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

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

Definition at line 57 of file TtSemiEvtSolution.cc.

References hadq_, and jetCorrScheme_.

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

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

Definition at line 135 of file TtSemiEvtSolution.h.

References jetParam_.

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

Definition at line 66 of file TtSemiEvtSolution.cc.

References jetCorrScheme_, and lepb_.

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

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

Definition at line 136 of file TtSemiEvtSolution.h.

References leptonParam_.

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

Definition at line 159 of file TtSemiEvtSolution.h.

References lrBestJetComb_.

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

Definition at line 161 of file TtSemiEvtSolution.h.

References lrJetCombLRval_.

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

Definition at line 179 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombCalc::operator()().

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

Definition at line 162 of file TtSemiEvtSolution.h.

References lrJetCombProb_.

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

Definition at line 150 of file TtSemiEvtSolution.h.

References lrSignalEvtLRval_.

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

Definition at line 167 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRSignalSelCalc::operator()().

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

Definition at line 151 of file TtSemiEvtSolution.h.

References lrSignalEvtProb_.

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

Definition at line 127 of file TtSemiEvtSolution.h.

References angleHadb_.

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

Definition at line 125 of file TtSemiEvtSolution.h.

References angleHadp_.

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

Definition at line 126 of file TtSemiEvtSolution.h.

References angleHadq_.

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

Definition at line 128 of file TtSemiEvtSolution.h.

References angleLepb_.

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

Definition at line 157 of file TtSemiEvtSolution.h.

References mcBestJetComb_.

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

Definition at line 124 of file TtSemiEvtSolution.h.

References sumAnglejp_.

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

Definition at line 129 of file TtSemiEvtSolution.h.

References changeWQ_.

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

Definition at line 171 of file TtSemiEvtSolution.h.

References mcHyp_.

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

Definition at line 55 of file TtSemiEvtSolution.h.

References muon_.

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

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

Definition at line 57 of file TtSemiEvtSolution.h.

References neutrino_.

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

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

Definition at line 137 of file TtSemiEvtSolution.h.

References neutrinoParam_.

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

Definition at line 143 of file TtSemiEvtSolution.h.

References probChi2_.

Referenced by TtSemiLRJetCombObservables::operator()().

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

Definition at line 79 of file TtSemiEvtSolution.h.

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

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

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

Definition at line 80 of file TtSemiEvtSolution.h.

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

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

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

Definition at line 81 of file TtSemiEvtSolution.h.

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

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

81 { 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
Definition: Jet.cc:277
reco::Particle TtSemiEvtSolution::getRecHadt ( ) const

Definition at line 78 of file TtSemiEvtSolution.cc.

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

79 {
80  // FIXME: the charge from the genevent
81  return reco::Particle(0,this->getRecHadp().p4() + this->getRecHadq().p4() + this->getRecHadb().p4());
82 }
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 84 of file TtSemiEvtSolution.cc.

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

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

Definition at line 84 of file TtSemiEvtSolution.h.

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

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

84 { 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
Definition: Jet.cc:277
pat::Electron TtSemiEvtSolution::getRecLepe ( ) const
inline

Definition at line 86 of file TtSemiEvtSolution.h.

References getElectron().

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

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

Definition at line 85 of file TtSemiEvtSolution.h.

References getMuon().

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

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

Definition at line 87 of file TtSemiEvtSolution.h.

References getNeutrino().

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

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

Definition at line 90 of file TtSemiEvtSolution.cc.

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

91 {
92  // FIXME: the charge from the genevent
94  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4() + this->getRecLepb().p4());
95  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4() + this->getRecLepb().p4());
96  return p;
97 }
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 99 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

100 {
101  // FIXME: the charge from the genevent
103  if (this->getDecay() == "muon") p = reco::Particle(0,this->getRecLepm().p4() + this->getRecLepn().p4());
104  if (this->getDecay() == "electron") p = reco::Particle(0,this->getRecLepe().p4() + this->getRecLepn().p4());
105  return p;
106 }
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 169 of file TtSemiEvtSolution.h.

References recoHyp_.

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

Definition at line 158 of file TtSemiEvtSolution.h.

References simpleBestJetComb_.

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

Definition at line 194 of file TtSemiEvtSolution.h.

References decay_, electron_, and i.

Referenced by TtSemiEvtSolutionMaker::produce().

195  { 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 202 of file TtSemiEvtSolution.h.

References fitHadb_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 203 of file TtSemiEvtSolution.h.

References fitHadp_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 204 of file TtSemiEvtSolution.h.

References fitHadq_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 205 of file TtSemiEvtSolution.h.

References fitLepb_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 206 of file TtSemiEvtSolution.h.

References fitLepl_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 207 of file TtSemiEvtSolution.h.

References fitLepn_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

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

Definition at line 191 of file TtSemiEvtSolution.cc.

References theGenEvt_.

Referenced by TtSemiEvtSolutionMaker::produce().

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

Definition at line 188 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 184 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 186 of file TtSemiEvtSolution.h.

References hadq_, i, and metsig::jet.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setJetCorrectionScheme ( int  scheme)
inlineprotected

Definition at line 183 of file TtSemiEvtSolution.h.

References jetCorrScheme_.

Referenced by TtSemiEvtSolutionMaker::produce().

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

Definition at line 223 of file TtSemiEvtSolution.h.

References jetParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

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

Definition at line 190 of file TtSemiEvtSolution.h.

References i, metsig::jet, and lepb_.

Referenced by TtSemiEvtSolutionMaker::produce().

void TtSemiEvtSolution::setLeptonParametrisation ( int  lp)
inlineprotected

Definition at line 224 of file TtSemiEvtSolution.h.

References leptonParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

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

Definition at line 239 of file TtSemiEvtSolution.h.

References lrBestJetComb_.

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

Definition at line 241 of file TtSemiEvtSolution.h.

References lrJetCombLRval_.

Referenced by TtSemiLRJetCombCalc::operator()().

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

Definition at line 204 of file TtSemiEvtSolution.cc.

References lrJetCombVarVal_.

Referenced by TtSemiLRJetCombObservables::operator()().

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

Definition at line 242 of file TtSemiEvtSolution.h.

References lrJetCombProb_.

Referenced by TtSemiLRJetCombCalc::operator()().

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

Definition at line 248 of file TtSemiEvtSolution.h.

References lrSignalEvtLRval_.

Referenced by TtSemiLRSignalSelCalc::operator()().

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

Definition at line 213 of file TtSemiEvtSolution.cc.

References lrSignalEvtVarVal_.

Referenced by TtSemiLRSignalSelObservables::operator()().

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

Definition at line 249 of file TtSemiEvtSolution.h.

Referenced by TtSemiLRSignalSelCalc::operator()().

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

Definition at line 215 of file TtSemiEvtSolution.h.

References angleHadb_.

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

Definition at line 213 of file TtSemiEvtSolution.h.

References angleHadp_.

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

Definition at line 214 of file TtSemiEvtSolution.h.

References angleHadq_.

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

Definition at line 216 of file TtSemiEvtSolution.h.

References angleLepb_.

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

Definition at line 237 of file TtSemiEvtSolution.h.

References mcBestJetComb_.

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

Definition at line 212 of file TtSemiEvtSolution.h.

References sumAnglejp_.

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

Definition at line 217 of file TtSemiEvtSolution.h.

References changeWQ_.

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

Definition at line 192 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

Definition at line 196 of file TtSemiEvtSolution.h.

References i, CaloMET_cfi::met, and neutrino_.

Referenced by TtSemiEvtSolutionMaker::produce().

int i
Definition: DBlmapReader.cc:9
edm::Ptr< pat::MET > neutrino_
void TtSemiEvtSolution::setNeutrinoParametrisation ( int  mp)
inlineprotected

Definition at line 225 of file TtSemiEvtSolution.h.

References neutrinoParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

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

Definition at line 231 of file TtSemiEvtSolution.h.

References trackerHits::c, and probChi2_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

231 { probChi2_ = c; };
void TtSemiEvtSolution::setSimpleBestJetComb ( int  sbs)
inlineprotected

Definition at line 238 of file TtSemiEvtSolution.h.

References simpleBestJetComb_.

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

Definition at line 220 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().

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

friend class TtSemiLepHitFit
friend

Definition at line 36 of file TtSemiEvtSolution.h.

friend class TtSemiLepKinFitter
friend

Definition at line 35 of file TtSemiEvtSolution.h.

friend class TtSemiLRJetCombCalc
friend

Definition at line 40 of file TtSemiEvtSolution.h.

friend class TtSemiLRJetCombObservables
friend

Definition at line 39 of file TtSemiEvtSolution.h.

friend class TtSemiLRSignalSelCalc
friend

Definition at line 38 of file TtSemiEvtSolution.h.

friend class TtSemiLRSignalSelObservables
friend

Definition at line 37 of file TtSemiEvtSolution.h.

Member Data Documentation

double TtSemiEvtSolution::angleHadb_
private

Definition at line 274 of file TtSemiEvtSolution.h.

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

double TtSemiEvtSolution::angleHadp_
private

Definition at line 274 of file TtSemiEvtSolution.h.

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

double TtSemiEvtSolution::angleHadq_
private

Definition at line 274 of file TtSemiEvtSolution.h.

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

double TtSemiEvtSolution::angleLepb_
private

Definition at line 274 of file TtSemiEvtSolution.h.

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

int TtSemiEvtSolution::changeWQ_
private

Definition at line 275 of file TtSemiEvtSolution.h.

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

std::string TtSemiEvtSolution::decay_
private

Definition at line 272 of file TtSemiEvtSolution.h.

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

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

Definition at line 261 of file TtSemiEvtSolution.h.

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

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

Definition at line 263 of file TtSemiEvtSolution.h.

Referenced by getFitHadb(), and setFitHadb().

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

Definition at line 263 of file TtSemiEvtSolution.h.

Referenced by getFitHadp(), and setFitHadp().

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

Definition at line 263 of file TtSemiEvtSolution.h.

Referenced by getFitHadq(), and setFitHadq().

reco::CompositeCandidate TtSemiEvtSolution::fitHyp_
private

Definition at line 268 of file TtSemiEvtSolution.h.

Referenced by getFitHyp().

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

Definition at line 264 of file TtSemiEvtSolution.h.

Referenced by getFitLepb(), and setFitLepb().

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

Definition at line 264 of file TtSemiEvtSolution.h.

Referenced by getFitLepl(), and setFitLepl().

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

Definition at line 264 of file TtSemiEvtSolution.h.

Referenced by getFitLepn(), and setFitLepn().

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

Definition at line 259 of file TtSemiEvtSolution.h.

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

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

Definition at line 259 of file TtSemiEvtSolution.h.

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

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

Definition at line 259 of file TtSemiEvtSolution.h.

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

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

Definition at line 276 of file TtSemiEvtSolution.h.

Referenced by getJetParametrisation(), and setJetParametrisation().

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

Definition at line 259 of file TtSemiEvtSolution.h.

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

int TtSemiEvtSolution::leptonParam_
private

Definition at line 276 of file TtSemiEvtSolution.h.

Referenced by getLeptonParametrisation(), and setLeptonParametrisation().

int TtSemiEvtSolution::lrBestJetComb_
private

Definition at line 278 of file TtSemiEvtSolution.h.

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

double TtSemiEvtSolution::lrJetCombLRval_
private

Definition at line 279 of file TtSemiEvtSolution.h.

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

double TtSemiEvtSolution::lrJetCombProb_
private

Definition at line 279 of file TtSemiEvtSolution.h.

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

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

Definition at line 281 of file TtSemiEvtSolution.h.

Referenced by getLRJetCombObsVal(), and setLRJetCombObservables().

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

Definition at line 280 of file TtSemiEvtSolution.h.

Referenced by getLRSignalEvtProb(), and TtSemiEvtSolution().

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

Definition at line 282 of file TtSemiEvtSolution.h.

Referenced by getLRSignalEvtObsVal(), and setLRSignalEvtObservables().

int TtSemiEvtSolution::mcBestJetComb_
private

Definition at line 278 of file TtSemiEvtSolution.h.

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

reco::CompositeCandidate TtSemiEvtSolution::mcHyp_
private

Definition at line 266 of file TtSemiEvtSolution.h.

Referenced by getMCHyp().

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

Definition at line 260 of file TtSemiEvtSolution.h.

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

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

Definition at line 262 of file TtSemiEvtSolution.h.

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

int TtSemiEvtSolution::neutrinoParam_
private

Definition at line 276 of file TtSemiEvtSolution.h.

Referenced by getNeutrinoParametrisation(), and setNeutrinoParametrisation().

double TtSemiEvtSolution::probChi2_
private

Definition at line 277 of file TtSemiEvtSolution.h.

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

reco::CompositeCandidate TtSemiEvtSolution::recoHyp_
private

Definition at line 267 of file TtSemiEvtSolution.h.

Referenced by getRecoHyp(), and setupHyp().

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

Definition at line 274 of file TtSemiEvtSolution.h.

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

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