![]() |
![]() |
#include <AnalysisDataFormats/TopObjects/interface/StEvtSolution.h>
Definition at line 22 of file StEvtSolution.h.
StEvtSolution::StEvtSolution | ( | ) |
Definition at line 8 of file StEvtSolution.cc.
References bestSol_, changeBL_, chi2Prob_, deltaRB_, deltaRL_, jetCorrScheme_, pTrueBhadrSel_, pTrueBJetSel_, pTrueCombExist_, pTrueJetComb_, signalLRTot_, signalPur_, and sumDeltaRjp_.
00009 { 00010 jetCorrScheme_ = 0; 00011 chi2Prob_ = -999.; 00012 pTrueCombExist_ = -999.; 00013 pTrueBJetSel_ = -999.; 00014 pTrueBhadrSel_ = -999.; 00015 pTrueJetComb_ = -999.; 00016 signalPur_ = -999.; 00017 signalLRTot_ = -999.; 00018 sumDeltaRjp_ = -999.; 00019 deltaRB_ = -999.; 00020 deltaRL_ = -999.; 00021 changeBL_ = -999 ; 00022 bestSol_ = false; 00023 }
StEvtSolution::~StEvtSolution | ( | ) | [virtual] |
bool StEvtSolution::getBestSol | ( | ) | const [inline] |
pat::Jet StEvtSolution::getBottom | ( | ) | const |
Definition at line 32 of file StEvtSolution.cc.
References bottom_, and jetCorrScheme_.
Referenced by StKinFitter::addKinFitInfo(), getLept(), and getRecBottom().
00033 { 00034 // WARNING this is obsolete and only 00035 // kept for backwards compatibility 00036 if(jetCorrScheme_==1){ 00037 //jet calibrated according to MC truth 00038 return bottom_->correctedJet("HAD", "B"); 00039 } 00040 else if(jetCorrScheme_==2){ 00041 return bottom_->correctedJet("HAD", "B"); 00042 } 00043 else{ 00044 return *bottom_; 00045 } 00046 }
int StEvtSolution::getChangeBL | ( | ) | const [inline] |
double StEvtSolution::getChi2Prob | ( | ) | const [inline] |
std::string StEvtSolution::getDecay | ( | ) | const [inline] |
Definition at line 78 of file StEvtSolution.h.
References decay_.
Referenced by StKinFitter::addKinFitInfo().
00078 { return decay_; }
double StEvtSolution::getDeltaRB | ( | ) | const [inline] |
double StEvtSolution::getDeltaRL | ( | ) | const [inline] |
pat::Electron StEvtSolution::getElectron | ( | ) | const [inline] |
Definition at line 38 of file StEvtSolution.h.
References electron_.
Referenced by StKinFitter::addKinFitInfo(), and getRecElectron().
00038 { return *electron_; };
pat::Particle StEvtSolution::getFitBottom | ( | ) | const [inline] |
Definition at line 68 of file StEvtSolution.h.
References fitBottom_.
Referenced by getFitLept().
00068 { return (fitBottom_.size()>0 ? fitBottom_.front() : pat::Particle()); };
reco::Particle StEvtSolution::getFitLept | ( | ) | const |
Definition at line 144 of file StEvtSolution.cc.
References getFitBottom(), and getFitNeutrino().
00145 { 00146 // FIXME: provide the correct charge from generated event 00147 return reco::Particle(0, this->getFitLepton().p4()+this->getFitNeutrino().p4()+this->getFitBottom().p4()); 00148 }
pat::Particle StEvtSolution::getFitLepton | ( | ) | const [inline] |
Definition at line 70 of file StEvtSolution.h.
References fitLepton_.
00070 { return (fitLepton_.size()>0 ? fitLepton_.front() : pat::Particle()); };
reco::Particle StEvtSolution::getFitLepW | ( | ) | const |
Definition at line 138 of file StEvtSolution.cc.
References getFitNeutrino().
00139 { 00140 // FIXME: provide the correct charge from generated event 00141 return reco::Particle(0, this->getFitLepton().p4()+this->getFitNeutrino().p4()); 00142 }
pat::Particle StEvtSolution::getFitLight | ( | ) | const [inline] |
Definition at line 69 of file StEvtSolution.h.
References fitLight_.
00069 { return (fitLight_.size()>0 ? fitLight_.front() : pat::Particle()); };
pat::Particle StEvtSolution::getFitNeutrino | ( | ) | const [inline] |
Definition at line 71 of file StEvtSolution.h.
References fitNeutrino_.
Referenced by getFitLept(), and getFitLepW().
00071 { return (fitNeutrino_.size()>0 ? fitNeutrino_.front() : pat::Particle()); };
const reco::GenParticle * StEvtSolution::getGenBottom | ( | ) | const |
Definition at line 86 of file StEvtSolution.cc.
References theGenEvt_.
00087 { 00088 if(!theGenEvt_) return 0; 00089 else return theGenEvt_->decayB(); 00090 }
const edm::RefProd<StGenEvent>& StEvtSolution::getGenEvent | ( | ) | const [inline] |
const reco::GenParticle * StEvtSolution::getGenLept | ( | ) | const |
Definition at line 117 of file StEvtSolution.cc.
References theGenEvt_.
00118 { 00119 if (!theGenEvt_) return 0; 00120 else return theGenEvt_->singleTop(); 00121 }
const reco::GenParticle * StEvtSolution::getGenLepton | ( | ) | const |
Definition at line 99 of file StEvtSolution.cc.
References theGenEvt_.
00100 { 00101 if(!theGenEvt_) return 0; 00102 else return theGenEvt_->singleLepton(); 00103 }
const reco::GenParticle * StEvtSolution::getGenLepW | ( | ) | const |
Definition at line 111 of file StEvtSolution.cc.
References theGenEvt_.
00112 { 00113 if (!theGenEvt_) return 0; 00114 else return theGenEvt_->singleW(); 00115 }
const reco::GenParticle * StEvtSolution::getGenNeutrino | ( | ) | const |
Definition at line 105 of file StEvtSolution.cc.
References theGenEvt_.
00106 { 00107 if(!theGenEvt_) return 0; 00108 else return theGenEvt_->singleNeutrino(); 00109 }
reco::Particle StEvtSolution::getLept | ( | ) | const |
Definition at line 73 of file StEvtSolution.cc.
References getBottom(), getNeutrino(), and p.
00074 { 00075 // FIXME: the charge from the genevent 00076 reco::Particle p; 00077 if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4()+this->getBottom().p4(), math::XYZPoint()); 00078 if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4()+this->getBottom().p4(), math::XYZPoint()); 00079 return p; 00080 }
reco::Particle StEvtSolution::getLepW | ( | ) | const |
Definition at line 64 of file StEvtSolution.cc.
References getNeutrino(), and p.
Referenced by getRecLepW().
00065 { 00066 // FIXME: the charge from the genevent 00067 reco::Particle p; 00068 if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4(), math::XYZPoint()); 00069 if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4(), math::XYZPoint()); 00070 return p; 00071 }
pat::Jet StEvtSolution::getLight | ( | ) | const |
Definition at line 48 of file StEvtSolution.cc.
References jetCorrScheme_, and light_.
Referenced by StKinFitter::addKinFitInfo(), and getRecLight().
00049 { 00050 // WARNING this is obsolete and only 00051 // kept for backwards compatibility 00052 if(jetCorrScheme_==1){ 00053 //jet calibrated according to MC truth 00054 return light_->correctedJet("HAD", "UDS"); 00055 } 00056 else if(jetCorrScheme_==2){ 00057 return light_->correctedJet("HAD", "UDS"); 00058 } 00059 else{ 00060 return *light_; 00061 } 00062 }
pat::Muon StEvtSolution::getMuon | ( | ) | const [inline] |
Definition at line 37 of file StEvtSolution.h.
References muon_.
Referenced by StKinFitter::addKinFitInfo(), and getRecMuon().
00037 { return *muon_; };
pat::MET StEvtSolution::getNeutrino | ( | ) | const [inline] |
Definition at line 39 of file StEvtSolution.h.
References neutrino_.
Referenced by StKinFitter::addKinFitInfo(), getLept(), getLepW(), getRecLept(), and getRecNeutrino().
00039 { return *neutrino_; };
double StEvtSolution::getPtrueBhadrSel | ( | ) | const [inline] |
Definition at line 87 of file StEvtSolution.h.
References pTrueBhadrSel_.
00087 { return pTrueBhadrSel_; }
double StEvtSolution::getPtrueBJetSel | ( | ) | const [inline] |
Definition at line 86 of file StEvtSolution.h.
References pTrueBJetSel_.
00086 { return pTrueBJetSel_; }
double StEvtSolution::getPtrueCombExist | ( | ) | const [inline] |
Definition at line 85 of file StEvtSolution.h.
References pTrueCombExist_.
00085 { return pTrueCombExist_; }
double StEvtSolution::getPtrueJetComb | ( | ) | const [inline] |
Definition at line 88 of file StEvtSolution.h.
References pTrueJetComb_.
00088 { return pTrueJetComb_; }
pat::JetType StEvtSolution::getRecBottom | ( | ) | const [inline] |
Definition at line 57 of file StEvtSolution.h.
References pat::Jet::correctedJet(), and getBottom().
Referenced by getRecLept().
00057 { return this->getBottom().correctedJet("RAW"); };
pat::Electron StEvtSolution::getRecElectron | ( | ) | const [inline] |
Definition at line 60 of file StEvtSolution.h.
References getElectron().
00060 { return this->getElectron(); }; // redundant
reco::Particle StEvtSolution::getRecLept | ( | ) | const |
Definition at line 126 of file StEvtSolution.cc.
References getNeutrino(), getRecBottom(), p, and reco::Particle::p4().
00127 { 00128 // FIXME: the charge from the genevent 00129 reco::Particle p; 00130 if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4()+this->getRecBottom().p4(), math::XYZPoint()); 00131 if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4()+this->getRecBottom().p4(), math::XYZPoint()); 00132 return p; 00133 }
reco::Particle StEvtSolution::getRecLepW | ( | ) | const [inline] |
Definition at line 62 of file StEvtSolution.h.
References getLepW().
00062 { return this->getLepW(); }; // redundant
pat::JetType StEvtSolution::getRecLight | ( | ) | const [inline] |
Definition at line 58 of file StEvtSolution.h.
References pat::Jet::correctedJet(), and getLight().
00058 { return this->getLight ().correctedJet("RAW"); };
pat::Muon StEvtSolution::getRecMuon | ( | ) | const [inline] |
Definition at line 59 of file StEvtSolution.h.
References getMuon().
00059 { return this->getMuon(); }; // redundant
pat::MET StEvtSolution::getRecNeutrino | ( | ) | const [inline] |
Definition at line 61 of file StEvtSolution.h.
References getNeutrino().
00061 { return this->getNeutrino(); }; // redundant
std::vector<double> StEvtSolution::getScanValues | ( | ) | const [inline] |
Definition at line 83 of file StEvtSolution.h.
References scanValues_.
00083 { return scanValues_; }
double StEvtSolution::getSignalLRTot | ( | ) | const [inline] |
Definition at line 90 of file StEvtSolution.h.
References signalLRTot_.
00090 { return signalLRTot_; }
double StEvtSolution::getSignalPur | ( | ) | const [inline] |
double StEvtSolution::getSumDeltaRjp | ( | ) | const [inline] |
Definition at line 91 of file StEvtSolution.h.
References sumDeltaRjp_.
00091 { return sumDeltaRjp_; }
void StEvtSolution::setBottom | ( | const edm::Handle< std::vector< pat::Jet > > & | jet, | |
int | i | |||
) | [inline, protected] |
Definition at line 108 of file StEvtSolution.h.
References bottom_, and metsig::jet.
Referenced by StEvtSolutionMaker::produce().
00109 { bottom_ = edm::Ref<std::vector<pat::Jet> >(jet, i); };
void StEvtSolution::setChi2Prob | ( | double | prob | ) | [inline, protected] |
Definition at line 130 of file StEvtSolution.h.
References chi2Prob_.
Referenced by StKinFitter::addKinFitInfo().
00130 { chi2Prob_ = prob; };
void StEvtSolution::setDeltaRB | ( | double | adr | ) | [inline, protected] |
void StEvtSolution::setDeltaRL | ( | double | adr | ) | [inline, protected] |
void StEvtSolution::setElectron | ( | const edm::Handle< std::vector< pat::Electron > > & | elec, | |
int | i | |||
) | [inline, protected] |
Definition at line 114 of file StEvtSolution.h.
References decay_, and electron_.
Referenced by StEvtSolutionMaker::produce().
00115 { electron_ = edm::Ref<std::vector<pat::Electron> >(elec, i); decay_ = "electron"; };
void StEvtSolution::setFitBottom | ( | const pat::Particle & | part | ) | [inline, protected] |
Definition at line 122 of file StEvtSolution.h.
References fitBottom_.
Referenced by StKinFitter::addKinFitInfo().
00122 { fitBottom_.clear(); fitBottom_.push_back(part); };
void StEvtSolution::setFitLepton | ( | const pat::Particle & | part | ) | [inline, protected] |
Definition at line 124 of file StEvtSolution.h.
References fitLepton_.
Referenced by StKinFitter::addKinFitInfo().
00124 { fitLepton_.clear(); fitLepton_.push_back(part); };
void StEvtSolution::setFitLight | ( | const pat::Particle & | part | ) | [inline, protected] |
Definition at line 123 of file StEvtSolution.h.
References fitLight_.
Referenced by StKinFitter::addKinFitInfo().
void StEvtSolution::setFitNeutrino | ( | const pat::Particle & | part | ) | [inline, protected] |
Definition at line 125 of file StEvtSolution.h.
References fitNeutrino_.
Referenced by StKinFitter::addKinFitInfo().
00125 { fitNeutrino_.clear(); fitNeutrino_.push_back(part); };
void StEvtSolution::setGenEvt | ( | const edm::Handle< StGenEvent > & | aGenEvt | ) | [protected] |
Definition at line 153 of file StEvtSolution.cc.
References theGenEvt_.
00153 { 00154 theGenEvt_ = edm::RefProd<StGenEvent>(aGenEvt); 00155 }
Definition at line 107 of file StEvtSolution.h.
References jetCorrScheme_.
Referenced by StEvtSolutionMaker::produce().
00107 { jetCorrScheme_ = scheme;};
void StEvtSolution::setLight | ( | const edm::Handle< std::vector< pat::Jet > > & | jet, | |
int | i | |||
) | [inline, protected] |
Definition at line 110 of file StEvtSolution.h.
References metsig::jet, and light_.
Referenced by StEvtSolutionMaker::produce().
00111 { light_ = edm::Ref<std::vector<pat::Jet> >(jet, i); };
void StEvtSolution::setMuon | ( | const edm::Handle< std::vector< pat::Muon > > & | muon, | |
int | i | |||
) | [inline, protected] |
Definition at line 112 of file StEvtSolution.h.
References decay_, metsig::muon, and muon_.
Referenced by StEvtSolutionMaker::produce().
00113 { muon_ = edm::Ref<std::vector<pat::Muon> >(muon, i); decay_ = "muon"; };
void StEvtSolution::setNeutrino | ( | const edm::Handle< std::vector< pat::MET > > & | met, | |
int | i | |||
) | [inline, protected] |
Definition at line 116 of file StEvtSolution.h.
References CaloMET_cfi::met, and neutrino_.
Referenced by StEvtSolutionMaker::produce().
00117 { neutrino_ = edm::Ref<std::vector<pat::MET> >(met, i); };
void StEvtSolution::setPtrueBhadrSel | ( | double | pbh | ) | [inline, protected] |
Definition at line 134 of file StEvtSolution.h.
References pTrueBhadrSel_.
00134 { pTrueBhadrSel_ = pbh; };
void StEvtSolution::setPtrueBJetSel | ( | double | pbs | ) | [inline, protected] |
Definition at line 133 of file StEvtSolution.h.
References pTrueBJetSel_.
00133 { pTrueBJetSel_ = pbs; };
void StEvtSolution::setPtrueCombExist | ( | double | pce | ) | [inline, protected] |
Definition at line 132 of file StEvtSolution.h.
References pTrueCombExist_.
00132 { pTrueCombExist_ = pce; };
void StEvtSolution::setPtrueJetComb | ( | double | pt | ) | [inline, protected] |
Definition at line 135 of file StEvtSolution.h.
References pTrueJetComb_.
00135 { pTrueJetComb_ = pt; };
void StEvtSolution::setScanValues | ( | const std::vector< double > & | val | ) | [protected] |
Definition at line 160 of file StEvtSolution.cc.
References i, and scanValues_.
00160 { 00161 for(unsigned int i=0; i<val.size(); i++) scanValues_.push_back(val[i]); 00162 }
void StEvtSolution::setSignalLRTot | ( | double | lrt | ) | [inline, protected] |
Definition at line 137 of file StEvtSolution.h.
References signalLRTot_.
00137 { signalLRTot_ = lrt; };
void StEvtSolution::setSignalPurity | ( | double | pur | ) | [inline, protected] |
void StEvtSolution::setSumDeltaRjp | ( | double | sdr | ) | [inline, protected] |
Definition at line 138 of file StEvtSolution.h.
References sumDeltaRjp_.
00138 { sumDeltaRjp_ = sdr; };
friend class StEvtSolutionMaker [friend] |
Definition at line 24 of file StEvtSolution.h.
friend class StKinFitter [friend] |
Definition at line 25 of file StEvtSolution.h.
bool StEvtSolution::bestSol_ [private] |
edm::Ref<std::vector<pat::Jet> > StEvtSolution::bottom_ [private] |
int StEvtSolution::changeBL_ [private] |
Definition at line 166 of file StEvtSolution.h.
Referenced by getChangeBL(), setChangeBL(), and StEvtSolution().
double StEvtSolution::chi2Prob_ [private] |
Definition at line 161 of file StEvtSolution.h.
Referenced by getChi2Prob(), setChi2Prob(), and StEvtSolution().
std::string StEvtSolution::decay_ [private] |
Definition at line 159 of file StEvtSolution.h.
Referenced by getDecay(), setElectron(), and setMuon().
double StEvtSolution::deltaRB_ [private] |
Definition at line 165 of file StEvtSolution.h.
Referenced by getDeltaRB(), setDeltaRB(), and StEvtSolution().
double StEvtSolution::deltaRL_ [private] |
Definition at line 165 of file StEvtSolution.h.
Referenced by getDeltaRL(), setDeltaRL(), and StEvtSolution().
edm::Ref<std::vector<pat::Electron> > StEvtSolution::electron_ [private] |
std::vector<pat::Particle> StEvtSolution::fitBottom_ [private] |
std::vector<pat::Particle> StEvtSolution::fitLepton_ [private] |
std::vector<pat::Particle> StEvtSolution::fitLight_ [private] |
std::vector<pat::Particle> StEvtSolution::fitNeutrino_ [private] |
Definition at line 154 of file StEvtSolution.h.
Referenced by getFitNeutrino(), and setFitNeutrino().
int StEvtSolution::jetCorrScheme_ [private] |
Definition at line 160 of file StEvtSolution.h.
Referenced by getBottom(), getLight(), setJetCorrectionScheme(), and StEvtSolution().
edm::Ref<std::vector<pat::Jet> > StEvtSolution::light_ [private] |
edm::Ref<std::vector<pat::Muon> > StEvtSolution::muon_ [private] |
edm::Ref<std::vector<pat::MET> > StEvtSolution::neutrino_ [private] |
double StEvtSolution::pTrueBhadrSel_ [private] |
Definition at line 163 of file StEvtSolution.h.
Referenced by getPtrueBhadrSel(), setPtrueBhadrSel(), and StEvtSolution().
double StEvtSolution::pTrueBJetSel_ [private] |
Definition at line 163 of file StEvtSolution.h.
Referenced by getPtrueBJetSel(), setPtrueBJetSel(), and StEvtSolution().
double StEvtSolution::pTrueCombExist_ [private] |
Definition at line 163 of file StEvtSolution.h.
Referenced by getPtrueCombExist(), setPtrueCombExist(), and StEvtSolution().
double StEvtSolution::pTrueJetComb_ [private] |
Definition at line 163 of file StEvtSolution.h.
Referenced by getPtrueJetComb(), setPtrueJetComb(), and StEvtSolution().
std::vector<double> StEvtSolution::scanValues_ [private] |
double StEvtSolution::signalLRTot_ [private] |
Definition at line 164 of file StEvtSolution.h.
Referenced by getSignalLRTot(), setSignalLRTot(), and StEvtSolution().
double StEvtSolution::signalPur_ [private] |
Definition at line 164 of file StEvtSolution.h.
Referenced by getSignalPur(), setSignalPurity(), and StEvtSolution().
double StEvtSolution::sumDeltaRjp_ [private] |
Definition at line 165 of file StEvtSolution.h.
Referenced by getSumDeltaRjp(), setSumDeltaRjp(), and StEvtSolution().
edm::RefProd<StGenEvent> StEvtSolution::theGenEvt_ [private] |
Definition at line 142 of file StEvtSolution.h.
Referenced by getGenBottom(), getGenEvent(), getGenLept(), getGenLepton(), getGenLepW(), getGenNeutrino(), and setGenEvt().