CMS 3D CMS Logo

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::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_.

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

◆ ~TtSemiEvtSolution()

TtSemiEvtSolution::~TtSemiEvtSolution ( )
virtual

Definition at line 28 of file TtSemiEvtSolution.cc.

28 {}

Member Function Documentation

◆ getCalHadb()

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

Definition at line 138 of file TtSemiEvtSolution.h.

References getHadb().

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

138 { return this->getHadb(); };
pat::Jet getHadb() const

◆ getCalHadp()

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

Definition at line 139 of file TtSemiEvtSolution.h.

References getHadp().

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

139 { return this->getHadp(); };
pat::Jet getHadp() const

◆ getCalHadq()

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

Definition at line 140 of file TtSemiEvtSolution.h.

References getHadq().

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

140 { return this->getHadq(); };
pat::Jet getHadq() const

◆ getCalHadt()

reco::Particle TtSemiEvtSolution::getCalHadt ( ) const

Definition at line 112 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

112  {
113  return reco::Particle(0, this->getCalHadp().p4() + this->getCalHadq().p4() + this->getCalHadb().p4());
114 }
pat::Jet getCalHadb() const
pat::Jet getCalHadp() const
pat::Jet getCalHadq() const

◆ getCalHadW()

reco::Particle TtSemiEvtSolution::getCalHadW ( ) const

Definition at line 116 of file TtSemiEvtSolution.cc.

References getCalHadp(), and getCalHadq().

Referenced by TtSemiLRJetCombObservables::operator()().

116  {
117  return reco::Particle(0, this->getCalHadp().p4() + this->getCalHadq().p4());
118 }
pat::Jet getCalHadp() const
pat::Jet getCalHadq() const

◆ getCalLepb()

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

Definition at line 143 of file TtSemiEvtSolution.h.

References getLepb().

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

143 { return this->getLepb(); };
pat::Jet getLepb() const

◆ getCalLepe()

pat::Electron TtSemiEvtSolution::getCalLepe ( ) const
inline

Definition at line 145 of file TtSemiEvtSolution.h.

References getElectron().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

145 { return this->getElectron(); };
pat::Electron getElectron() const

◆ getCalLepm()

pat::Muon TtSemiEvtSolution::getCalLepm ( ) const
inline

Definition at line 144 of file TtSemiEvtSolution.h.

References getMuon().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

144 { return this->getMuon(); };
pat::Muon getMuon() const

◆ getCalLepn()

pat::MET TtSemiEvtSolution::getCalLepn ( ) const
inline

Definition at line 146 of file TtSemiEvtSolution.h.

References getNeutrino().

Referenced by TtSemiLepKinFitter::addKinFitInfo().

146 { return this->getNeutrino(); };
pat::MET getNeutrino() const

◆ getCalLept()

reco::Particle TtSemiEvtSolution::getCalLept ( ) const

Definition at line 120 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

120  {
122  if (this->getDecay() == "muon")
123  p = reco::Particle(0, this->getRecLepm().p4() + this->getRecLepn().p4() + this->getCalLepb().p4());
124  if (this->getDecay() == "electron")
125  p = reco::Particle(0, this->getRecLepe().p4() + this->getRecLepn().p4() + this->getCalLepb().p4());
126  return p;
127 }
pat::MET getRecLepn() const
pat::Muon getRecLepm() const
pat::Electron getRecLepe() const
pat::Jet getCalLepb() const
std::string getDecay() const

◆ getCalLepW()

reco::Particle TtSemiEvtSolution::getCalLepW ( ) const

Definition at line 129 of file TtSemiEvtSolution.cc.

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

129  {
131  if (this->getDecay() == "muon")
132  p = reco::Particle(0, this->getRecLepm().p4() + this->getRecLepn().p4());
133  if (this->getDecay() == "electron")
134  p = reco::Particle(0, this->getRecLepe().p4() + this->getRecLepn().p4());
135  return p;
136 }
pat::MET getRecLepn() const
pat::Muon getRecLepm() const
pat::Electron getRecLepe() const
std::string getDecay() const

◆ getDecay()

std::string TtSemiEvtSolution::getDecay ( ) const
inline

◆ getElectron()

pat::Electron TtSemiEvtSolution::getElectron ( ) const
inline

Definition at line 52 of file TtSemiEvtSolution.h.

References electron_.

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

52 { return *electron_; };
edm::Ptr< pat::Electron > electron_

◆ getFitHadb()

pat::Particle TtSemiEvtSolution::getFitHadb ( ) const
inline

Definition at line 153 of file TtSemiEvtSolution.h.

References fitHadb_.

Referenced by getFitHadt().

153 { return (!fitHadb_.empty() ? fitHadb_.front() : pat::Particle()); };
std::vector< pat::Particle > fitHadb_
Analysis-level particle class.
Definition: Particle.h:30

◆ getFitHadp()

pat::Particle TtSemiEvtSolution::getFitHadp ( ) const
inline

Definition at line 154 of file TtSemiEvtSolution.h.

References fitHadp_.

Referenced by getFitHadt(), and getFitHadW().

154 { return (!fitHadp_.empty() ? fitHadp_.front() : pat::Particle()); };
Analysis-level particle class.
Definition: Particle.h:30
std::vector< pat::Particle > fitHadp_

◆ getFitHadq()

pat::Particle TtSemiEvtSolution::getFitHadq ( ) const
inline

Definition at line 155 of file TtSemiEvtSolution.h.

References fitHadq_.

Referenced by getFitHadt(), and getFitHadW().

155 { return (!fitHadq_.empty() ? fitHadq_.front() : pat::Particle()); };
Analysis-level particle class.
Definition: Particle.h:30
std::vector< pat::Particle > fitHadq_

◆ getFitHadt()

reco::Particle TtSemiEvtSolution::getFitHadt ( ) const

Definition at line 141 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

141  {
142  // FIXME: provide the correct charge from generated event
143  return reco::Particle(0, this->getFitHadp().p4() + this->getFitHadq().p4() + this->getFitHadb().p4());
144 }
pat::Particle getFitHadp() const
pat::Particle getFitHadq() const
pat::Particle getFitHadb() const

◆ getFitHadW()

reco::Particle TtSemiEvtSolution::getFitHadW ( ) const

Definition at line 146 of file TtSemiEvtSolution.cc.

References getFitHadp(), and getFitHadq().

146  {
147  // FIXME: provide the correct charge from generated event
148  return reco::Particle(0, this->getFitHadp().p4() + this->getFitHadq().p4());
149 }
pat::Particle getFitHadp() const
pat::Particle getFitHadq() const

◆ getFitHyp()

const reco::CompositeCandidate& TtSemiEvtSolution::getFitHyp ( ) const
inline

Definition at line 214 of file TtSemiEvtSolution.h.

References fitHyp_.

214 { return fitHyp_; }
reco::CompositeCandidate fitHyp_

◆ getFitLepb()

pat::Particle TtSemiEvtSolution::getFitLepb ( ) const
inline

Definition at line 158 of file TtSemiEvtSolution.h.

References fitLepb_.

Referenced by getFitLept().

158 { return (!fitLepb_.empty() ? fitLepb_.front() : pat::Particle()); };
std::vector< pat::Particle > fitLepb_
Analysis-level particle class.
Definition: Particle.h:30

◆ getFitLepl()

pat::Particle TtSemiEvtSolution::getFitLepl ( ) const
inline

Definition at line 159 of file TtSemiEvtSolution.h.

References fitLepl_.

Referenced by getFitLept(), and getFitLepW().

159 { return (!fitLepl_.empty() ? fitLepl_.front() : pat::Particle()); };
Analysis-level particle class.
Definition: Particle.h:30
std::vector< pat::Particle > fitLepl_

◆ getFitLepn()

pat::Particle TtSemiEvtSolution::getFitLepn ( ) const
inline

Definition at line 160 of file TtSemiEvtSolution.h.

References fitLepn_.

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

160 { return (!fitLepn_.empty() ? fitLepn_.front() : pat::Particle()); };
std::vector< pat::Particle > fitLepn_
Analysis-level particle class.
Definition: Particle.h:30

◆ getFitLept()

reco::Particle TtSemiEvtSolution::getFitLept ( ) const

Definition at line 151 of file TtSemiEvtSolution.cc.

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

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
pat::Particle getFitLepl() const
pat::Particle getFitLepb() const

◆ getFitLepW()

reco::Particle TtSemiEvtSolution::getFitLepW ( ) const

Definition at line 156 of file TtSemiEvtSolution.cc.

References getFitLepl(), and getFitLepn().

156  {
157  // FIXME: provide the correct charge from generated event
158  return reco::Particle(0, this->getFitLepl().p4() + this->getFitLepn().p4());
159 }
pat::Particle getFitLepn() const
pat::Particle getFitLepl() const

◆ getGenEvent()

const edm::RefProd<TtGenEvent>& TtSemiEvtSolution::getGenEvent ( ) const
inline

Definition at line 58 of file TtSemiEvtSolution.h.

References theGenEvt_.

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

58 { return theGenEvt_; };
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenHadb()

const reco::GenParticle* TtSemiEvtSolution::getGenHadb ( ) const
inline

Definition at line 71 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::hadronicDecayB(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

71  {
72  if (!theGenEvt_)
73  return nullptr;
74  else
75  return this->getGenEvent()->hadronicDecayB();
76  };
const reco::GenParticle * hadronicDecayB(bool excludeTauLeptons=false) const
get b of hadronic decay branch
Definition: TtGenEvent.cc:181
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenHadp()

const reco::GenParticle* TtSemiEvtSolution::getGenHadp ( ) const
inline

Definition at line 77 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::hadronicDecayQuark(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

77  {
78  if (!theGenEvt_)
79  return nullptr;
80  else
81  return this->getGenEvent()->hadronicDecayQuark();
82  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
const reco::GenParticle * hadronicDecayQuark(bool invertFlavor=false) const
get light quark of hadronic decay branch
Definition: TtGenEvent.cc:153
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenHadq()

const reco::GenParticle* TtSemiEvtSolution::getGenHadq ( ) const
inline

Definition at line 83 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::hadronicDecayQuarkBar(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

83  {
84  if (!theGenEvt_)
85  return nullptr;
86  else
87  return this->getGenEvent()->hadronicDecayQuarkBar();
88  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
const reco::GenParticle * hadronicDecayQuarkBar() const
get light anti-quark of hadronic decay branch
Definition: TtGenEvent.h:78
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenHadt()

const reco::GenParticle* TtSemiEvtSolution::getGenHadt ( ) const
inline

Definition at line 59 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::hadronicDecayTop(), and theGenEvt_.

59  {
60  if (!theGenEvt_)
61  return nullptr;
62  else
63  return this->getGenEvent()->hadronicDecayTop();
64  };
const reco::GenParticle * hadronicDecayTop(bool excludeTauLeptons=false) const
get top of hadronic decay branch
Definition: TtGenEvent.cc:212
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenHadW()

const reco::GenParticle* TtSemiEvtSolution::getGenHadW ( ) const
inline

Definition at line 65 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::hadronicDecayW(), and theGenEvt_.

65  {
66  if (!theGenEvt_)
67  return nullptr;
68  else
69  return this->getGenEvent()->hadronicDecayW();
70  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
const reco::GenParticle * hadronicDecayW(bool excludeTauLeptons=false) const
get W of hadronic decay branch
Definition: TtGenEvent.cc:196
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenLepb()

const reco::GenParticle* TtSemiEvtSolution::getGenLepb ( ) const
inline

Definition at line 101 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::leptonicDecayB(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

101  {
102  if (!theGenEvt_)
103  return nullptr;
104  else
105  return this->getGenEvent()->leptonicDecayB();
106  };
const reco::GenParticle * leptonicDecayB(bool excludeTauLeptons=false) const
get b of leptonic decay branch
Definition: TtGenEvent.cc:227
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenLepl()

const reco::GenParticle* TtSemiEvtSolution::getGenLepl ( ) const
inline

Definition at line 107 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::singleLepton(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

107  {
108  if (!theGenEvt_)
109  return nullptr;
110  else
111  return this->getGenEvent()->singleLepton();
112  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
const reco::GenParticle * singleLepton(bool excludeTauLeptons=false) const
return single lepton if available; 0 else
Definition: TtGenEvent.cc:97
edm::RefProd< TtGenEvent > theGenEvt_

◆ getGenLepn()

const reco::GenParticle* TtSemiEvtSolution::getGenLepn ( ) const
inline

Definition at line 113 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::singleNeutrino(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

113  {
114  if (!theGenEvt_)
115  return nullptr;
116  else
117  return this->getGenEvent()->singleNeutrino();
118  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle * singleNeutrino(bool excludeTauLeptons=false) const
return single neutrino if available; 0 else
Definition: TtGenEvent.cc:139

◆ getGenLept()

const reco::GenParticle* TtSemiEvtSolution::getGenLept ( ) const
inline

Definition at line 89 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::leptonicDecayTop(), and theGenEvt_.

Referenced by TtSemiLRJetCombObservables::operator()().

89  {
90  if (!theGenEvt_)
91  return nullptr;
92  else
93  return this->getGenEvent()->leptonicDecayTop();
94  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle * leptonicDecayTop(bool excludeTauLeptons=false) const
get top of leptonic decay branch
Definition: TtGenEvent.cc:258

◆ getGenLepW()

const reco::GenParticle* TtSemiEvtSolution::getGenLepW ( ) const
inline

Definition at line 95 of file TtSemiEvtSolution.h.

References getGenEvent(), TtGenEvent::leptonicDecayW(), and theGenEvt_.

95  {
96  if (!theGenEvt_)
97  return nullptr;
98  else
99  return this->getGenEvent()->leptonicDecayW();
100  };
const edm::RefProd< TtGenEvent > & getGenEvent() const
edm::RefProd< TtGenEvent > theGenEvt_
const reco::GenParticle * leptonicDecayW(bool excludeTauLeptons=false) const
get W of leptonic decay branch
Definition: TtGenEvent.cc:242

◆ getHadb()

pat::Jet TtSemiEvtSolution::getHadb ( ) const

Definition at line 33 of file TtSemiEvtSolution.cc.

References pat::Jet::correctedJet(), hadb_, and jetCorrScheme_.

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

33  {
34  // WARNING this is obsolete and only
35  // kept for backwards compatibility
36  if (jetCorrScheme_ == 1)
37  return hadb_->correctedJet("HAD", "B"); // calibrate jets according to MC truth
38  else if (jetCorrScheme_ == 2)
39  return hadb_->correctedJet("HAD", "B");
40  else
41  return *hadb_;
42 }
edm::Ptr< pat::Jet > hadb_
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const

◆ getHadp()

pat::Jet TtSemiEvtSolution::getHadp ( ) const

Definition at line 44 of file TtSemiEvtSolution.cc.

References pat::Jet::correctedJet(), hadp_, and jetCorrScheme_.

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

44  {
45  // WARNING this is obsolete and only
46  // kept for backwards compatibility
47  if (jetCorrScheme_ == 1)
48  return hadp_->correctedJet("HAD", "UDS"); // calibrate jets according to MC truth
49  else if (jetCorrScheme_ == 2)
50  return hadp_->correctedJet("HAD", "UDS");
51  else
52  return *hadp_;
53 }
edm::Ptr< pat::Jet > hadp_
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const

◆ getHadq()

pat::Jet TtSemiEvtSolution::getHadq ( ) const

Definition at line 55 of file TtSemiEvtSolution.cc.

References pat::Jet::correctedJet(), hadq_, and jetCorrScheme_.

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

55  {
56  // WARNING this is obsolete and only
57  // kept for backwards compatibility
58  if (jetCorrScheme_ == 1)
59  return hadq_->correctedJet("HAD", "UDS"); // calibrate jets according to MC truth
60  else if (jetCorrScheme_ == 2)
61  return hadq_->correctedJet("HAD", "UDS");
62  else
63  return *hadq_;
64 }
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
edm::Ptr< pat::Jet > hadq_

◆ getJetParametrisation()

int TtSemiEvtSolution::getJetParametrisation ( ) const
inline

Definition at line 181 of file TtSemiEvtSolution.h.

References jetParam_.

181 { return jetParam_; }

◆ getLepb()

pat::Jet TtSemiEvtSolution::getLepb ( ) const

Definition at line 66 of file TtSemiEvtSolution.cc.

References pat::Jet::correctedJet(), 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)
70  return lepb_->correctedJet("HAD", "B"); // calibrate jets according to MC truth
71  else if (jetCorrScheme_ == 2)
72  return lepb_->correctedJet("HAD", "B");
73  else
74  return *lepb_;
75 }
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
edm::Ptr< pat::Jet > lepb_

◆ getLeptonParametrisation()

int TtSemiEvtSolution::getLeptonParametrisation ( ) const
inline

Definition at line 182 of file TtSemiEvtSolution.h.

References leptonParam_.

182 { return leptonParam_; }

◆ getLRBestJetComb()

int TtSemiEvtSolution::getLRBestJetComb ( ) const
inline

Definition at line 205 of file TtSemiEvtSolution.h.

References lrBestJetComb_.

205 { return lrBestJetComb_; }

◆ getLRJetCombLRval()

double TtSemiEvtSolution::getLRJetCombLRval ( ) const
inline

Definition at line 207 of file TtSemiEvtSolution.h.

References lrJetCombLRval_.

207 { return lrJetCombLRval_; }

◆ getLRJetCombObsVal()

double TtSemiEvtSolution::getLRJetCombObsVal ( unsigned int  selObs) const

Definition at line 178 of file TtSemiEvtSolution.cc.

References dqmdumpme::first, lrJetCombVarVal_, EcalTangentSkim_cfg::o, and heppy_batch::val.

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

◆ getLRJetCombProb()

double TtSemiEvtSolution::getLRJetCombProb ( ) const
inline

Definition at line 208 of file TtSemiEvtSolution.h.

References lrJetCombProb_.

208 { return lrJetCombProb_; }

◆ getLRSignalEvtLRval()

double TtSemiEvtSolution::getLRSignalEvtLRval ( ) const
inline

Definition at line 196 of file TtSemiEvtSolution.h.

References lrSignalEvtLRval_.

196 { return lrSignalEvtLRval_; }

◆ getLRSignalEvtObsVal()

double TtSemiEvtSolution::getLRSignalEvtObsVal ( unsigned int  selObs) const

Definition at line 165 of file TtSemiEvtSolution.cc.

References dqmdumpme::first, lrSignalEvtVarVal_, EcalTangentSkim_cfg::o, and heppy_batch::val.

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

◆ getLRSignalEvtProb()

double TtSemiEvtSolution::getLRSignalEvtProb ( ) const
inline

Definition at line 197 of file TtSemiEvtSolution.h.

References lrSignalEvtProb_.

197 { return lrSignalEvtProb_; }

◆ getMCBestAngleHadb()

double TtSemiEvtSolution::getMCBestAngleHadb ( ) const
inline

Definition at line 173 of file TtSemiEvtSolution.h.

References angleHadb_.

173 { return angleHadb_; };

◆ getMCBestAngleHadp()

double TtSemiEvtSolution::getMCBestAngleHadp ( ) const
inline

Definition at line 171 of file TtSemiEvtSolution.h.

References angleHadp_.

171 { return angleHadp_; };

◆ getMCBestAngleHadq()

double TtSemiEvtSolution::getMCBestAngleHadq ( ) const
inline

Definition at line 172 of file TtSemiEvtSolution.h.

References angleHadq_.

172 { return angleHadq_; };

◆ getMCBestAngleLepb()

double TtSemiEvtSolution::getMCBestAngleLepb ( ) const
inline

Definition at line 174 of file TtSemiEvtSolution.h.

References angleLepb_.

174 { return angleLepb_; };

◆ getMCBestJetComb()

int TtSemiEvtSolution::getMCBestJetComb ( ) const
inline

Definition at line 203 of file TtSemiEvtSolution.h.

References mcBestJetComb_.

203 { return mcBestJetComb_; }

◆ getMCBestSumAngles()

double TtSemiEvtSolution::getMCBestSumAngles ( ) const
inline

Definition at line 170 of file TtSemiEvtSolution.h.

References sumAnglejp_.

170 { return sumAnglejp_; };

◆ getMCChangeWQ()

int TtSemiEvtSolution::getMCChangeWQ ( ) const
inline

Definition at line 175 of file TtSemiEvtSolution.h.

References changeWQ_.

175 { return changeWQ_; };

◆ getMCHyp()

const reco::CompositeCandidate& TtSemiEvtSolution::getMCHyp ( ) const
inline

Definition at line 215 of file TtSemiEvtSolution.h.

References mcHyp_.

215 { return mcHyp_; }
reco::CompositeCandidate mcHyp_

◆ getMuon()

pat::Muon TtSemiEvtSolution::getMuon ( ) const
inline

Definition at line 51 of file TtSemiEvtSolution.h.

References muon_.

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

51 { return *muon_; };
edm::Ptr< pat::Muon > muon_

◆ getNeutrino()

pat::MET TtSemiEvtSolution::getNeutrino ( ) const
inline

Definition at line 53 of file TtSemiEvtSolution.h.

References neutrino_.

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

53 { return *neutrino_; };
edm::Ptr< pat::MET > neutrino_

◆ getNeutrinoParametrisation()

int TtSemiEvtSolution::getNeutrinoParametrisation ( ) const
inline

Definition at line 183 of file TtSemiEvtSolution.h.

References neutrinoParam_.

183 { return neutrinoParam_; }

◆ getProbChi2()

double TtSemiEvtSolution::getProbChi2 ( ) const
inline

Definition at line 189 of file TtSemiEvtSolution.h.

References probChi2_.

Referenced by TtSemiLRJetCombObservables::operator()().

189 { return probChi2_; }

◆ getRecHadb()

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

Definition at line 125 of file TtSemiEvtSolution.h.

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

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

125 { 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

◆ getRecHadp()

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

Definition at line 126 of file TtSemiEvtSolution.h.

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

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

126 { 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

◆ getRecHadq()

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

Definition at line 127 of file TtSemiEvtSolution.h.

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

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

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

◆ getRecHadt()

reco::Particle TtSemiEvtSolution::getRecHadt ( ) const

Definition at line 80 of file TtSemiEvtSolution.cc.

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

80  {
81  // FIXME: the charge from the genevent
82  return reco::Particle(0, this->getRecHadp().p4() + this->getRecHadq().p4() + this->getRecHadb().p4());
83 }
pat::Jet getRecHadp() const
pat::Jet getRecHadb() const
pat::Jet getRecHadq() const

◆ getRecHadW()

reco::Particle TtSemiEvtSolution::getRecHadW ( ) const

Definition at line 85 of file TtSemiEvtSolution.cc.

References getRecHadp(), and getRecHadq().

85  {
86  // FIXME: the charge from the genevent
87  return reco::Particle(0, this->getRecHadp().p4() + this->getRecHadq().p4());
88 }
pat::Jet getRecHadp() const
pat::Jet getRecHadq() const

◆ getRecLepb()

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

Definition at line 130 of file TtSemiEvtSolution.h.

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

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

130 { 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

◆ getRecLepe()

pat::Electron TtSemiEvtSolution::getRecLepe ( ) const
inline

Definition at line 132 of file TtSemiEvtSolution.h.

References getElectron().

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

132 { return this->getElectron(); };
pat::Electron getElectron() const

◆ getRecLepm()

pat::Muon TtSemiEvtSolution::getRecLepm ( ) const
inline

Definition at line 131 of file TtSemiEvtSolution.h.

References getMuon().

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

131 { return this->getMuon(); };
pat::Muon getMuon() const

◆ getRecLepn()

pat::MET TtSemiEvtSolution::getRecLepn ( ) const
inline

Definition at line 133 of file TtSemiEvtSolution.h.

References getNeutrino().

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

133 { return this->getNeutrino(); };
pat::MET getNeutrino() const

◆ getRecLept()

reco::Particle TtSemiEvtSolution::getRecLept ( ) const

Definition at line 90 of file TtSemiEvtSolution.cc.

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

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

◆ getRecLepW()

reco::Particle TtSemiEvtSolution::getRecLepW ( ) const

Definition at line 100 of file TtSemiEvtSolution.cc.

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

Referenced by TtSemiLRJetCombObservables::operator()().

100  {
101  // FIXME: the charge from the genevent
103  if (this->getDecay() == "muon")
104  p = reco::Particle(0, this->getRecLepm().p4() + this->getRecLepn().p4());
105  if (this->getDecay() == "electron")
106  p = reco::Particle(0, this->getRecLepe().p4() + this->getRecLepn().p4());
107  return p;
108 }
pat::MET getRecLepn() const
pat::Muon getRecLepm() const
pat::Electron getRecLepe() const
std::string getDecay() const

◆ getRecoHyp()

const reco::CompositeCandidate& TtSemiEvtSolution::getRecoHyp ( ) const
inline

Definition at line 213 of file TtSemiEvtSolution.h.

References recoHyp_.

213 { return recoHyp_; }
reco::CompositeCandidate recoHyp_

◆ getSimpleBestJetComb()

int TtSemiEvtSolution::getSimpleBestJetComb ( ) const
inline

Definition at line 204 of file TtSemiEvtSolution.h.

References simpleBestJetComb_.

204 { return simpleBestJetComb_; }

◆ setElectron()

void TtSemiEvtSolution::setElectron ( const edm::Handle< std::vector< pat::Electron > > &  elec,
int  i 
)
inlineprotected

Definition at line 235 of file TtSemiEvtSolution.h.

References decay_, electron_, and mps_fire::i.

Referenced by TtSemiEvtSolutionMaker::produce().

235  {
237  decay_ = "electron";
238  };
edm::Ptr< pat::Electron > electron_

◆ setFitHadb()

void TtSemiEvtSolution::setFitHadb ( const pat::Particle aFitHadb)
inlineprotected

Definition at line 244 of file TtSemiEvtSolution.h.

References fitHadb_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

244  {
245  fitHadb_.clear();
246  fitHadb_.push_back(aFitHadb);
247  };
std::vector< pat::Particle > fitHadb_

◆ setFitHadp()

void TtSemiEvtSolution::setFitHadp ( const pat::Particle aFitHadp)
inlineprotected

Definition at line 248 of file TtSemiEvtSolution.h.

References fitHadp_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

248  {
249  fitHadp_.clear();
250  fitHadp_.push_back(aFitHadp);
251  };
std::vector< pat::Particle > fitHadp_

◆ setFitHadq()

void TtSemiEvtSolution::setFitHadq ( const pat::Particle aFitHadq)
inlineprotected

Definition at line 252 of file TtSemiEvtSolution.h.

References fitHadq_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

252  {
253  fitHadq_.clear();
254  fitHadq_.push_back(aFitHadq);
255  };
std::vector< pat::Particle > fitHadq_

◆ setFitLepb()

void TtSemiEvtSolution::setFitLepb ( const pat::Particle aFitLepb)
inlineprotected

Definition at line 256 of file TtSemiEvtSolution.h.

References fitLepb_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

256  {
257  fitLepb_.clear();
258  fitLepb_.push_back(aFitLepb);
259  };
std::vector< pat::Particle > fitLepb_

◆ setFitLepl()

void TtSemiEvtSolution::setFitLepl ( const pat::Particle aFitLepl)
inlineprotected

Definition at line 260 of file TtSemiEvtSolution.h.

References fitLepl_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

260  {
261  fitLepl_.clear();
262  fitLepl_.push_back(aFitLepl);
263  };
std::vector< pat::Particle > fitLepl_

◆ setFitLepn()

void TtSemiEvtSolution::setFitLepn ( const pat::Particle aFitLepn)
inlineprotected

Definition at line 264 of file TtSemiEvtSolution.h.

References fitLepn_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

264  {
265  fitLepn_.clear();
266  fitLepn_.push_back(aFitLepn);
267  };
std::vector< pat::Particle > fitLepn_

◆ setGenEvt()

void TtSemiEvtSolution::setGenEvt ( const edm::Handle< TtGenEvent > &  aGenEvt)
protected

Definition at line 190 of file TtSemiEvtSolution.cc.

References TtGenEvent::isSemiLeptonic(), and theGenEvt_.

Referenced by TtSemiEvtSolutionMaker::produce().

190  {
191  if (!aGenEvt->isSemiLeptonic()) {
192  edm::LogWarning("TtGenEventNotFilled") << "genEvt is not semi-leptonic; TtGenEvent is not filled";
193  return;
194  }
196 }
bool isSemiLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as semi-laptonic
Definition: TtGenEvent.h:38
edm::RefProd< TtGenEvent > theGenEvt_
Log< level::Warning, false > LogWarning

◆ setHadb()

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

◆ setHadp()

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

◆ setHadq()

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

◆ setJetCorrectionScheme()

void TtSemiEvtSolution::setJetCorrectionScheme ( int  scheme)
inlineprotected

◆ setJetParametrisation()

void TtSemiEvtSolution::setJetParametrisation ( int  jp)
inlineprotected

Definition at line 283 of file TtSemiEvtSolution.h.

References jetParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

283 { jetParam_ = jp; };

◆ setLepb()

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

◆ setLeptonParametrisation()

void TtSemiEvtSolution::setLeptonParametrisation ( int  lp)
inlineprotected

Definition at line 284 of file TtSemiEvtSolution.h.

References leptonParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

284 { leptonParam_ = lp; };

◆ setLRBestJetComb()

void TtSemiEvtSolution::setLRBestJetComb ( int  lrbs)
inlineprotected

Definition at line 299 of file TtSemiEvtSolution.h.

References lrBestJetComb_.

299 { lrBestJetComb_ = lrbs; };

◆ setLRJetCombLRval()

void TtSemiEvtSolution::setLRJetCombLRval ( double  clr)
inlineprotected

Definition at line 301 of file TtSemiEvtSolution.h.

References lrJetCombLRval_.

301 { lrJetCombLRval_ = clr; };

◆ setLRJetCombObservables()

void TtSemiEvtSolution::setLRJetCombObservables ( const std::vector< std::pair< unsigned int, double > > &  varval)
protected

Definition at line 202 of file TtSemiEvtSolution.cc.

References lrJetCombVarVal_.

Referenced by TtSemiLRJetCombObservables::operator()().

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

◆ setLRJetCombProb()

void TtSemiEvtSolution::setLRJetCombProb ( double  plr)
inlineprotected

Definition at line 302 of file TtSemiEvtSolution.h.

References lrJetCombProb_.

302 { lrJetCombProb_ = plr; };

◆ setLRSignalEvtLRval()

void TtSemiEvtSolution::setLRSignalEvtLRval ( double  clr)
inlineprotected

Definition at line 308 of file TtSemiEvtSolution.h.

References lrSignalEvtLRval_.

308 { lrSignalEvtLRval_ = clr; };

◆ setLRSignalEvtObservables()

void TtSemiEvtSolution::setLRSignalEvtObservables ( const std::vector< std::pair< unsigned int, double > > &  varval)
protected

Definition at line 211 of file TtSemiEvtSolution.cc.

References lrSignalEvtVarVal_.

Referenced by TtSemiLRSignalSelObservables::operator()().

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

◆ setLRSignalEvtProb()

void TtSemiEvtSolution::setLRSignalEvtProb ( double  plr)
inlineprotected

Definition at line 309 of file TtSemiEvtSolution.h.

309 { lrSignalEvtProb_ = plr; };

◆ setMCBestAngleHadb()

void TtSemiEvtSolution::setMCBestAngleHadb ( double  adr)
inlineprotected

Definition at line 275 of file TtSemiEvtSolution.h.

References angleHadb_.

275 { angleHadb_ = adr; };

◆ setMCBestAngleHadp()

void TtSemiEvtSolution::setMCBestAngleHadp ( double  adr)
inlineprotected

Definition at line 273 of file TtSemiEvtSolution.h.

References angleHadp_.

273 { angleHadp_ = adr; };

◆ setMCBestAngleHadq()

void TtSemiEvtSolution::setMCBestAngleHadq ( double  adr)
inlineprotected

Definition at line 274 of file TtSemiEvtSolution.h.

References angleHadq_.

274 { angleHadq_ = adr; };

◆ setMCBestAngleLepb()

void TtSemiEvtSolution::setMCBestAngleLepb ( double  adr)
inlineprotected

Definition at line 276 of file TtSemiEvtSolution.h.

References angleLepb_.

276 { angleLepb_ = adr; };

◆ setMCBestJetComb()

void TtSemiEvtSolution::setMCBestJetComb ( int  mcbs)
inlineprotected

Definition at line 297 of file TtSemiEvtSolution.h.

References mcBestJetComb_.

297 { mcBestJetComb_ = mcbs; };

◆ setMCBestSumAngles()

void TtSemiEvtSolution::setMCBestSumAngles ( double  sdr)
inlineprotected

Definition at line 272 of file TtSemiEvtSolution.h.

References sumAnglejp_.

272 { sumAnglejp_ = sdr; };

◆ setMCChangeWQ()

void TtSemiEvtSolution::setMCChangeWQ ( int  wq)
inlineprotected

Definition at line 277 of file TtSemiEvtSolution.h.

References changeWQ_.

277 { changeWQ_ = wq; };

◆ setMuon()

void TtSemiEvtSolution::setMuon ( const edm::Handle< std::vector< pat::Muon > > &  muon,
int  i 
)
inlineprotected

Definition at line 231 of file TtSemiEvtSolution.h.

References decay_, mps_fire::i, HLT_2024v13_cff::muon, and muon_.

Referenced by TtSemiEvtSolutionMaker::produce().

231  {
233  decay_ = "muon";
234  };
edm::Ptr< pat::Muon > muon_

◆ setNeutrino()

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

◆ setNeutrinoParametrisation()

void TtSemiEvtSolution::setNeutrinoParametrisation ( int  mp)
inlineprotected

Definition at line 285 of file TtSemiEvtSolution.h.

References neutrinoParam_.

Referenced by TtSemiEvtSolutionMaker::produce().

285 { neutrinoParam_ = mp; };

◆ setProbChi2()

void TtSemiEvtSolution::setProbChi2 ( double  c)
inlineprotected

Definition at line 291 of file TtSemiEvtSolution.h.

References DummyCfis::c, and probChi2_.

Referenced by TtSemiLepKinFitter::addKinFitInfo().

291 { probChi2_ = c; };

◆ setSimpleBestJetComb()

void TtSemiEvtSolution::setSimpleBestJetComb ( int  sbs)
inlineprotected

Definition at line 298 of file TtSemiEvtSolution.h.

References simpleBestJetComb_.

298 { simpleBestJetComb_ = sbs; };

◆ setupHyp()

void TtSemiEvtSolution::setupHyp ( )
private

Definition at line 217 of file TtSemiEvtSolution.cc.

References reco::CompositeCandidate::addDaughter(), reco::LeafCandidate::charge(), reco::CompositeCandidate::clearDaughters(), reco::CompositeCandidate::clearRoles(), HPSPFTauProducerPuppi_cfi::electron, electron_, getDecay(), hadb_, hadp_, hadq_, lepb_, HLT_2024v13_cff::muon, muon_, neutrino_, reco::LeafCandidate::p4(), reco::GsfElectron::p4(), recoHyp_, AddFourMomenta::set(), and reco::LeafCandidate::vertex().

217  {
218  AddFourMomenta addFourMomenta;
219 
222 
223  // Setup transient references
224  reco::CompositeCandidate recHadt;
225  reco::CompositeCandidate recLept;
226  reco::CompositeCandidate recHadW;
227  reco::CompositeCandidate recLepW;
228 
229  // Get refs to leaf nodes
234 
236 
237  // JetCandRef hadp( hadp_->p4(), hadp_->charge(), hadp_->vertex()); hadp.setRef( hadp_ );
238  // JetCandRef hadq( hadq_->p4(), hadq_->charge(), hadq_->vertex()); hadq.setRef( hadq_ );
239  // JetCandRef hadb( hadb_->p4(), hadb_->charge(), hadb_->vertex()); hadb.setRef( hadb_ );
240  // JetCandRef lepb( lepb_->p4(), lepb_->charge(), lepb_->vertex()); lepb.setRef( lepb_ );
241 
242  // METCandRef neutrino ( neutrino_->p4(), neutrino_->charge(), neutrino_->vertex() ); neutrino.setRef( neutrino_ );
243 
244  recHadW.addDaughter(hadp, "hadp");
245  recHadW.addDaughter(hadq, "hadq");
246 
247  addFourMomenta.set(recHadW);
248 
249  recHadt.addDaughter(hadb, "hadb");
250  recHadt.addDaughter(recHadW, "hadW");
251 
252  addFourMomenta.set(recHadt);
253 
254  recLepW.addDaughter(neutrino, "neutrino");
255  if (getDecay() == "electron") {
257  // ElectronCandRef electron ( electron_->p4(), electron_->charge(), electron_->vertex() ); electron.setRef( electron_ );
258  recLepW.addDaughter(electron, "electron");
259  } else if (getDecay() == "muon") {
261  // MuonCandRef muon ( muon_->p4(), muon_->charge(), muon_->vertex() ); muon.setRef( muon_ );
262  recLepW.addDaughter(muon, "muon");
263  }
264 
265  addFourMomenta.set(recLepW);
266 
267  recLept.addDaughter(lepb, "lepb");
268  recLept.addDaughter(recLepW, "lepW");
269 
270  addFourMomenta.set(recLept);
271 
272  recoHyp_.addDaughter(recHadt, "hadt");
273  recoHyp_.addDaughter(recLept, "lept");
274 
275  addFourMomenta.set(recoHyp_);
276 
277  // // Setup transient references
278  // reco::CompositeCandidate fitHadt;
279  // reco::CompositeCandidate fitLept;
280  // reco::CompositeCandidate fitHadW;
281  // reco::CompositeCandidate fitLepW;
282 
283  // // Get refs to leaf nodes
284  // pat::Particle afitHadp = getFitHadp();
285  // pat::Particle afitHadq = getFitHadq();
286  // pat::Particle afitHadb = getFitHadb();
287  // pat::Particle afitLepb = getFitLepb();
288  // reco::ShallowClonePtrCandidate fitHadp( hadp_, afitHadp.charge(), afitHadp.p4(), afitHadp.vertex());
289  // reco::ShallowClonePtrCandidate fitHadq( hadq_, afitHadq.charge(), afitHadq.p4(), afitHadq.vertex());
290  // reco::ShallowClonePtrCandidate fitHadb( hadb_, afitHadb.charge(), afitHadb.p4(), afitHadb.vertex());
291  // reco::ShallowClonePtrCandidate fitLepb( lepb_, afitLepb.charge(), afitLepb.p4(), afitLepb.vertex());
292 
293  // reco::ShallowClonePtrCandidate fitNeutrino ( neutrino_, fitLepn_.charge(), fitLepn_.p4(), fitLepn_.vertex() );
294 
295  // fitHadW.addDaughter( fitHadp, "hadp" );
296  // fitHadW.addDaughter( fitHadq, "hadq" );
297  // fitHadt.addDaughter( fitHadb, "hadb" );
298  // fitHadt.addDaughter( fitHadW, "hadW" );
299 
300  // fitLepW.addDaughter( fitNeutrino,"neutrino" );
301 
302  // if ( getDecay() == "electron" ) {
303  // reco::ShallowClonePtrCandidate fitElectron ( electron_, electron_.charge(), electron_.p4(), electron_.vertex() );
304  // fitLepW.addDaughter ( fitElectron, "electron" );
305  // } else if ( getDecay() == "muon" ) {
306  // reco::ShallowClonePtrCandidate fitMuon ( muon_, muon_.charge(), muon_.p4(), muon_.vertex() );
307  // fitLepW.addDaughter ( fitMuon, "muon" );
308  // }
309  // fitLept.addDaughter( fitLepb, "lepb" );
310  // fitLept.addDaughter( fitLepW, "lepW" );
311 
312  // fitHyp_.addDaughter( fitHadt, "hadt" );
313  // fitHyp_.addDaughter( fitLept, "lept" );
314 }
void set(reco::Candidate &c) const
set up a candidate
const Point & vertex() const override
vertex position (overwritten by PF...)
const LorentzVector & p4() const final
four-momentum Lorentz vector
edm::Ptr< pat::Jet > hadb_
edm::Ptr< pat::Jet > hadp_
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:217
std::string getDecay() const
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_
int charge() const final
electric charge

Friends And Related Function Documentation

◆ TtSemiEvtSolutionMaker

friend class TtSemiEvtSolutionMaker
friend

Definition at line 32 of file TtSemiEvtSolution.h.

◆ TtSemiLepHitFit

friend class TtSemiLepHitFit
friend

Definition at line 34 of file TtSemiEvtSolution.h.

◆ TtSemiLepKinFitter

friend class TtSemiLepKinFitter
friend

Definition at line 33 of file TtSemiEvtSolution.h.

◆ TtSemiLRJetCombCalc

friend class TtSemiLRJetCombCalc
friend

Definition at line 38 of file TtSemiEvtSolution.h.

◆ TtSemiLRJetCombObservables

friend class TtSemiLRJetCombObservables
friend

Definition at line 37 of file TtSemiEvtSolution.h.

◆ TtSemiLRSignalSelCalc

friend class TtSemiLRSignalSelCalc
friend

Definition at line 36 of file TtSemiEvtSolution.h.

◆ TtSemiLRSignalSelObservables

friend class TtSemiLRSignalSelObservables
friend

Definition at line 35 of file TtSemiEvtSolution.h.

Member Data Documentation

◆ angleHadb_

double TtSemiEvtSolution::angleHadb_
private

Definition at line 331 of file TtSemiEvtSolution.h.

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

◆ angleHadp_

double TtSemiEvtSolution::angleHadp_
private

Definition at line 331 of file TtSemiEvtSolution.h.

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

◆ angleHadq_

double TtSemiEvtSolution::angleHadq_
private

Definition at line 331 of file TtSemiEvtSolution.h.

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

◆ angleLepb_

double TtSemiEvtSolution::angleLepb_
private

Definition at line 331 of file TtSemiEvtSolution.h.

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

◆ changeWQ_

int TtSemiEvtSolution::changeWQ_
private

Definition at line 332 of file TtSemiEvtSolution.h.

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

◆ decay_

std::string TtSemiEvtSolution::decay_
private

Definition at line 329 of file TtSemiEvtSolution.h.

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

◆ electron_

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

Definition at line 318 of file TtSemiEvtSolution.h.

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

◆ fitHadb_

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

Definition at line 320 of file TtSemiEvtSolution.h.

Referenced by getFitHadb(), and setFitHadb().

◆ fitHadp_

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

Definition at line 320 of file TtSemiEvtSolution.h.

Referenced by getFitHadp(), and setFitHadp().

◆ fitHadq_

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

Definition at line 320 of file TtSemiEvtSolution.h.

Referenced by getFitHadq(), and setFitHadq().

◆ fitHyp_

reco::CompositeCandidate TtSemiEvtSolution::fitHyp_
private

Definition at line 325 of file TtSemiEvtSolution.h.

Referenced by getFitHyp().

◆ fitLepb_

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

Definition at line 321 of file TtSemiEvtSolution.h.

Referenced by getFitLepb(), and setFitLepb().

◆ fitLepl_

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

Definition at line 321 of file TtSemiEvtSolution.h.

Referenced by getFitLepl(), and setFitLepl().

◆ fitLepn_

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

Definition at line 321 of file TtSemiEvtSolution.h.

Referenced by getFitLepn(), and setFitLepn().

◆ hadb_

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

Definition at line 316 of file TtSemiEvtSolution.h.

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

◆ hadp_

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

Definition at line 316 of file TtSemiEvtSolution.h.

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

◆ hadq_

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

Definition at line 316 of file TtSemiEvtSolution.h.

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

◆ jetCorrScheme_

int TtSemiEvtSolution::jetCorrScheme_
private

◆ jetParam_

int TtSemiEvtSolution::jetParam_
private

Definition at line 333 of file TtSemiEvtSolution.h.

Referenced by getJetParametrisation(), and setJetParametrisation().

◆ lepb_

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

Definition at line 316 of file TtSemiEvtSolution.h.

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

◆ leptonParam_

int TtSemiEvtSolution::leptonParam_
private

Definition at line 333 of file TtSemiEvtSolution.h.

Referenced by getLeptonParametrisation(), and setLeptonParametrisation().

◆ lrBestJetComb_

int TtSemiEvtSolution::lrBestJetComb_
private

Definition at line 335 of file TtSemiEvtSolution.h.

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

◆ lrJetCombLRval_

double TtSemiEvtSolution::lrJetCombLRval_
private

Definition at line 336 of file TtSemiEvtSolution.h.

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

◆ lrJetCombProb_

double TtSemiEvtSolution::lrJetCombProb_
private

Definition at line 336 of file TtSemiEvtSolution.h.

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

◆ lrJetCombVarVal_

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

Definition at line 338 of file TtSemiEvtSolution.h.

Referenced by getLRJetCombObsVal(), and setLRJetCombObservables().

◆ lrSignalEvtLRval_

double TtSemiEvtSolution::lrSignalEvtLRval_
private

◆ lrSignalEvtProb_

double TtSemiEvtSolution::lrSignalEvtProb_
private

Definition at line 337 of file TtSemiEvtSolution.h.

Referenced by getLRSignalEvtProb(), and TtSemiEvtSolution().

◆ lrSignalEvtVarVal_

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

Definition at line 339 of file TtSemiEvtSolution.h.

Referenced by getLRSignalEvtObsVal(), and setLRSignalEvtObservables().

◆ mcBestJetComb_

int TtSemiEvtSolution::mcBestJetComb_
private

Definition at line 335 of file TtSemiEvtSolution.h.

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

◆ mcHyp_

reco::CompositeCandidate TtSemiEvtSolution::mcHyp_
private

Definition at line 323 of file TtSemiEvtSolution.h.

Referenced by getMCHyp().

◆ muon_

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

Definition at line 317 of file TtSemiEvtSolution.h.

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

◆ neutrino_

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

Definition at line 319 of file TtSemiEvtSolution.h.

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

◆ neutrinoParam_

int TtSemiEvtSolution::neutrinoParam_
private

Definition at line 333 of file TtSemiEvtSolution.h.

Referenced by getNeutrinoParametrisation(), and setNeutrinoParametrisation().

◆ probChi2_

double TtSemiEvtSolution::probChi2_
private

Definition at line 334 of file TtSemiEvtSolution.h.

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

◆ recoHyp_

reco::CompositeCandidate TtSemiEvtSolution::recoHyp_
private

Definition at line 324 of file TtSemiEvtSolution.h.

Referenced by getRecoHyp(), and setupHyp().

◆ simpleBestJetComb_

int TtSemiEvtSolution::simpleBestJetComb_
private

◆ sumAnglejp_

double TtSemiEvtSolution::sumAnglejp_
private

Definition at line 331 of file TtSemiEvtSolution.h.

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

◆ theGenEvt_

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