#include <AnalysisDataFormats/TopObjects/interface/TtDilepEvtSolution.h>
Definition at line 26 of file TtDilepEvtSolution.h.
TtDilepEvtSolution::TtDilepEvtSolution | ( | ) |
Definition at line 9 of file TtDilepEvtSolution.cc.
References bestSol_, jetCorrScheme_, topmass_, weightmax_, wmDecay_, and wpDecay_.
00010 { 00011 jetCorrScheme_ = 0; 00012 wpDecay_ = "NotDefined"; 00013 wmDecay_ = "NotDefined"; 00014 bestSol_ = false; 00015 topmass_ = 0.; 00016 weightmax_ = 0.; 00017 }
TtDilepEvtSolution::~TtDilepEvtSolution | ( | ) | [virtual] |
bool TtDilepEvtSolution::getBestSol | ( | ) | const [inline] |
pat::Jet TtDilepEvtSolution::getCalJetB | ( | ) | const [inline] |
Definition at line 70 of file TtDilepEvtSolution.h.
References getJetB().
Referenced by TtFullLepKinSolver::addKinSolInfo(), getJetResidual(), and TtDilepLRSignalSelObservables::operator()().
00070 { return this->getJetB(); };
pat::Jet TtDilepEvtSolution::getCalJetBbar | ( | ) | const [inline] |
Definition at line 72 of file TtDilepEvtSolution.h.
References getJetBbar().
Referenced by TtFullLepKinSolver::addKinSolInfo(), getJetResidual(), and TtDilepLRSignalSelObservables::operator()().
00072 { return this->getJetBbar(); };
pat::Electron TtDilepEvtSolution::getElectronm | ( | ) | const [inline] |
Definition at line 44 of file TtDilepEvtSolution.h.
References elecm_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptNeg(), and getLeptonResidual().
00044 { return *elecm_; };
pat::Electron TtDilepEvtSolution::getElectronp | ( | ) | const [inline] |
Definition at line 43 of file TtDilepEvtSolution.h.
References elecp_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and getLeptPos().
00043 { return *elecp_; };
double TtDilepEvtSolution::getFullResidual | ( | ) | const [inline] |
Definition at line 85 of file TtDilepEvtSolution.h.
References getJetResidual().
00085 { return getJetResidual()+getFullResidual(); }
const reco::GenParticle* TtDilepEvtSolution::getGenB | ( | ) | const [inline] |
Definition at line 57 of file TtDilepEvtSolution.h.
References theGenEvt_.
Referenced by getJetResidual().
00057 { if (!theGenEvt_) return 0; else return theGenEvt_->b(); };
const reco::GenParticle* TtDilepEvtSolution::getGenBbar | ( | ) | const [inline] |
Definition at line 62 of file TtDilepEvtSolution.h.
References theGenEvt_.
Referenced by getJetResidual().
00062 { if (!theGenEvt_) return 0; else return theGenEvt_->bBar(); };
const edm::RefProd<TtGenEvent>& TtDilepEvtSolution::getGenEvent | ( | ) | const [inline] |
Definition at line 54 of file TtDilepEvtSolution.h.
References theGenEvt_.
00054 { return theGenEvt_; };
const reco::GenParticle* TtDilepEvtSolution::getGenLepm | ( | ) | const [inline] |
Definition at line 63 of file TtDilepEvtSolution.h.
References theGenEvt_.
Referenced by getLeptonResidual(), and TtDilepLRSignalSelObservables::operator()().
00063 { if (!theGenEvt_) return 0; else return theGenEvt_->lepton(); };
const reco::GenParticle* TtDilepEvtSolution::getGenLepp | ( | ) | const [inline] |
Definition at line 58 of file TtDilepEvtSolution.h.
References theGenEvt_.
Referenced by getLeptonResidual(), and TtDilepLRSignalSelObservables::operator()().
00058 { if (!theGenEvt_) return 0; else return theGenEvt_->leptonBar(); };
const reco::GenParticle* TtDilepEvtSolution::getGenN | ( | ) | const [inline] |
Definition at line 59 of file TtDilepEvtSolution.h.
References theGenEvt_.
Referenced by TtFullLepKinSolver::addKinSolInfo().
00059 { if (!theGenEvt_) return 0; else return theGenEvt_->neutrino(); };
const reco::GenParticle* TtDilepEvtSolution::getGenNbar | ( | ) | const [inline] |
Definition at line 64 of file TtDilepEvtSolution.h.
References theGenEvt_.
Referenced by TtFullLepKinSolver::addKinSolInfo().
00064 { if (!theGenEvt_) return 0; else return theGenEvt_->neutrinoBar(); };
const reco::GenParticle* TtDilepEvtSolution::getGenT | ( | ) | const [inline] |
Definition at line 55 of file TtDilepEvtSolution.h.
References theGenEvt_.
00055 { if (!theGenEvt_) return 0; else return theGenEvt_->top(); };
const reco::GenParticle* TtDilepEvtSolution::getGenTbar | ( | ) | const [inline] |
Definition at line 60 of file TtDilepEvtSolution.h.
References theGenEvt_.
00060 { if (!theGenEvt_) return 0; else return theGenEvt_->topBar(); };
const reco::GenParticle* TtDilepEvtSolution::getGenWm | ( | ) | const [inline] |
Definition at line 61 of file TtDilepEvtSolution.h.
References theGenEvt_.
00061 { if (!theGenEvt_) return 0; else return theGenEvt_->wMinus(); };
const reco::GenParticle* TtDilepEvtSolution::getGenWp | ( | ) | const [inline] |
Definition at line 56 of file TtDilepEvtSolution.h.
References theGenEvt_.
00056 { if (!theGenEvt_) return 0; else return theGenEvt_->wPlus(); };
pat::Jet TtDilepEvtSolution::getJetB | ( | ) | const |
Definition at line 26 of file TtDilepEvtSolution.cc.
References jetB_, and jetCorrScheme_.
Referenced by getCalJetB(), getRecJetB(), and TtDilepLRSignalSelObservables::operator()().
00027 { 00028 // WARNING this is obsolete and only 00029 // kept for backwards compatibility 00030 if(jetCorrScheme_==1){ 00031 //jet calibrated according to MC truth 00032 return jetB_->correctedJet("HAD", "B"); 00033 } 00034 else if(jetCorrScheme_==2){ 00035 return jetB_->correctedJet("HAD", "B"); 00036 } 00037 else{ 00038 return *jetB_; 00039 } 00040 }
pat::Jet TtDilepEvtSolution::getJetBbar | ( | ) | const |
Definition at line 42 of file TtDilepEvtSolution.cc.
References jetBbar_, and jetCorrScheme_.
Referenced by getCalJetBbar(), getRecJetBbar(), and TtDilepLRSignalSelObservables::operator()().
00043 { 00044 // WARNING this is obsolete and only 00045 // kept for backwards compatibility 00046 if(jetCorrScheme_==1){ 00047 //jet calibrated according to MC truth 00048 return jetBbar_->correctedJet("HAD", "B"); 00049 } 00050 else if(jetCorrScheme_==2){ 00051 return jetBbar_->correctedJet("HAD", "B"); 00052 } 00053 else{ 00054 return *jetBbar_; 00055 } 00056 }
double TtDilepEvtSolution::getJetResidual | ( | ) | const |
Definition at line 83 of file TtDilepEvtSolution.cc.
References reco::deltaR(), getCalJetB(), getCalJetBbar(), getGenB(), and getGenBbar().
Referenced by getFullResidual(), and TtDilepEvtSolutionMaker::produce().
00084 { 00085 double distance = 0.; 00086 if(!getGenB() || !getGenBbar()) return distance; 00087 distance += reco::deltaR(getCalJetB(),*getGenB()); 00088 distance += reco::deltaR(getCalJetBbar(),*getGenBbar()); 00089 return distance; 00090 }
reco::Particle TtDilepEvtSolution::getLeptNeg | ( | ) | const |
Definition at line 115 of file TtDilepEvtSolution.cc.
References getElectronm(), getMuonm(), getTaum(), p, p4, reco::Particle::setPdgId(), and wmDecay_.
Referenced by TtDilepLRSignalSelObservables::operator()().
00116 { 00117 reco::Particle p; 00118 if(wmDecay_ == "electron"){ 00119 p = reco::Particle(-1, getElectronm().p4() ); 00120 p.setPdgId(11); 00121 } 00122 if(wmDecay_ == "muon"){ 00123 p = reco::Particle(-1, getMuonm().p4() ); 00124 p.setPdgId(13); 00125 } 00126 if(wmDecay_ == "tau"){ 00127 p = reco::Particle(-1, getTaum().p4() ); 00128 p.setPdgId(15); 00129 } 00130 return p; 00131 }
double TtDilepEvtSolution::getLeptonResidual | ( | ) | const |
Definition at line 92 of file TtDilepEvtSolution.cc.
References reco::deltaR(), getElectronm(), getElectronp(), getGenLepm(), getGenLepp(), getMuonm(), getMuonp(), getTaum(), getTaup(), getWmDecay(), and getWpDecay().
00093 { 00094 double distance = 0.; 00095 if(!getGenLepp() || !getGenLepm()) return distance; 00096 if(getWpDecay()=="electron") 00097 distance += reco::deltaR(getElectronp(),*getGenLepp()); 00098 else if(getWpDecay()=="muon") 00099 distance += reco::deltaR(getMuonp(),*getGenLepp()); 00100 else if(getWpDecay()=="tau") 00101 distance += reco::deltaR(getTaup(),*getGenLepp()); 00102 if(getWmDecay()=="electron") 00103 distance += reco::deltaR(getElectronm(),*getGenLepm()); 00104 else if(getWmDecay()=="muon") 00105 distance += reco::deltaR(getMuonm(),*getGenLepm()); 00106 else if(getWmDecay()=="tau") 00107 distance += reco::deltaR(getTaum(),*getGenLepm()); 00108 return distance; 00109 }
reco::Particle TtDilepEvtSolution::getLeptPos | ( | ) | const |
Definition at line 62 of file TtDilepEvtSolution.cc.
References getElectronp(), getMuonp(), getTaup(), p, p4, reco::Particle::setPdgId(), wmDecay_, and wpDecay_.
Referenced by TtDilepLRSignalSelObservables::operator()().
00063 { 00064 reco::Particle p; 00065 if(wpDecay_ == "muon"){ 00066 p = reco::Particle(+1, getMuonp().p4() ); 00067 p.setPdgId(-11); 00068 } 00069 if(wpDecay_ == "electron"){ 00070 p = reco::Particle(+1, getElectronp().p4() ); 00071 p.setPdgId(-13); 00072 } 00073 if(wmDecay_ == "tau"){ 00074 p = reco::Particle(+1, getTaup().p4() ); 00075 p.setPdgId(-15); 00076 } 00077 return p; 00078 }
double TtDilepEvtSolution::getLRSignalEvtLRval | ( | ) | const [inline] |
Definition at line 107 of file TtDilepEvtSolution.h.
References lrSignalEvtLRval_.
00107 { return lrSignalEvtLRval_; }
double TtDilepEvtSolution::getLRSignalEvtObsVal | ( | unsigned int | selObs | ) | const |
Definition at line 137 of file TtDilepEvtSolution.cc.
References first, i, and lrSignalEvtVarVal_.
00138 { 00139 double val = -999.; 00140 for(size_t i=0; i<lrSignalEvtVarVal_.size(); i++){ 00141 if(lrSignalEvtVarVal_[i].first == selObs) val = lrSignalEvtVarVal_[i].second; 00142 } 00143 return val; 00144 }
double TtDilepEvtSolution::getLRSignalEvtProb | ( | ) | const [inline] |
Definition at line 108 of file TtDilepEvtSolution.h.
References lrSignalEvtProb_.
00108 { return lrSignalEvtProb_; }
pat::MET TtDilepEvtSolution::getMET | ( | ) | const [inline] |
pat::Muon TtDilepEvtSolution::getMuonm | ( | ) | const [inline] |
Definition at line 46 of file TtDilepEvtSolution.h.
References muonm_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptNeg(), and getLeptonResidual().
00046 { return *muonm_; };
pat::Muon TtDilepEvtSolution::getMuonp | ( | ) | const [inline] |
Definition at line 45 of file TtDilepEvtSolution.h.
References muonp_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and getLeptPos().
00045 { return *muonp_; };
pat::JetType TtDilepEvtSolution::getRecJetB | ( | ) | const [inline] |
Definition at line 69 of file TtDilepEvtSolution.h.
References pat::Jet::correctedJet(), and getJetB().
00069 { return this->getJetB().correctedJet("RAW"); };
pat::JetType TtDilepEvtSolution::getRecJetBbar | ( | ) | const [inline] |
Definition at line 71 of file TtDilepEvtSolution.h.
References pat::Jet::correctedJet(), and getJetBbar().
00071 { return this->getJetBbar().correctedJet("RAW"); };
double TtDilepEvtSolution::getRecTopMass | ( | ) | const [inline] |
double TtDilepEvtSolution::getRecWeightMax | ( | ) | const [inline] |
Definition at line 88 of file TtDilepEvtSolution.h.
References weightmax_.
00088 {return weightmax_; }
pat::Tau TtDilepEvtSolution::getTaum | ( | ) | const [inline] |
Definition at line 48 of file TtDilepEvtSolution.h.
References taum_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptNeg(), and getLeptonResidual().
00048 { return *taum_; };
pat::Tau TtDilepEvtSolution::getTaup | ( | ) | const [inline] |
Definition at line 47 of file TtDilepEvtSolution.h.
References taup_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and getLeptPos().
00047 { return *taup_; };
std::string TtDilepEvtSolution::getWmDecay | ( | ) | const [inline] |
Definition at line 78 of file TtDilepEvtSolution.h.
References wmDecay_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and TtDilepLRSignalSelObservables::operator()().
00078 { return wmDecay_; }
std::string TtDilepEvtSolution::getWpDecay | ( | ) | const [inline] |
Definition at line 77 of file TtDilepEvtSolution.h.
References wpDecay_.
Referenced by TtFullLepKinSolver::addKinSolInfo(), getLeptonResidual(), and TtDilepLRSignalSelObservables::operator()().
00077 { return wpDecay_; }
void TtDilepEvtSolution::setB | ( | const edm::Handle< std::vector< pat::Jet > > & | jet, | |
int | i | |||
) | [inline, protected] |
Definition at line 122 of file TtDilepEvtSolution.h.
References metsig::jet, and jetB_.
Referenced by TtDilepEvtSolutionMaker::produce().
00123 { jetB_ = edm::Ref<std::vector<pat::Jet> >(jet, i); };
void TtDilepEvtSolution::setBbar | ( | const edm::Handle< std::vector< pat::Jet > > & | jet, | |
int | i | |||
) | [inline, protected] |
Definition at line 124 of file TtDilepEvtSolution.h.
References metsig::jet, and jetBbar_.
Referenced by TtDilepEvtSolutionMaker::produce().
00125 { jetBbar_ = edm::Ref<std::vector<pat::Jet> >(jet, i); };
void TtDilepEvtSolution::setElectronm | ( | const edm::Handle< std::vector< pat::Electron > > & | elec, | |
int | i | |||
) | [inline, protected] |
Definition at line 136 of file TtDilepEvtSolution.h.
References elecm_, and wmDecay_.
Referenced by TtDilepEvtSolutionMaker::produce().
00137 { elecm_ = edm::Ref<std::vector<pat::Electron> >(elec, i); wmDecay_ = "electron"; };
void TtDilepEvtSolution::setElectronp | ( | const edm::Handle< std::vector< pat::Electron > > & | elec, | |
int | i | |||
) | [inline, protected] |
Definition at line 134 of file TtDilepEvtSolution.h.
References elecp_, and wpDecay_.
Referenced by TtDilepEvtSolutionMaker::produce().
00135 { elecp_ = edm::Ref<std::vector<pat::Electron> >(elec, i); wpDecay_ = "electron"; };
void TtDilepEvtSolution::setGenEvt | ( | const edm::Handle< TtGenEvent > & | aGenEvt | ) | [protected] |
Definition at line 149 of file TtDilepEvtSolution.cc.
References theGenEvt_.
Referenced by TtDilepEvtSolutionMaker::produce().
00149 { 00150 if( !aGenEvt->isFullLeptonic() ){ 00151 edm::LogInfo( "TtGenEventNotFilled" ) << "genEvt is not di-leptonic; TtGenEvent is not filled"; 00152 return; 00153 } 00154 theGenEvt_ = edm::RefProd<TtGenEvent>(aGenEvt); 00155 }
Definition at line 120 of file TtDilepEvtSolution.h.
References jetCorrScheme_.
Referenced by TtDilepEvtSolutionMaker::produce().
00121 { jetCorrScheme_ = jetCorrScheme; };
void TtDilepEvtSolution::setLRSignalEvtLRval | ( | double | clr | ) | [inline, protected] |
Definition at line 152 of file TtDilepEvtSolution.h.
References lrSignalEvtLRval_.
00152 {lrSignalEvtLRval_ = clr;};
void TtDilepEvtSolution::setLRSignalEvtObservables | ( | std::vector< std::pair< unsigned int, double > > | varval | ) | [protected] |
Definition at line 160 of file TtDilepEvtSolution.cc.
References lrSignalEvtVarVal_.
Referenced by TtDilepLRSignalSelObservables::operator()().
00161 { 00162 lrSignalEvtVarVal_.clear(); 00163 for(size_t ise = 0; ise<varval.size(); ise++) lrSignalEvtVarVal_.push_back(varval[ise]); 00164 }
void TtDilepEvtSolution::setLRSignalEvtProb | ( | double | plr | ) | [inline, protected] |
void TtDilepEvtSolution::setMET | ( | const edm::Handle< std::vector< pat::MET > > & | met, | |
int | i | |||
) | [inline, protected] |
Definition at line 138 of file TtDilepEvtSolution.h.
References CaloMET_cfi::met, and met_.
Referenced by TtDilepEvtSolutionMaker::produce().
00139 { met_ = edm::Ref<std::vector<pat::MET> >(met, i); };
void TtDilepEvtSolution::setMuonm | ( | const edm::Handle< std::vector< pat::Muon > > & | muon, | |
int | i | |||
) | [inline, protected] |
Definition at line 128 of file TtDilepEvtSolution.h.
References metsig::muon, muonm_, and wmDecay_.
Referenced by TtDilepEvtSolutionMaker::produce().
00129 { muonm_ = edm::Ref<std::vector<pat::Muon> >(muon, i); wmDecay_ = "muon"; }
void TtDilepEvtSolution::setMuonp | ( | const edm::Handle< std::vector< pat::Muon > > & | muon, | |
int | i | |||
) | [inline, protected] |
Definition at line 126 of file TtDilepEvtSolution.h.
References metsig::muon, muonp_, and wpDecay_.
Referenced by TtDilepEvtSolutionMaker::produce().
00127 { muonp_ = edm::Ref<std::vector<pat::Muon> >(muon, i); wpDecay_ = "muon"; };
void TtDilepEvtSolution::setRecTopMass | ( | double | mass | ) | [inline, protected] |
Definition at line 145 of file TtDilepEvtSolution.h.
References topmass_.
Referenced by TtFullLepKinSolver::addKinSolInfo().
00145 { topmass_ = mass; };
void TtDilepEvtSolution::setRecWeightMax | ( | double | wgt | ) | [inline, protected] |
Definition at line 146 of file TtDilepEvtSolution.h.
References weightmax_.
Referenced by TtFullLepKinSolver::addKinSolInfo().
00146 { weightmax_ = wgt; };
void TtDilepEvtSolution::setTaum | ( | const edm::Handle< std::vector< pat::Tau > > & | tau, | |
int | i | |||
) | [inline, protected] |
Definition at line 132 of file TtDilepEvtSolution.h.
References metsig::tau, taum_, and wmDecay_.
Referenced by TtDilepEvtSolutionMaker::produce().
00133 { taum_ = edm::Ref<std::vector<pat::Tau> >(tau, i); wmDecay_ = "tau"; }
void TtDilepEvtSolution::setTaup | ( | const edm::Handle< std::vector< pat::Tau > > & | tau, | |
int | i | |||
) | [inline, protected] |
Definition at line 130 of file TtDilepEvtSolution.h.
References metsig::tau, taup_, and wpDecay_.
Referenced by TtDilepEvtSolutionMaker::produce().
00131 { taup_ = edm::Ref<std::vector<pat::Tau> >(tau, i); wpDecay_ = "tau"; }
friend class TtDilepEvtSolutionMaker [friend] |
Definition at line 29 of file TtDilepEvtSolution.h.
friend class TtDilepLRSignalSelObservables [friend] |
Definition at line 30 of file TtDilepEvtSolution.h.
friend class TtFullLepKinSolver [friend] |
Definition at line 28 of file TtDilepEvtSolution.h.
friend class TtLRSignalSelCalc [friend] |
Definition at line 31 of file TtDilepEvtSolution.h.
bool TtDilepEvtSolution::bestSol_ [private] |
Definition at line 173 of file TtDilepEvtSolution.h.
Referenced by getBestSol(), setBestSol(), and TtDilepEvtSolution().
edm::Ref<std::vector<pat::Electron> > TtDilepEvtSolution::elecm_ [private] |
Definition at line 161 of file TtDilepEvtSolution.h.
Referenced by getElectronm(), and setElectronm().
edm::Ref<std::vector<pat::Electron> > TtDilepEvtSolution::elecp_ [private] |
Definition at line 161 of file TtDilepEvtSolution.h.
Referenced by getElectronp(), and setElectronp().
edm::Ref<std::vector<pat::Jet> > TtDilepEvtSolution::jetB_ [private] |
edm::Ref<std::vector<pat::Jet> > TtDilepEvtSolution::jetBbar_ [private] |
int TtDilepEvtSolution::jetCorrScheme_ [private] |
Definition at line 170 of file TtDilepEvtSolution.h.
Referenced by getJetB(), getJetBbar(), setJetCorrectionScheme(), and TtDilepEvtSolution().
double TtDilepEvtSolution::lrSignalEvtLRval_ [private] |
Definition at line 177 of file TtDilepEvtSolution.h.
Referenced by getLRSignalEvtLRval(), and setLRSignalEvtLRval().
double TtDilepEvtSolution::lrSignalEvtProb_ [private] |
std::vector<std::pair<unsigned int, double> > TtDilepEvtSolution::lrSignalEvtVarVal_ [private] |
Definition at line 178 of file TtDilepEvtSolution.h.
Referenced by getLRSignalEvtObsVal(), and setLRSignalEvtObservables().
edm::Ref<std::vector<pat::MET> > TtDilepEvtSolution::met_ [private] |
edm::Ref<std::vector<pat::Muon> > TtDilepEvtSolution::muonm_ [private] |
edm::Ref<std::vector<pat::Muon> > TtDilepEvtSolution::muonp_ [private] |
edm::Ref<std::vector<pat::Tau> > TtDilepEvtSolution::taum_ [private] |
edm::Ref<std::vector<pat::Tau> > TtDilepEvtSolution::taup_ [private] |
edm::RefProd<TtGenEvent> TtDilepEvtSolution::theGenEvt_ [private] |
Definition at line 153 of file TtDilepEvtSolution.h.
Referenced by getGenB(), getGenBbar(), getGenEvent(), getGenLepm(), getGenLepp(), getGenN(), getGenNbar(), getGenT(), getGenTbar(), getGenWm(), getGenWp(), and setGenEvt().
double TtDilepEvtSolution::topmass_ [private] |
Definition at line 174 of file TtDilepEvtSolution.h.
Referenced by getRecTopMass(), setRecTopMass(), and TtDilepEvtSolution().
double TtDilepEvtSolution::weightmax_ [private] |
Definition at line 175 of file TtDilepEvtSolution.h.
Referenced by getRecWeightMax(), setRecWeightMax(), and TtDilepEvtSolution().
std::string TtDilepEvtSolution::wmDecay_ [private] |
Definition at line 172 of file TtDilepEvtSolution.h.
Referenced by getLeptNeg(), getLeptPos(), getWmDecay(), setElectronm(), setMuonm(), setTaum(), and TtDilepEvtSolution().
std::string TtDilepEvtSolution::wpDecay_ [private] |
Definition at line 171 of file TtDilepEvtSolution.h.
Referenced by getLeptPos(), getWpDecay(), setElectronp(), setMuonp(), setTaup(), and TtDilepEvtSolution().