#include <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_.
{ jetCorrScheme_ = 0; chi2Prob_ = -999.; pTrueCombExist_ = -999.; pTrueBJetSel_ = -999.; pTrueBhadrSel_ = -999.; pTrueJetComb_ = -999.; signalPur_ = -999.; signalLRTot_ = -999.; sumDeltaRjp_ = -999.; deltaRB_ = -999.; deltaRL_ = -999.; changeBL_ = -999 ; bestSol_ = false; }
StEvtSolution::~StEvtSolution | ( | ) | [virtual] |
Definition at line 25 of file StEvtSolution.cc.
{ }
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().
{ // WARNING this is obsolete and only // kept for backwards compatibility if(jetCorrScheme_==1){ //jet calibrated according to MC truth return bottom_->correctedJet("HAD", "B"); } else if(jetCorrScheme_==2){ return bottom_->correctedJet("HAD", "B"); } else{ return *bottom_; } }
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(), getLept(), getLepW(), and getRecLept().
{ 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(), getLept(), getLepW(), getRecElectron(), and getRecLept().
{ return *electron_; };
pat::Particle StEvtSolution::getFitBottom | ( | ) | const [inline] |
Definition at line 68 of file StEvtSolution.h.
References fitBottom_.
Referenced by getFitLept().
{ return (fitBottom_.size()>0 ? fitBottom_.front() : pat::Particle()); };
reco::Particle StEvtSolution::getFitLept | ( | ) | const |
Definition at line 144 of file StEvtSolution.cc.
References getFitBottom(), getFitLepton(), getFitNeutrino(), and p4.
{ // FIXME: provide the correct charge from generated event return reco::Particle(0, this->getFitLepton().p4()+this->getFitNeutrino().p4()+this->getFitBottom().p4()); }
pat::Particle StEvtSolution::getFitLepton | ( | ) | const [inline] |
Definition at line 70 of file StEvtSolution.h.
References fitLepton_.
Referenced by getFitLept(), and getFitLepW().
{ return (fitLepton_.size()>0 ? fitLepton_.front() : pat::Particle()); };
reco::Particle StEvtSolution::getFitLepW | ( | ) | const |
Definition at line 138 of file StEvtSolution.cc.
References getFitLepton(), getFitNeutrino(), and p4.
{ // FIXME: provide the correct charge from generated event return reco::Particle(0, this->getFitLepton().p4()+this->getFitNeutrino().p4()); }
pat::Particle StEvtSolution::getFitLight | ( | ) | const [inline] |
Definition at line 69 of file StEvtSolution.h.
References fitLight_.
{ 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().
{ return (fitNeutrino_.size()>0 ? fitNeutrino_.front() : pat::Particle()); };
const reco::GenParticle * StEvtSolution::getGenBottom | ( | ) | const |
Definition at line 86 of file StEvtSolution.cc.
References theGenEvt_.
{ if(!theGenEvt_) return 0; else return theGenEvt_->decayB(); }
const edm::RefProd<StGenEvent>& StEvtSolution::getGenEvent | ( | ) | const [inline] |
const reco::GenParticle * StEvtSolution::getGenLept | ( | ) | const |
Definition at line 117 of file StEvtSolution.cc.
References theGenEvt_.
{ if (!theGenEvt_) return 0; else return theGenEvt_->singleTop(); }
const reco::GenParticle * StEvtSolution::getGenLepton | ( | ) | const |
Definition at line 99 of file StEvtSolution.cc.
References theGenEvt_.
{ if(!theGenEvt_) return 0; else return theGenEvt_->singleLepton(); }
const reco::GenParticle * StEvtSolution::getGenLepW | ( | ) | const |
Definition at line 111 of file StEvtSolution.cc.
References theGenEvt_.
{ if (!theGenEvt_) return 0; else return theGenEvt_->singleW(); }
const reco::GenParticle * StEvtSolution::getGenNeutrino | ( | ) | const |
Definition at line 105 of file StEvtSolution.cc.
References theGenEvt_.
{ if(!theGenEvt_) return 0; else return theGenEvt_->singleNeutrino(); }
reco::Particle StEvtSolution::getLept | ( | ) | const |
Definition at line 73 of file StEvtSolution.cc.
References getBottom(), getDecay(), getElectron(), getMuon(), getNeutrino(), L1TEmulatorMonitor_cff::p, and p4.
{ // FIXME: the charge from the genevent reco::Particle p; if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4()+this->getBottom().p4(), math::XYZPoint()); if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4()+this->getBottom().p4(), math::XYZPoint()); return p; }
reco::Particle StEvtSolution::getLepW | ( | ) | const |
Definition at line 64 of file StEvtSolution.cc.
References getDecay(), getElectron(), getMuon(), getNeutrino(), L1TEmulatorMonitor_cff::p, and p4.
Referenced by getRecLepW().
{ // FIXME: the charge from the genevent reco::Particle p; if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4(), math::XYZPoint()); if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4(), math::XYZPoint()); return p; }
pat::Jet StEvtSolution::getLight | ( | ) | const |
Definition at line 48 of file StEvtSolution.cc.
References jetCorrScheme_, and light_.
Referenced by StKinFitter::addKinFitInfo(), and getRecLight().
{ // WARNING this is obsolete and only // kept for backwards compatibility if(jetCorrScheme_==1){ //jet calibrated according to MC truth return light_->correctedJet("HAD", "UDS"); } else if(jetCorrScheme_==2){ return light_->correctedJet("HAD", "UDS"); } else{ return *light_; } }
pat::Muon StEvtSolution::getMuon | ( | ) | const [inline] |
Definition at line 37 of file StEvtSolution.h.
References muon_.
Referenced by StKinFitter::addKinFitInfo(), getLept(), getLepW(), getRecLept(), and getRecMuon().
{ 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().
{ return *neutrino_; };
double StEvtSolution::getPtrueBhadrSel | ( | ) | const [inline] |
Definition at line 87 of file StEvtSolution.h.
References pTrueBhadrSel_.
{ return pTrueBhadrSel_; }
double StEvtSolution::getPtrueBJetSel | ( | ) | const [inline] |
double StEvtSolution::getPtrueCombExist | ( | ) | const [inline] |
Definition at line 85 of file StEvtSolution.h.
References pTrueCombExist_.
{ return pTrueCombExist_; }
double StEvtSolution::getPtrueJetComb | ( | ) | const [inline] |
pat::Jet StEvtSolution::getRecBottom | ( | ) | const [inline] |
Definition at line 57 of file StEvtSolution.h.
References pat::Jet::correctedJet(), and getBottom().
Referenced by getRecLept().
{ return this->getBottom().correctedJet("RAW"); };
pat::Electron StEvtSolution::getRecElectron | ( | ) | const [inline] |
Definition at line 60 of file StEvtSolution.h.
References getElectron().
{ return this->getElectron(); }; // redundant
reco::Particle StEvtSolution::getRecLept | ( | ) | const |
Definition at line 126 of file StEvtSolution.cc.
References getDecay(), getElectron(), getMuon(), getNeutrino(), getRecBottom(), L1TEmulatorMonitor_cff::p, and p4.
{ // FIXME: the charge from the genevent reco::Particle p; if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4()+this->getRecBottom().p4(), math::XYZPoint()); if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4()+this->getRecBottom().p4(), math::XYZPoint()); return p; }
reco::Particle StEvtSolution::getRecLepW | ( | ) | const [inline] |
Definition at line 62 of file StEvtSolution.h.
References getLepW().
{ return this->getLepW(); }; // redundant
pat::Jet StEvtSolution::getRecLight | ( | ) | const [inline] |
Definition at line 58 of file StEvtSolution.h.
References pat::Jet::correctedJet(), and getLight().
{ return this->getLight ().correctedJet("RAW"); };
pat::Muon StEvtSolution::getRecMuon | ( | ) | const [inline] |
Definition at line 59 of file StEvtSolution.h.
References getMuon().
{ return this->getMuon(); }; // redundant
pat::MET StEvtSolution::getRecNeutrino | ( | ) | const [inline] |
Definition at line 61 of file StEvtSolution.h.
References getNeutrino().
{ return this->getNeutrino(); }; // redundant
std::vector<double> StEvtSolution::getScanValues | ( | ) | const [inline] |
double StEvtSolution::getSignalLRTot | ( | ) | const [inline] |
double StEvtSolution::getSignalPur | ( | ) | const [inline] |
double StEvtSolution::getSumDeltaRjp | ( | ) | const [inline] |
void StEvtSolution::setBestSol | ( | bool | bs | ) | [inline, protected] |
Definition at line 142 of file StEvtSolution.h.
{ bestSol_ = bs; };
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_, i, and metsig::jet.
Referenced by StEvtSolutionMaker::produce().
{ bottom_ = edm::Ref<std::vector<pat::Jet> >(jet, i); };
void StEvtSolution::setChangeBL | ( | int | bl | ) | [inline, protected] |
void StEvtSolution::setChi2Prob | ( | double | prob | ) | [inline, protected] |
Definition at line 130 of file StEvtSolution.h.
References chi2Prob_.
Referenced by StKinFitter::addKinFitInfo().
{ 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_, electron_, and i.
Referenced by StEvtSolutionMaker::produce().
{ 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().
{ 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().
{ 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().
{ 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_.
{ theGenEvt_ = edm::RefProd<StGenEvent>(aGenEvt); }
void StEvtSolution::setJetCorrectionScheme | ( | int | scheme | ) | [inline, protected] |
Definition at line 107 of file StEvtSolution.h.
References jetCorrScheme_.
Referenced by StEvtSolutionMaker::produce().
{ 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 i, metsig::jet, and light_.
Referenced by StEvtSolutionMaker::produce().
{ 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_, i, metsig::muon, and muon_.
Referenced by StEvtSolutionMaker::produce().
{ 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 i, CaloMET_cfi::met, and neutrino_.
Referenced by StEvtSolutionMaker::produce().
{ 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_.
{ pTrueBhadrSel_ = pbh; };
void StEvtSolution::setPtrueBJetSel | ( | double | pbs | ) | [inline, protected] |
void StEvtSolution::setPtrueCombExist | ( | double | pce | ) | [inline, protected] |
Definition at line 132 of file StEvtSolution.h.
References pTrueCombExist_.
{ pTrueCombExist_ = pce; };
void StEvtSolution::setPtrueJetComb | ( | double | pt | ) | [inline, protected] |
void StEvtSolution::setScanValues | ( | const std::vector< double > & | val | ) | [protected] |
Definition at line 160 of file StEvtSolution.cc.
References i, and scanValues_.
{ for(unsigned int i=0; i<val.size(); i++) scanValues_.push_back(val[i]); }
void StEvtSolution::setSignalLRTot | ( | double | lrt | ) | [inline, protected] |
void StEvtSolution::setSignalPurity | ( | double | pur | ) | [inline, protected] |
void StEvtSolution::setSumDeltaRjp | ( | double | sdr | ) | [inline, protected] |
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] |
Definition at line 167 of file StEvtSolution.h.
Referenced by getBestSol(), and StEvtSolution().
edm::Ref<std::vector<pat::Jet> > StEvtSolution::bottom_ [private] |
Definition at line 150 of file StEvtSolution.h.
Referenced by getBottom(), and setBottom().
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] |
Definition at line 152 of file StEvtSolution.h.
Referenced by getElectron(), and setElectron().
std::vector<pat::Particle> StEvtSolution::fitBottom_ [private] |
Definition at line 154 of file StEvtSolution.h.
Referenced by getFitBottom(), and setFitBottom().
std::vector<pat::Particle> StEvtSolution::fitLepton_ [private] |
Definition at line 154 of file StEvtSolution.h.
Referenced by getFitLepton(), and setFitLepton().
std::vector<pat::Particle> StEvtSolution::fitLight_ [private] |
Definition at line 154 of file StEvtSolution.h.
Referenced by getFitLight(), and setFitLight().
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] |
Definition at line 150 of file StEvtSolution.h.
Referenced by getLight(), and setLight().
edm::Ref<std::vector<pat::Muon> > StEvtSolution::muon_ [private] |
Definition at line 151 of file StEvtSolution.h.
edm::Ref<std::vector<pat::MET> > StEvtSolution::neutrino_ [private] |
Definition at line 153 of file StEvtSolution.h.
Referenced by getNeutrino(), and setNeutrino().
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] |
Definition at line 162 of file StEvtSolution.h.
Referenced by getScanValues(), and setScanValues().
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().