CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes | Friends
TtDilepEvtSolution Class Reference

#include <TtDilepEvtSolution.h>

Public Member Functions

bool getBestSol () const
 
pat::Jet getCalJetB () const
 
pat::Jet getCalJetBbar () const
 
pat::Electron getElectronm () const
 
pat::Electron getElectronp () const
 
double getFullResidual () const
 
const reco::GenParticlegetGenB () const
 
const reco::GenParticlegetGenBbar () const
 
const edm::RefProd< TtGenEvent > & getGenEvent () const
 
const reco::GenParticlegetGenLepm () const
 
const reco::GenParticlegetGenLepp () const
 
const reco::GenParticlegetGenN () const
 
const reco::GenParticlegetGenNbar () const
 
const reco::GenParticlegetGenT () const
 
const reco::GenParticlegetGenTbar () const
 
const reco::GenParticlegetGenWm () const
 
const reco::GenParticlegetGenWp () const
 
pat::Jet getJetB () const
 
pat::Jet getJetBbar () const
 
double getJetResidual () const
 
reco::Particle getLeptNeg () const
 
double getLeptonResidual () const
 
reco::Particle getLeptPos () const
 
double getLRSignalEvtLRval () const
 
double getLRSignalEvtObsVal (unsigned int) const
 
double getLRSignalEvtProb () const
 
pat::MET getMET () const
 
pat::Muon getMuonm () const
 
pat::Muon getMuonp () const
 
pat::Jet getRecJetB () const
 
pat::Jet getRecJetBbar () const
 
double getRecTopMass () const
 
double getRecWeightMax () const
 
pat::Tau getTaum () const
 
pat::Tau getTaup () const
 
std::string getWmDecay () const
 
std::string getWpDecay () const
 
 TtDilepEvtSolution ()
 
virtual ~TtDilepEvtSolution ()
 

Protected Member Functions

void setB (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setBbar (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setBestSol (bool bs)
 
void setElectronm (const edm::Handle< std::vector< pat::Electron > > &elec, int i)
 
void setElectronp (const edm::Handle< std::vector< pat::Electron > > &elec, int i)
 
void setGenEvt (const edm::Handle< TtGenEvent > &)
 
void setJetCorrectionScheme (int jetCorrScheme)
 
void setLRSignalEvtLRval (double clr)
 
void setLRSignalEvtObservables (const std::vector< std::pair< unsigned int, double > > &)
 
void setLRSignalEvtProb (double plr)
 
void setMET (const edm::Handle< std::vector< pat::MET > > &met, int i)
 
void setMuonm (const edm::Handle< std::vector< pat::Muon > > &muon, int i)
 
void setMuonp (const edm::Handle< std::vector< pat::Muon > > &muon, int i)
 
void setRecTopMass (double mass)
 
void setRecWeightMax (double wgt)
 
void setTaum (const edm::Handle< std::vector< pat::Tau > > &tau, int i)
 
void setTaup (const edm::Handle< std::vector< pat::Tau > > &tau, int i)
 

Private Attributes

bool bestSol_
 
edm::Ref< std::vector< pat::Electron > > elecm_
 
edm::Ref< std::vector< pat::Electron > > elecp_
 
edm::Ref< std::vector< pat::Jet > > jetB_
 
edm::Ref< std::vector< pat::Jet > > jetBbar_
 
int jetCorrScheme_
 
double lrSignalEvtLRval_
 
double lrSignalEvtProb_
 
std::vector< std::pair< unsigned int, double > > lrSignalEvtVarVal_
 
edm::Ref< std::vector< pat::MET > > met_
 
edm::Ref< std::vector< pat::Muon > > muonm_
 
edm::Ref< std::vector< pat::Muon > > muonp_
 
edm::Ref< std::vector< pat::Tau > > taum_
 
edm::Ref< std::vector< pat::Tau > > taup_
 
edm::RefProd< TtGenEventtheGenEvt_
 
double topmass_
 
double weightmax_
 
std::string wmDecay_
 
std::string wpDecay_
 

Friends

class TtDilepEvtSolutionMaker
 
class TtDilepLRSignalSelObservables
 
class TtFullLepKinSolver
 
class TtLRSignalSelCalc
 

Detailed Description

Definition at line 25 of file TtDilepEvtSolution.h.

Constructor & Destructor Documentation

◆ TtDilepEvtSolution()

TtDilepEvtSolution::TtDilepEvtSolution ( )

Definition at line 8 of file TtDilepEvtSolution.cc.

8  {
9  jetCorrScheme_ = 0;
10  wpDecay_ = "NotDefined";
11  wmDecay_ = "NotDefined";
12  bestSol_ = false;
13  topmass_ = 0.;
14  weightmax_ = 0.;
15 }

References bestSol_, jetCorrScheme_, topmass_, weightmax_, wmDecay_, and wpDecay_.

◆ ~TtDilepEvtSolution()

TtDilepEvtSolution::~TtDilepEvtSolution ( )
virtual

Definition at line 17 of file TtDilepEvtSolution.cc.

17 {}

Member Function Documentation

◆ getBestSol()

bool TtDilepEvtSolution::getBestSol ( ) const
inline

Definition at line 133 of file TtDilepEvtSolution.h.

133 { return bestSol_; }

References bestSol_.

◆ getCalJetB()

pat::Jet TtDilepEvtSolution::getCalJetB ( ) const
inline

Definition at line 117 of file TtDilepEvtSolution.h.

117 { return this->getJetB(); };

References getJetB().

Referenced by TtFullLepKinSolver::addKinSolInfo(), getJetResidual(), and TtDilepLRSignalSelObservables::operator()().

◆ getCalJetBbar()

pat::Jet TtDilepEvtSolution::getCalJetBbar ( ) const
inline

Definition at line 119 of file TtDilepEvtSolution.h.

119 { return this->getJetBbar(); };

References getJetBbar().

Referenced by TtFullLepKinSolver::addKinSolInfo(), getJetResidual(), and TtDilepLRSignalSelObservables::operator()().

◆ getElectronm()

pat::Electron TtDilepEvtSolution::getElectronm ( ) const
inline

Definition at line 41 of file TtDilepEvtSolution.h.

41 { return *elecm_; };

References elecm_.

Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptNeg(), and getLeptonResidual().

◆ getElectronp()

pat::Electron TtDilepEvtSolution::getElectronp ( ) const
inline

Definition at line 40 of file TtDilepEvtSolution.h.

40 { return *elecp_; };

References elecp_.

Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and getLeptPos().

◆ getFullResidual()

double TtDilepEvtSolution::getFullResidual ( ) const
inline

Definition at line 132 of file TtDilepEvtSolution.h.

132 { return getJetResidual() + getLeptonResidual(); }

References getJetResidual(), and getLeptonResidual().

◆ getGenB()

const reco::GenParticle* TtDilepEvtSolution::getGenB ( ) const
inline

Definition at line 64 of file TtDilepEvtSolution.h.

64  {
65  if (!theGenEvt_)
66  return nullptr;
67  else
68  return theGenEvt_->b();
69  };

References TopGenEvent::b(), and theGenEvt_.

Referenced by getJetResidual().

◆ getGenBbar()

const reco::GenParticle* TtDilepEvtSolution::getGenBbar ( ) const
inline

Definition at line 94 of file TtDilepEvtSolution.h.

94  {
95  if (!theGenEvt_)
96  return nullptr;
97  else
98  return theGenEvt_->bBar();
99  };

References TopGenEvent::bBar(), and theGenEvt_.

Referenced by getJetResidual().

◆ getGenEvent()

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

Definition at line 51 of file TtDilepEvtSolution.h.

51 { return theGenEvt_; };

References theGenEvt_.

◆ getGenLepm()

const reco::GenParticle* TtDilepEvtSolution::getGenLepm ( ) const
inline

Definition at line 100 of file TtDilepEvtSolution.h.

100  {
101  if (!theGenEvt_)
102  return nullptr;
103  else
104  return theGenEvt_->lepton();
105  };

References TtGenEvent::lepton(), and theGenEvt_.

Referenced by getLeptonResidual(), and TtDilepLRSignalSelObservables::operator()().

◆ getGenLepp()

const reco::GenParticle* TtDilepEvtSolution::getGenLepp ( ) const
inline

Definition at line 70 of file TtDilepEvtSolution.h.

70  {
71  if (!theGenEvt_)
72  return nullptr;
73  else
74  return theGenEvt_->leptonBar();
75  };

References TtGenEvent::leptonBar(), and theGenEvt_.

Referenced by getLeptonResidual(), and TtDilepLRSignalSelObservables::operator()().

◆ getGenN()

const reco::GenParticle* TtDilepEvtSolution::getGenN ( ) const
inline

Definition at line 76 of file TtDilepEvtSolution.h.

76  {
77  if (!theGenEvt_)
78  return nullptr;
79  else
80  return theGenEvt_->neutrino();
81  };

References TtGenEvent::neutrino(), and theGenEvt_.

Referenced by TtFullLepKinSolver::addKinSolInfo().

◆ getGenNbar()

const reco::GenParticle* TtDilepEvtSolution::getGenNbar ( ) const
inline

Definition at line 106 of file TtDilepEvtSolution.h.

106  {
107  if (!theGenEvt_)
108  return nullptr;
109  else
110  return theGenEvt_->neutrinoBar();
111  };

References TtGenEvent::neutrinoBar(), and theGenEvt_.

Referenced by TtFullLepKinSolver::addKinSolInfo().

◆ getGenT()

const reco::GenParticle* TtDilepEvtSolution::getGenT ( ) const
inline

Definition at line 52 of file TtDilepEvtSolution.h.

52  {
53  if (!theGenEvt_)
54  return nullptr;
55  else
56  return theGenEvt_->top();
57  };

References theGenEvt_, and TopGenEvent::top().

◆ getGenTbar()

const reco::GenParticle* TtDilepEvtSolution::getGenTbar ( ) const
inline

Definition at line 82 of file TtDilepEvtSolution.h.

82  {
83  if (!theGenEvt_)
84  return nullptr;
85  else
86  return theGenEvt_->topBar();
87  };

References theGenEvt_, and TopGenEvent::topBar().

◆ getGenWm()

const reco::GenParticle* TtDilepEvtSolution::getGenWm ( ) const
inline

Definition at line 88 of file TtDilepEvtSolution.h.

88  {
89  if (!theGenEvt_)
90  return nullptr;
91  else
92  return theGenEvt_->wMinus();
93  };

References theGenEvt_, and TopGenEvent::wMinus().

◆ getGenWp()

const reco::GenParticle* TtDilepEvtSolution::getGenWp ( ) const
inline

Definition at line 58 of file TtDilepEvtSolution.h.

58  {
59  if (!theGenEvt_)
60  return nullptr;
61  else
62  return theGenEvt_->wPlus();
63  };

References theGenEvt_, and TopGenEvent::wPlus().

◆ getJetB()

pat::Jet TtDilepEvtSolution::getJetB ( ) const

Definition at line 22 of file TtDilepEvtSolution.cc.

22  {
23  // WARNING this is obsolete and only
24  // kept for backwards compatibility
25  if (jetCorrScheme_ == 1) {
26  //jet calibrated according to MC truth
27  return jetB_->correctedJet("HAD", "B");
28  } else if (jetCorrScheme_ == 2) {
29  return jetB_->correctedJet("HAD", "B");
30  } else {
31  return *jetB_;
32  }
33 }

References jetB_, and jetCorrScheme_.

Referenced by getCalJetB(), getRecJetB(), and TtDilepLRSignalSelObservables::operator()().

◆ getJetBbar()

pat::Jet TtDilepEvtSolution::getJetBbar ( ) const

Definition at line 35 of file TtDilepEvtSolution.cc.

35  {
36  // WARNING this is obsolete and only
37  // kept for backwards compatibility
38  if (jetCorrScheme_ == 1) {
39  //jet calibrated according to MC truth
40  return jetBbar_->correctedJet("HAD", "B");
41  } else if (jetCorrScheme_ == 2) {
42  return jetBbar_->correctedJet("HAD", "B");
43  } else {
44  return *jetBbar_;
45  }
46 }

References jetBbar_, and jetCorrScheme_.

Referenced by getCalJetBbar(), getRecJetBbar(), and TtDilepLRSignalSelObservables::operator()().

◆ getJetResidual()

double TtDilepEvtSolution::getJetResidual ( ) const

Definition at line 72 of file TtDilepEvtSolution.cc.

72  {
73  double distance = 0.;
74  if (!getGenB() || !getGenBbar())
75  return distance;
76  distance += reco::deltaR(getCalJetB(), *getGenB());
78  return distance;
79 }

References reco::deltaR(), HLT_FULL_cff::distance, getCalJetB(), getCalJetBbar(), getGenB(), and getGenBbar().

Referenced by getFullResidual().

◆ getLeptNeg()

reco::Particle TtDilepEvtSolution::getLeptNeg ( ) const

Definition at line 104 of file TtDilepEvtSolution.cc.

104  {
106  if (wmDecay_ == "electron") {
107  p = reco::Particle(-1, getElectronm().p4());
108  p.setPdgId(11);
109  }
110  if (wmDecay_ == "muon") {
111  p = reco::Particle(-1, getMuonm().p4());
112  p.setPdgId(13);
113  }
114  if (wmDecay_ == "tau") {
115  p = reco::Particle(-1, getTaum().p4());
116  p.setPdgId(15);
117  }
118  return p;
119 }

References getElectronm(), getMuonm(), getTaum(), AlCaHLTBitMon_ParallelJobs::p, p4, and wmDecay_.

Referenced by TtDilepLRSignalSelObservables::operator()().

◆ getLeptonResidual()

double TtDilepEvtSolution::getLeptonResidual ( ) const

Definition at line 81 of file TtDilepEvtSolution.cc.

81  {
82  double distance = 0.;
83  if (!getGenLepp() || !getGenLepm())
84  return distance;
85  if (getWpDecay() == "electron")
87  else if (getWpDecay() == "muon")
89  else if (getWpDecay() == "tau")
91  if (getWmDecay() == "electron")
93  else if (getWmDecay() == "muon")
95  else if (getWmDecay() == "tau")
97  return distance;
98 }

References reco::deltaR(), HLT_FULL_cff::distance, getElectronm(), getElectronp(), getGenLepm(), getGenLepp(), getMuonm(), getMuonp(), getTaum(), getTaup(), getWmDecay(), and getWpDecay().

Referenced by getFullResidual().

◆ getLeptPos()

reco::Particle TtDilepEvtSolution::getLeptPos ( ) const

Definition at line 52 of file TtDilepEvtSolution.cc.

52  {
54  if (wpDecay_ == "muon") {
55  p = reco::Particle(+1, getMuonp().p4());
56  p.setPdgId(-11);
57  }
58  if (wpDecay_ == "electron") {
59  p = reco::Particle(+1, getElectronp().p4());
60  p.setPdgId(-13);
61  }
62  if (wmDecay_ == "tau") {
63  p = reco::Particle(+1, getTaup().p4());
64  p.setPdgId(-15);
65  }
66  return p;
67 }

References getElectronp(), getMuonp(), getTaup(), AlCaHLTBitMon_ParallelJobs::p, p4, wmDecay_, and wpDecay_.

Referenced by TtDilepLRSignalSelObservables::operator()().

◆ getLRSignalEvtLRval()

double TtDilepEvtSolution::getLRSignalEvtLRval ( ) const
inline

Definition at line 154 of file TtDilepEvtSolution.h.

154 { return lrSignalEvtLRval_; }

References lrSignalEvtLRval_.

◆ getLRSignalEvtObsVal()

double TtDilepEvtSolution::getLRSignalEvtObsVal ( unsigned int  selObs) const

Definition at line 125 of file TtDilepEvtSolution.cc.

125  {
126  double val = -999.;
127  for (size_t i = 0; i < lrSignalEvtVarVal_.size(); i++) {
128  if (lrSignalEvtVarVal_[i].first == selObs)
129  val = lrSignalEvtVarVal_[i].second;
130  }
131  return val;
132 }

References first, mps_fire::i, lrSignalEvtVarVal_, and heppy_batch::val.

◆ getLRSignalEvtProb()

double TtDilepEvtSolution::getLRSignalEvtProb ( ) const
inline

Definition at line 155 of file TtDilepEvtSolution.h.

155 { return lrSignalEvtProb_; }

References lrSignalEvtProb_.

◆ getMET()

pat::MET TtDilepEvtSolution::getMET ( ) const
inline

Definition at line 46 of file TtDilepEvtSolution.h.

46 { return *met_; };

References met_.

◆ getMuonm()

pat::Muon TtDilepEvtSolution::getMuonm ( ) const
inline

Definition at line 43 of file TtDilepEvtSolution.h.

43 { return *muonm_; };

References muonm_.

Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptNeg(), and getLeptonResidual().

◆ getMuonp()

pat::Muon TtDilepEvtSolution::getMuonp ( ) const
inline

Definition at line 42 of file TtDilepEvtSolution.h.

42 { return *muonp_; };

References muonp_.

Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and getLeptPos().

◆ getRecJetB()

pat::Jet TtDilepEvtSolution::getRecJetB ( ) const
inline

Definition at line 116 of file TtDilepEvtSolution.h.

116 { return this->getJetB().correctedJet("RAW"); };

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

◆ getRecJetBbar()

pat::Jet TtDilepEvtSolution::getRecJetBbar ( ) const
inline

Definition at line 118 of file TtDilepEvtSolution.h.

118 { return this->getJetBbar().correctedJet("RAW"); };

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

◆ getRecTopMass()

double TtDilepEvtSolution::getRecTopMass ( ) const
inline

Definition at line 134 of file TtDilepEvtSolution.h.

134 { return topmass_; }

References topmass_.

◆ getRecWeightMax()

double TtDilepEvtSolution::getRecWeightMax ( ) const
inline

Definition at line 135 of file TtDilepEvtSolution.h.

135 { return weightmax_; }

References weightmax_.

◆ getTaum()

pat::Tau TtDilepEvtSolution::getTaum ( ) const
inline

Definition at line 45 of file TtDilepEvtSolution.h.

45 { return *taum_; };

References taum_.

Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptNeg(), and getLeptonResidual().

◆ getTaup()

pat::Tau TtDilepEvtSolution::getTaup ( ) const
inline

Definition at line 44 of file TtDilepEvtSolution.h.

44 { return *taup_; };

References taup_.

Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and getLeptPos().

◆ getWmDecay()

std::string TtDilepEvtSolution::getWmDecay ( ) const
inline

◆ getWpDecay()

std::string TtDilepEvtSolution::getWpDecay ( ) const
inline

◆ setB()

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

Definition at line 167 of file TtDilepEvtSolution.h.

167  {
169  };

References mps_fire::i, metsig::jet, and jetB_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setBbar()

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

Definition at line 170 of file TtDilepEvtSolution.h.

170  {
172  };

References mps_fire::i, metsig::jet, and jetBbar_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setBestSol()

void TtDilepEvtSolution::setBestSol ( bool  bs)
inlineprotected

Definition at line 204 of file TtDilepEvtSolution.h.

204 { bestSol_ = bs; };

References bestSol_, and cms::cuda::bs.

◆ setElectronm()

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

Definition at line 193 of file TtDilepEvtSolution.h.

193  {
195  wmDecay_ = "electron";
196  };

References elecm_, mps_fire::i, and wmDecay_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setElectronp()

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

Definition at line 189 of file TtDilepEvtSolution.h.

189  {
191  wpDecay_ = "electron";
192  };

References elecp_, mps_fire::i, and wpDecay_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setGenEvt()

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

Definition at line 137 of file TtDilepEvtSolution.cc.

137  {
138  if (!aGenEvt->isFullLeptonic()) {
139  edm::LogInfo("TtGenEventNotFilled") << "genEvt is not di-leptonic; TtGenEvent is not filled";
140  return;
141  }
143 }

References TtGenEvent::isFullLeptonic(), and theGenEvt_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setJetCorrectionScheme()

void TtDilepEvtSolution::setJetCorrectionScheme ( int  jetCorrScheme)
inlineprotected

Definition at line 166 of file TtDilepEvtSolution.h.

166 { jetCorrScheme_ = jetCorrScheme; };

References jetCorrScheme_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setLRSignalEvtLRval()

void TtDilepEvtSolution::setLRSignalEvtLRval ( double  clr)
inlineprotected

Definition at line 212 of file TtDilepEvtSolution.h.

212 { lrSignalEvtLRval_ = clr; };

References lrSignalEvtLRval_.

◆ setLRSignalEvtObservables()

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

Definition at line 148 of file TtDilepEvtSolution.cc.

148  {
149  lrSignalEvtVarVal_.clear();
150  for (size_t ise = 0; ise < varval.size(); ise++)
151  lrSignalEvtVarVal_.push_back(varval[ise]);
152 }

References lrSignalEvtVarVal_.

Referenced by TtDilepLRSignalSelObservables::operator()().

◆ setLRSignalEvtProb()

void TtDilepEvtSolution::setLRSignalEvtProb ( double  plr)
inlineprotected

Definition at line 213 of file TtDilepEvtSolution.h.

213 { lrSignalEvtProb_ = plr; };

◆ setMET()

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

Definition at line 197 of file TtDilepEvtSolution.h.

197  {
199  };

References mps_fire::i, BTaggingMonitor_cfi::met, and met_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setMuonm()

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

Definition at line 177 of file TtDilepEvtSolution.h.

177  {
179  wmDecay_ = "muon";
180  }

References mps_fire::i, HLT_FULL_cff::muon, muonm_, and wmDecay_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setMuonp()

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

Definition at line 173 of file TtDilepEvtSolution.h.

173  {
175  wpDecay_ = "muon";
176  };

References mps_fire::i, HLT_FULL_cff::muon, muonp_, and wpDecay_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setRecTopMass()

void TtDilepEvtSolution::setRecTopMass ( double  mass)
inlineprotected

Definition at line 205 of file TtDilepEvtSolution.h.

205 { topmass_ = mass; };

References EgHLTOffHistBins_cfi::mass, and topmass_.

Referenced by TtFullLepKinSolver::addKinSolInfo().

◆ setRecWeightMax()

void TtDilepEvtSolution::setRecWeightMax ( double  wgt)
inlineprotected

Definition at line 206 of file TtDilepEvtSolution.h.

206 { weightmax_ = wgt; };

References weightmax_.

Referenced by TtFullLepKinSolver::addKinSolInfo().

◆ setTaum()

void TtDilepEvtSolution::setTaum ( const edm::Handle< std::vector< pat::Tau > > &  tau,
int  i 
)
inlineprotected

Definition at line 185 of file TtDilepEvtSolution.h.

185  {
187  wmDecay_ = "tau";
188  }

References mps_fire::i, metsig::tau, taum_, and wmDecay_.

Referenced by TtDilepEvtSolutionMaker::produce().

◆ setTaup()

void TtDilepEvtSolution::setTaup ( const edm::Handle< std::vector< pat::Tau > > &  tau,
int  i 
)
inlineprotected

Definition at line 181 of file TtDilepEvtSolution.h.

181  {
183  wpDecay_ = "tau";
184  }

References mps_fire::i, metsig::tau, taup_, and wpDecay_.

Referenced by TtDilepEvtSolutionMaker::produce().

Friends And Related Function Documentation

◆ TtDilepEvtSolutionMaker

friend class TtDilepEvtSolutionMaker
friend

Definition at line 27 of file TtDilepEvtSolution.h.

◆ TtDilepLRSignalSelObservables

friend class TtDilepLRSignalSelObservables
friend

Definition at line 28 of file TtDilepEvtSolution.h.

◆ TtFullLepKinSolver

friend class TtFullLepKinSolver
friend

Definition at line 26 of file TtDilepEvtSolution.h.

◆ TtLRSignalSelCalc

friend class TtLRSignalSelCalc
friend

Definition at line 29 of file TtDilepEvtSolution.h.

Member Data Documentation

◆ bestSol_

bool TtDilepEvtSolution::bestSol_
private

Definition at line 232 of file TtDilepEvtSolution.h.

Referenced by getBestSol(), setBestSol(), and TtDilepEvtSolution().

◆ elecm_

edm::Ref<std::vector<pat::Electron> > TtDilepEvtSolution::elecm_
private

Definition at line 220 of file TtDilepEvtSolution.h.

Referenced by getElectronm(), and setElectronm().

◆ elecp_

edm::Ref<std::vector<pat::Electron> > TtDilepEvtSolution::elecp_
private

Definition at line 220 of file TtDilepEvtSolution.h.

Referenced by getElectronp(), and setElectronp().

◆ jetB_

edm::Ref<std::vector<pat::Jet> > TtDilepEvtSolution::jetB_
private

Definition at line 223 of file TtDilepEvtSolution.h.

Referenced by getJetB(), and setB().

◆ jetBbar_

edm::Ref<std::vector<pat::Jet> > TtDilepEvtSolution::jetBbar_
private

Definition at line 223 of file TtDilepEvtSolution.h.

Referenced by getJetBbar(), and setBbar().

◆ jetCorrScheme_

int TtDilepEvtSolution::jetCorrScheme_
private

◆ lrSignalEvtLRval_

double TtDilepEvtSolution::lrSignalEvtLRval_
private

Definition at line 236 of file TtDilepEvtSolution.h.

Referenced by getLRSignalEvtLRval(), and setLRSignalEvtLRval().

◆ lrSignalEvtProb_

double TtDilepEvtSolution::lrSignalEvtProb_
private

Definition at line 236 of file TtDilepEvtSolution.h.

Referenced by getLRSignalEvtProb().

◆ lrSignalEvtVarVal_

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

Definition at line 237 of file TtDilepEvtSolution.h.

Referenced by getLRSignalEvtObsVal(), and setLRSignalEvtObservables().

◆ met_

edm::Ref<std::vector<pat::MET> > TtDilepEvtSolution::met_
private

Definition at line 224 of file TtDilepEvtSolution.h.

Referenced by getMET(), and setMET().

◆ muonm_

edm::Ref<std::vector<pat::Muon> > TtDilepEvtSolution::muonm_
private

Definition at line 221 of file TtDilepEvtSolution.h.

Referenced by getMuonm(), and setMuonm().

◆ muonp_

edm::Ref<std::vector<pat::Muon> > TtDilepEvtSolution::muonp_
private

Definition at line 221 of file TtDilepEvtSolution.h.

Referenced by getMuonp(), and setMuonp().

◆ taum_

edm::Ref<std::vector<pat::Tau> > TtDilepEvtSolution::taum_
private

Definition at line 222 of file TtDilepEvtSolution.h.

Referenced by getTaum(), and setTaum().

◆ taup_

edm::Ref<std::vector<pat::Tau> > TtDilepEvtSolution::taup_
private

Definition at line 222 of file TtDilepEvtSolution.h.

Referenced by getTaup(), and setTaup().

◆ theGenEvt_

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

◆ topmass_

double TtDilepEvtSolution::topmass_
private

Definition at line 233 of file TtDilepEvtSolution.h.

Referenced by getRecTopMass(), setRecTopMass(), and TtDilepEvtSolution().

◆ weightmax_

double TtDilepEvtSolution::weightmax_
private

Definition at line 234 of file TtDilepEvtSolution.h.

Referenced by getRecWeightMax(), setRecWeightMax(), and TtDilepEvtSolution().

◆ wmDecay_

std::string TtDilepEvtSolution::wmDecay_
private

◆ wpDecay_

std::string TtDilepEvtSolution::wpDecay_
private
edm::RefProd< TtGenEvent >
TtGenEvent::neutrino
const reco::GenParticle * neutrino(bool excludeTauLeptons=false) const
get neutrino for semi-leptonic or full leptonic decays
Definition: TtGenEvent.cc:111
TtDilepEvtSolution::getLeptonResidual
double getLeptonResidual() const
Definition: TtDilepEvtSolution.cc:81
TtDilepEvtSolution::taum_
edm::Ref< std::vector< pat::Tau > > taum_
Definition: TtDilepEvtSolution.h:222
mps_fire.i
i
Definition: mps_fire.py:428
TtDilepEvtSolution::jetBbar_
edm::Ref< std::vector< pat::Jet > > jetBbar_
Definition: TtDilepEvtSolution.h:223
TtDilepEvtSolution::lrSignalEvtLRval_
double lrSignalEvtLRval_
Definition: TtDilepEvtSolution.h:236
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::Particle
Definition: Particle.h:16
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TtDilepEvtSolution::getElectronm
pat::Electron getElectronm() const
Definition: TtDilepEvtSolution.h:41
TopGenEvent::b
const reco::GenParticle * b() const
return b quark if available; 0 else
Definition: TopGenEvent.h:97
TtDilepEvtSolution::getCalJetB
pat::Jet getCalJetB() const
Definition: TtDilepEvtSolution.h:117
TtGenEvent::lepton
const reco::GenParticle * lepton(bool excludeTauLeptons=false) const
get lepton for semi-leptonic or full leptonic decays
Definition: TtGenEvent.cc:69
TtDilepEvtSolution::getCalJetBbar
pat::Jet getCalJetBbar() const
Definition: TtDilepEvtSolution.h:119
TtDilepEvtSolution::met_
edm::Ref< std::vector< pat::MET > > met_
Definition: TtDilepEvtSolution.h:224
TtDilepEvtSolution::getJetB
pat::Jet getJetB() const
Definition: TtDilepEvtSolution.cc:22
TtDilepEvtSolution::jetB_
edm::Ref< std::vector< pat::Jet > > jetB_
Definition: TtDilepEvtSolution.h:223
TopGenEvent::wMinus
const reco::GenParticle * wMinus() const
return W minus if available; 0 else
Definition: TopGenEvent.h:93
TtDilepEvtSolution::getGenB
const reco::GenParticle * getGenB() const
Definition: TtDilepEvtSolution.h:64
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
TtDilepEvtSolution::elecp_
edm::Ref< std::vector< pat::Electron > > elecp_
Definition: TtDilepEvtSolution.h:220
TtDilepEvtSolution::getTaum
pat::Tau getTaum() const
Definition: TtDilepEvtSolution.h:45
TtDilepEvtSolution::topmass_
double topmass_
Definition: TtDilepEvtSolution.h:233
edm::Ref
Definition: AssociativeIterator.h:58
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
TopGenEvent::topBar
const reco::GenParticle * topBar() const
return anti-top if available; 0 else
Definition: TopGenEvent.h:103
TtDilepEvtSolution::getWpDecay
std::string getWpDecay() const
Definition: TtDilepEvtSolution.h:124
TtDilepEvtSolution::getJetResidual
double getJetResidual() const
Definition: TtDilepEvtSolution.cc:72
TtDilepEvtSolution::wpDecay_
std::string wpDecay_
Definition: TtDilepEvtSolution.h:230
TopGenEvent::bBar
const reco::GenParticle * bBar() const
return anti-b quark if available; 0 else
Definition: TopGenEvent.h:99
cms::cuda::bs
bs
Definition: HistoContainer.h:127
TtDilepEvtSolution::theGenEvt_
edm::RefProd< TtGenEvent > theGenEvt_
Definition: TtDilepEvtSolution.h:213
TtDilepEvtSolution::getMuonp
pat::Muon getMuonp() const
Definition: TtDilepEvtSolution.h:42
HLT_FULL_cff.muon
muon
Definition: HLT_FULL_cff.py:11710
TtDilepEvtSolution::jetCorrScheme_
int jetCorrScheme_
Definition: TtDilepEvtSolution.h:229
TtDilepEvtSolution::elecm_
edm::Ref< std::vector< pat::Electron > > elecm_
Definition: TtDilepEvtSolution.h:220
TtDilepEvtSolution::lrSignalEvtVarVal_
std::vector< std::pair< unsigned int, double > > lrSignalEvtVarVal_
Definition: TtDilepEvtSolution.h:237
TtDilepEvtSolution::getGenBbar
const reco::GenParticle * getGenBbar() const
Definition: TtDilepEvtSolution.h:94
TtDilepEvtSolution::lrSignalEvtProb_
double lrSignalEvtProb_
Definition: TtDilepEvtSolution.h:236
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
TtDilepEvtSolution::getElectronp
pat::Electron getElectronp() const
Definition: TtDilepEvtSolution.h:40
TopGenEvent::top
const reco::GenParticle * top() const
return top if available; 0 else
Definition: TopGenEvent.h:101
TtDilepEvtSolution::muonm_
edm::Ref< std::vector< pat::Muon > > muonm_
Definition: TtDilepEvtSolution.h:221
TtDilepEvtSolution::bestSol_
bool bestSol_
Definition: TtDilepEvtSolution.h:232
TtDilepEvtSolution::getTaup
pat::Tau getTaup() const
Definition: TtDilepEvtSolution.h:44
TtGenEvent::isFullLeptonic
bool isFullLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as full leptonic
Definition: TtGenEvent.h:42
TtDilepEvtSolution::getWmDecay
std::string getWmDecay() const
Definition: TtDilepEvtSolution.h:125
TopGenEvent::wPlus
const reco::GenParticle * wPlus() const
return W plus if available; 0 else
Definition: TopGenEvent.h:95
p4
double p4[4]
Definition: TauolaWrapper.h:92
TtDilepEvtSolution::taup_
edm::Ref< std::vector< pat::Tau > > taup_
Definition: TtDilepEvtSolution.h:222
TtDilepEvtSolution::muonp_
edm::Ref< std::vector< pat::Muon > > muonp_
Definition: TtDilepEvtSolution.h:221
TtDilepEvtSolution::getGenLepp
const reco::GenParticle * getGenLepp() const
Definition: TtDilepEvtSolution.h:70
TtGenEvent::leptonBar
const reco::GenParticle * leptonBar(bool excludeTauLeptons=false) const
get anti-lepton for semi-leptonic or full leptonic decays
Definition: TtGenEvent.cc:83
TtDilepEvtSolution::weightmax_
double weightmax_
Definition: TtDilepEvtSolution.h:234
heppy_batch.val
val
Definition: heppy_batch.py:351
metsig::jet
Definition: SignAlgoResolutions.h:47
TtDilepEvtSolution::getGenLepm
const reco::GenParticle * getGenLepm() const
Definition: TtDilepEvtSolution.h:100
TtDilepEvtSolution::getMuonm
pat::Muon getMuonm() const
Definition: TtDilepEvtSolution.h:43
TtDilepEvtSolution::wmDecay_
std::string wmDecay_
Definition: TtDilepEvtSolution.h:231
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34
TtDilepEvtSolution::getJetBbar
pat::Jet getJetBbar() const
Definition: TtDilepEvtSolution.cc:35
pat::Jet::correctedJet
Jet correctedJet(const std::string &level, const std::string &flavor="none", const std::string &set="") const
reco::deltaR
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Definition: deltaR.h:30
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7733
TtGenEvent::neutrinoBar
const reco::GenParticle * neutrinoBar(bool excludeTauLeptons=false) const
get anti-neutrino for semi-leptonic or full leptonic decays
Definition: TtGenEvent.cc:125