CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes | Friends
StEvtSolution Class Reference

#include <StEvtSolution.h>

Public Member Functions

bool getBestSol () const
 
pat::Jet getBottom () const
 
int getChangeBL () const
 
double getChi2Prob () const
 
std::string getDecay () const
 
double getDeltaRB () const
 
double getDeltaRL () const
 
pat::Electron getElectron () const
 
pat::Particle getFitBottom () const
 
reco::Particle getFitLept () const
 
pat::Particle getFitLepton () const
 
reco::Particle getFitLepW () const
 
pat::Particle getFitLight () const
 
pat::Particle getFitNeutrino () const
 
const reco::GenParticlegetGenBottom () const
 
const edm::RefProd< StGenEvent > & getGenEvent () const
 
const reco::GenParticlegetGenLept () const
 
const reco::GenParticlegetGenLepton () const
 
const reco::GenParticlegetGenLepW () const
 
const reco::GenParticlegetGenNeutrino () const
 
reco::Particle getLept () const
 
reco::Particle getLepW () const
 
pat::Jet getLight () const
 
pat::Muon getMuon () const
 
pat::MET getNeutrino () const
 
double getPtrueBhadrSel () const
 
double getPtrueBJetSel () const
 
double getPtrueCombExist () const
 
double getPtrueJetComb () const
 
pat::Jet getRecBottom () const
 
pat::Electron getRecElectron () const
 
reco::Particle getRecLept () const
 
reco::Particle getRecLepW () const
 
pat::Jet getRecLight () const
 
pat::Muon getRecMuon () const
 
pat::MET getRecNeutrino () const
 
std::vector< double > getScanValues () const
 
double getSignalLRTot () const
 
double getSignalPur () const
 
double getSumDeltaRjp () const
 
 StEvtSolution ()
 
virtual ~StEvtSolution ()
 

Protected Member Functions

void setBestSol (bool bs)
 
void setBottom (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
void setChangeBL (int bl)
 
void setChi2Prob (double prob)
 
void setDeltaRB (double adr)
 
void setDeltaRL (double adr)
 
void setElectron (const edm::Handle< std::vector< pat::Electron > > &elec, int i)
 
void setFitBottom (const pat::Particle &part)
 
void setFitLepton (const pat::Particle &part)
 
void setFitLight (const pat::Particle &part)
 
void setFitNeutrino (const pat::Particle &part)
 
void setGenEvt (const edm::Handle< StGenEvent > &)
 
void setJetCorrectionScheme (int scheme)
 
void setLight (const edm::Handle< std::vector< pat::Jet > > &jet, int i)
 
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 setPtrueBhadrSel (double pbh)
 
void setPtrueBJetSel (double pbs)
 
void setPtrueCombExist (double pce)
 
void setPtrueJetComb (double pt)
 
void setScanValues (const std::vector< double > &)
 
void setSignalLRTot (double lrt)
 
void setSignalPurity (double pur)
 
void setSumDeltaRjp (double sdr)
 

Private Attributes

bool bestSol_
 
edm::Ref< std::vector< pat::Jet > > bottom_
 
int changeBL_
 
double chi2Prob_
 
std::string decay_
 
double deltaRB_
 
double deltaRL_
 
edm::Ref< std::vector
< pat::Electron > > 
electron_
 
std::vector< pat::ParticlefitBottom_
 
std::vector< pat::ParticlefitLepton_
 
std::vector< pat::ParticlefitLight_
 
std::vector< pat::ParticlefitNeutrino_
 
int jetCorrScheme_
 
edm::Ref< std::vector< pat::Jet > > light_
 
edm::Ref< std::vector
< pat::Muon > > 
muon_
 
edm::Ref< std::vector< pat::MET > > neutrino_
 
double pTrueBhadrSel_
 
double pTrueBJetSel_
 
double pTrueCombExist_
 
double pTrueJetComb_
 
std::vector< double > scanValues_
 
double signalLRTot_
 
double signalPur_
 
double sumDeltaRjp_
 
edm::RefProd< StGenEventtheGenEvt_
 

Friends

class StEvtSolutionMaker
 
class StKinFitter
 

Detailed Description

Definition at line 21 of file StEvtSolution.h.

Constructor & Destructor Documentation

StEvtSolution::StEvtSolution ( )

Definition at line 7 of file StEvtSolution.cc.

References bestSol_, changeBL_, chi2Prob_, deltaRB_, deltaRL_, jetCorrScheme_, pTrueBhadrSel_, pTrueBJetSel_, pTrueCombExist_, pTrueJetComb_, signalLRTot_, signalPur_, and sumDeltaRjp_.

8 {
9  jetCorrScheme_ = 0;
10  chi2Prob_ = -999.;
11  pTrueCombExist_ = -999.;
12  pTrueBJetSel_ = -999.;
13  pTrueBhadrSel_ = -999.;
14  pTrueJetComb_ = -999.;
15  signalPur_ = -999.;
16  signalLRTot_ = -999.;
17  sumDeltaRjp_ = -999.;
18  deltaRB_ = -999.;
19  deltaRL_ = -999.;
20  changeBL_ = -999 ;
21  bestSol_ = false;
22 }
double pTrueJetComb_
double signalLRTot_
double pTrueBhadrSel_
double sumDeltaRjp_
double pTrueCombExist_
double pTrueBJetSel_
StEvtSolution::~StEvtSolution ( )
virtual

Definition at line 24 of file StEvtSolution.cc.

25 {
26 }

Member Function Documentation

bool StEvtSolution::getBestSol ( ) const
inline

Definition at line 94 of file StEvtSolution.h.

pat::Jet StEvtSolution::getBottom ( ) const

Definition at line 31 of file StEvtSolution.cc.

References bottom_, and jetCorrScheme_.

Referenced by getLept().

32 {
33  // WARNING this is obsolete and only
34  // kept for backwards compatibility
35  if(jetCorrScheme_==1){
36  //jet calibrated according to MC truth
37  return bottom_->correctedJet("HAD", "B");
38  }
39  else if(jetCorrScheme_==2){
40  return bottom_->correctedJet("HAD", "B");
41  }
42  else{
43  return *bottom_;
44  }
45 }
edm::Ref< std::vector< pat::Jet > > bottom_
int StEvtSolution::getChangeBL ( ) const
inline

Definition at line 93 of file StEvtSolution.h.

double StEvtSolution::getChi2Prob ( ) const
inline

Definition at line 83 of file StEvtSolution.h.

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

Definition at line 77 of file StEvtSolution.h.

Referenced by getLept(), getLepW(), and getRecLept().

double StEvtSolution::getDeltaRB ( ) const
inline

Definition at line 91 of file StEvtSolution.h.

double StEvtSolution::getDeltaRL ( ) const
inline

Definition at line 92 of file StEvtSolution.h.

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

Definition at line 37 of file StEvtSolution.h.

Referenced by getLept(), getLepW(), and getRecLept().

pat::Particle StEvtSolution::getFitBottom ( ) const
inline

Definition at line 67 of file StEvtSolution.h.

Referenced by getFitLept().

reco::Particle StEvtSolution::getFitLept ( ) const

Definition at line 143 of file StEvtSolution.cc.

References getFitBottom(), getFitLepton(), getFitNeutrino(), and p4.

144 {
145  // FIXME: provide the correct charge from generated event
146  return reco::Particle(0, this->getFitLepton().p4()+this->getFitNeutrino().p4()+this->getFitBottom().p4());
147 }
pat::Particle getFitLepton() const
Definition: StEvtSolution.h:69
double p4[4]
Definition: TauolaWrapper.h:92
pat::Particle getFitNeutrino() const
Definition: StEvtSolution.h:70
pat::Particle getFitBottom() const
Definition: StEvtSolution.h:67
pat::Particle StEvtSolution::getFitLepton ( ) const
inline

Definition at line 69 of file StEvtSolution.h.

Referenced by getFitLept(), and getFitLepW().

reco::Particle StEvtSolution::getFitLepW ( ) const

Definition at line 137 of file StEvtSolution.cc.

References getFitLepton(), getFitNeutrino(), and p4.

138 {
139  // FIXME: provide the correct charge from generated event
140  return reco::Particle(0, this->getFitLepton().p4()+this->getFitNeutrino().p4());
141 }
pat::Particle getFitLepton() const
Definition: StEvtSolution.h:69
double p4[4]
Definition: TauolaWrapper.h:92
pat::Particle getFitNeutrino() const
Definition: StEvtSolution.h:70
pat::Particle StEvtSolution::getFitLight ( ) const
inline

Definition at line 68 of file StEvtSolution.h.

pat::Particle StEvtSolution::getFitNeutrino ( ) const
inline

Definition at line 70 of file StEvtSolution.h.

Referenced by getFitLept(), and getFitLepW().

const reco::GenParticle * StEvtSolution::getGenBottom ( ) const

Definition at line 85 of file StEvtSolution.cc.

References theGenEvt_.

86 {
87  if(!theGenEvt_) return 0;
88  else return theGenEvt_->decayB();
89 }
edm::RefProd< StGenEvent > theGenEvt_
const edm::RefProd<StGenEvent>& StEvtSolution::getGenEvent ( ) const
inline

Definition at line 45 of file StEvtSolution.h.

const reco::GenParticle * StEvtSolution::getGenLept ( ) const

Definition at line 116 of file StEvtSolution.cc.

References theGenEvt_.

117 {
118  if (!theGenEvt_) return 0;
119  else return theGenEvt_->singleTop();
120 }
edm::RefProd< StGenEvent > theGenEvt_
const reco::GenParticle * StEvtSolution::getGenLepton ( ) const

Definition at line 98 of file StEvtSolution.cc.

References theGenEvt_.

99 {
100  if(!theGenEvt_) return 0;
101  else return theGenEvt_->singleLepton();
102 }
edm::RefProd< StGenEvent > theGenEvt_
const reco::GenParticle * StEvtSolution::getGenLepW ( ) const

Definition at line 110 of file StEvtSolution.cc.

References theGenEvt_.

111 {
112  if (!theGenEvt_) return 0;
113  else return theGenEvt_->singleW();
114 }
edm::RefProd< StGenEvent > theGenEvt_
const reco::GenParticle * StEvtSolution::getGenNeutrino ( ) const

Definition at line 104 of file StEvtSolution.cc.

References theGenEvt_.

105 {
106  if(!theGenEvt_) return 0;
107  else return theGenEvt_->singleNeutrino();
108 }
edm::RefProd< StGenEvent > theGenEvt_
reco::Particle StEvtSolution::getLept ( ) const

Definition at line 72 of file StEvtSolution.cc.

References getBottom(), getDecay(), getElectron(), getMuon(), getNeutrino(), AlCaHLTBitMon_ParallelJobs::p, and p4.

73 {
74  // FIXME: the charge from the genevent
76  if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4()+this->getBottom().p4(), math::XYZPoint());
77  if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4()+this->getBottom().p4(), math::XYZPoint());
78  return p;
79 }
pat::Muon getMuon() const
Definition: StEvtSolution.h:36
pat::Jet getBottom() const
double p4[4]
Definition: TauolaWrapper.h:92
std::string getDecay() const
Definition: StEvtSolution.h:77
pat::MET getNeutrino() const
Definition: StEvtSolution.h:38
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
pat::Electron getElectron() const
Definition: StEvtSolution.h:37
reco::Particle StEvtSolution::getLepW ( ) const

Definition at line 63 of file StEvtSolution.cc.

References getDecay(), getElectron(), getMuon(), getNeutrino(), AlCaHLTBitMon_ParallelJobs::p, and p4.

64 {
65  // FIXME: the charge from the genevent
67  if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4(), math::XYZPoint());
68  if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4(), math::XYZPoint());
69  return p;
70 }
pat::Muon getMuon() const
Definition: StEvtSolution.h:36
double p4[4]
Definition: TauolaWrapper.h:92
std::string getDecay() const
Definition: StEvtSolution.h:77
pat::MET getNeutrino() const
Definition: StEvtSolution.h:38
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
pat::Electron getElectron() const
Definition: StEvtSolution.h:37
pat::Jet StEvtSolution::getLight ( ) const

Definition at line 47 of file StEvtSolution.cc.

References jetCorrScheme_, and light_.

48 {
49  // WARNING this is obsolete and only
50  // kept for backwards compatibility
51  if(jetCorrScheme_==1){
52  //jet calibrated according to MC truth
53  return light_->correctedJet("HAD", "UDS");
54  }
55  else if(jetCorrScheme_==2){
56  return light_->correctedJet("HAD", "UDS");
57  }
58  else{
59  return *light_;
60  }
61 }
edm::Ref< std::vector< pat::Jet > > light_
pat::Muon StEvtSolution::getMuon ( ) const
inline

Definition at line 36 of file StEvtSolution.h.

Referenced by getLept(), getLepW(), and getRecLept().

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

Definition at line 38 of file StEvtSolution.h.

Referenced by getLept(), getLepW(), and getRecLept().

double StEvtSolution::getPtrueBhadrSel ( ) const
inline

Definition at line 86 of file StEvtSolution.h.

double StEvtSolution::getPtrueBJetSel ( ) const
inline

Definition at line 85 of file StEvtSolution.h.

double StEvtSolution::getPtrueCombExist ( ) const
inline

Definition at line 84 of file StEvtSolution.h.

double StEvtSolution::getPtrueJetComb ( ) const
inline

Definition at line 87 of file StEvtSolution.h.

pat::Jet StEvtSolution::getRecBottom ( ) const
inline

Definition at line 56 of file StEvtSolution.h.

Referenced by getRecLept().

pat::Electron StEvtSolution::getRecElectron ( ) const
inline

Definition at line 59 of file StEvtSolution.h.

reco::Particle StEvtSolution::getRecLept ( ) const

Definition at line 125 of file StEvtSolution.cc.

References getDecay(), getElectron(), getMuon(), getNeutrino(), getRecBottom(), AlCaHLTBitMon_ParallelJobs::p, and p4.

126 {
127  // FIXME: the charge from the genevent
129  if(this->getDecay() == "muon") p=reco::Particle(0, this->getMuon().p4()+this->getNeutrino().p4()+this->getRecBottom().p4(), math::XYZPoint());
130  if(this->getDecay() == "electron") p=reco::Particle(0, this->getElectron().p4()+this->getNeutrino().p4()+this->getRecBottom().p4(), math::XYZPoint());
131  return p;
132 }
pat::Muon getMuon() const
Definition: StEvtSolution.h:36
pat::Jet getRecBottom() const
Definition: StEvtSolution.h:56
double p4[4]
Definition: TauolaWrapper.h:92
std::string getDecay() const
Definition: StEvtSolution.h:77
pat::MET getNeutrino() const
Definition: StEvtSolution.h:38
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
pat::Electron getElectron() const
Definition: StEvtSolution.h:37
reco::Particle StEvtSolution::getRecLepW ( ) const
inline

Definition at line 61 of file StEvtSolution.h.

pat::Jet StEvtSolution::getRecLight ( ) const
inline

Definition at line 57 of file StEvtSolution.h.

pat::Muon StEvtSolution::getRecMuon ( ) const
inline

Definition at line 58 of file StEvtSolution.h.

pat::MET StEvtSolution::getRecNeutrino ( ) const
inline

Definition at line 60 of file StEvtSolution.h.

std::vector<double> StEvtSolution::getScanValues ( ) const
inline

Definition at line 82 of file StEvtSolution.h.

double StEvtSolution::getSignalLRTot ( ) const
inline

Definition at line 89 of file StEvtSolution.h.

double StEvtSolution::getSignalPur ( ) const
inline

Definition at line 88 of file StEvtSolution.h.

double StEvtSolution::getSumDeltaRjp ( ) const
inline

Definition at line 90 of file StEvtSolution.h.

void StEvtSolution::setBestSol ( bool  bs)
inlineprotected

Definition at line 141 of file StEvtSolution.h.

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

Definition at line 107 of file StEvtSolution.h.

Referenced by StEvtSolutionMaker::produce().

void StEvtSolution::setChangeBL ( int  bl)
inlineprotected

Definition at line 140 of file StEvtSolution.h.

void StEvtSolution::setChi2Prob ( double  prob)
inlineprotected

Definition at line 129 of file StEvtSolution.h.

void StEvtSolution::setDeltaRB ( double  adr)
inlineprotected

Definition at line 138 of file StEvtSolution.h.

void StEvtSolution::setDeltaRL ( double  adr)
inlineprotected

Definition at line 139 of file StEvtSolution.h.

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

Definition at line 113 of file StEvtSolution.h.

Referenced by StEvtSolutionMaker::produce().

void StEvtSolution::setFitBottom ( const pat::Particle part)
inlineprotected

Definition at line 121 of file StEvtSolution.h.

void StEvtSolution::setFitLepton ( const pat::Particle part)
inlineprotected

Definition at line 123 of file StEvtSolution.h.

void StEvtSolution::setFitLight ( const pat::Particle part)
inlineprotected

Definition at line 122 of file StEvtSolution.h.

void StEvtSolution::setFitNeutrino ( const pat::Particle part)
inlineprotected

Definition at line 124 of file StEvtSolution.h.

void StEvtSolution::setGenEvt ( const edm::Handle< StGenEvent > &  aGenEvt)
protected

Definition at line 152 of file StEvtSolution.cc.

References theGenEvt_.

152  {
154 }
edm::RefProd< StGenEvent > theGenEvt_
void StEvtSolution::setJetCorrectionScheme ( int  scheme)
inlineprotected

Definition at line 106 of file StEvtSolution.h.

Referenced by StEvtSolutionMaker::produce().

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

Definition at line 109 of file StEvtSolution.h.

Referenced by StEvtSolutionMaker::produce().

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

Definition at line 111 of file StEvtSolution.h.

Referenced by StEvtSolutionMaker::produce().

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

Definition at line 115 of file StEvtSolution.h.

Referenced by StEvtSolutionMaker::produce().

void StEvtSolution::setPtrueBhadrSel ( double  pbh)
inlineprotected

Definition at line 133 of file StEvtSolution.h.

void StEvtSolution::setPtrueBJetSel ( double  pbs)
inlineprotected

Definition at line 132 of file StEvtSolution.h.

void StEvtSolution::setPtrueCombExist ( double  pce)
inlineprotected

Definition at line 131 of file StEvtSolution.h.

void StEvtSolution::setPtrueJetComb ( double  pt)
inlineprotected

Definition at line 134 of file StEvtSolution.h.

void StEvtSolution::setScanValues ( const std::vector< double > &  val)
protected

Definition at line 159 of file StEvtSolution.cc.

References i, and scanValues_.

159  {
160  for(unsigned int i=0; i<val.size(); i++) scanValues_.push_back(val[i]);
161 }
int i
Definition: DBlmapReader.cc:9
std::vector< double > scanValues_
void StEvtSolution::setSignalLRTot ( double  lrt)
inlineprotected

Definition at line 136 of file StEvtSolution.h.

void StEvtSolution::setSignalPurity ( double  pur)
inlineprotected

Definition at line 135 of file StEvtSolution.h.

void StEvtSolution::setSumDeltaRjp ( double  sdr)
inlineprotected

Definition at line 137 of file StEvtSolution.h.

Friends And Related Function Documentation

friend class StEvtSolutionMaker
friend

Definition at line 23 of file StEvtSolution.h.

friend class StKinFitter
friend

Definition at line 24 of file StEvtSolution.h.

Member Data Documentation

bool StEvtSolution::bestSol_
private

Definition at line 166 of file StEvtSolution.h.

Referenced by StEvtSolution().

edm::Ref<std::vector<pat::Jet> > StEvtSolution::bottom_
private

Definition at line 149 of file StEvtSolution.h.

Referenced by getBottom().

int StEvtSolution::changeBL_
private

Definition at line 165 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::chi2Prob_
private

Definition at line 160 of file StEvtSolution.h.

Referenced by StEvtSolution().

std::string StEvtSolution::decay_
private

Definition at line 158 of file StEvtSolution.h.

double StEvtSolution::deltaRB_
private

Definition at line 164 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::deltaRL_
private

Definition at line 164 of file StEvtSolution.h.

Referenced by StEvtSolution().

edm::Ref<std::vector<pat::Electron> > StEvtSolution::electron_
private

Definition at line 151 of file StEvtSolution.h.

std::vector<pat::Particle> StEvtSolution::fitBottom_
private

Definition at line 153 of file StEvtSolution.h.

std::vector<pat::Particle> StEvtSolution::fitLepton_
private

Definition at line 153 of file StEvtSolution.h.

std::vector<pat::Particle> StEvtSolution::fitLight_
private

Definition at line 153 of file StEvtSolution.h.

std::vector<pat::Particle> StEvtSolution::fitNeutrino_
private

Definition at line 153 of file StEvtSolution.h.

int StEvtSolution::jetCorrScheme_
private

Definition at line 159 of file StEvtSolution.h.

Referenced by getBottom(), getLight(), and StEvtSolution().

edm::Ref<std::vector<pat::Jet> > StEvtSolution::light_
private

Definition at line 149 of file StEvtSolution.h.

Referenced by getLight().

edm::Ref<std::vector<pat::Muon> > StEvtSolution::muon_
private

Definition at line 150 of file StEvtSolution.h.

edm::Ref<std::vector<pat::MET> > StEvtSolution::neutrino_
private

Definition at line 152 of file StEvtSolution.h.

double StEvtSolution::pTrueBhadrSel_
private

Definition at line 162 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::pTrueBJetSel_
private

Definition at line 162 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::pTrueCombExist_
private

Definition at line 162 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::pTrueJetComb_
private

Definition at line 162 of file StEvtSolution.h.

Referenced by StEvtSolution().

std::vector<double> StEvtSolution::scanValues_
private

Definition at line 161 of file StEvtSolution.h.

Referenced by setScanValues().

double StEvtSolution::signalLRTot_
private

Definition at line 163 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::signalPur_
private

Definition at line 163 of file StEvtSolution.h.

Referenced by StEvtSolution().

double StEvtSolution::sumDeltaRjp_
private

Definition at line 164 of file StEvtSolution.h.

Referenced by StEvtSolution().

edm::RefProd<StGenEvent> StEvtSolution::theGenEvt_
private