CMS 3D CMS Logo

TtSemiLepJetComb Class Reference

#include <TopQuarkAnalysis/TopJetCombination/interface/TtSemiLepJetComb.h>

List of all members.

Public Member Functions

double addUserVar (std::string key, double value)
 add an arbitary user defined variable with given key and value
double bOverLightQPt () const
 scalar sum of the pt of the b candidates relative to scalar sum of the pt of the light quark candidates
double bQuarkVar (JetComb::DecayType decay, JetComb::VarType var) const
 b quark candidate variable
double bTag (JetComb::DecayType decay, JetComb::BTagAlgo algo) const
 b-tag value of the b candidate
double combinedBTags (JetComb::BTagAlgo algo, JetComb::Operator op) const
 combined b-tag values of the two b candidates
double compareBLepton (JetComb::DecayType decay, JetComb::CompType comp) const
 comparison between the b and the lepton candidate
double compareBNeutrino (JetComb::DecayType decay, JetComb::CompType comp) const
 comparison between the b and the neutrino candidate
double compareHadBLepB (JetComb::CompType comp) const
 comparison between the two b candidates
double compareHadTopLepTop (JetComb::CompType comp) const
 comparison between the two top candidates
double compareHadWLepW (JetComb::CompType comp) const
 comparison between the two W candidates
double compareLeptonNeutrino (JetComb::CompType comp) const
 comparison between the lepton and the neutrino candidate
double compareLightQuarks (JetComb::CompType comp) const
 comparison between the lightQ and the lightQBar candidate
double compareTopB (JetComb::DecayType dec1, JetComb::DecayType dec2, JetComb::CompType comp) const
 comparison between the top and the b candidate
double compareTopLepton (JetComb::DecayType decay, JetComb::CompType comp) const
 comparison between the top and the lepton candidate
double compareTopNeutrino (JetComb::DecayType decay, JetComb::CompType comp) const
 comparison between the top and the neutrino candidate
double compareTopW (JetComb::DecayType dec1, JetComb::DecayType dec2, JetComb::CompType comp) const
 comparison between the top and the W candidate
double compareWB (JetComb::DecayType dec1, JetComb::DecayType dec2, JetComb::CompType comp) const
 comparison between the W and the b candidate
double compareWLepton (JetComb::DecayType decay, JetComb::CompType comp) const
 comparison between the W and the lepton candidate
double compareWNeutrino (JetComb::DecayType decay, JetComb::CompType comp) const
 comparison between the W and the neutrino candidate
double leptonVar (JetComb::VarType var) const
 lepton candidate variable
double lightQVar (bool qbar, JetComb::VarType var) const
 light quark candidate variable
double neutrinoVar (JetComb::VarType var) const
 neutrino candidate variable
double relativePtHadronicTop () const
 pt of the hadronic top candidate relative to pt of the sum of all other reconstruction possibilities (returns values between 0 and 1)
double topVar (JetComb::DecayType decay, JetComb::VarType var) const
 top quark candidate variable
 TtSemiLepJetComb (const std::vector< pat::Jet > &, const std::vector< int > &, const math::XYZTLorentzVector &, const pat::MET &)
 default constructor
 TtSemiLepJetComb ()
 emtpy constructor
double userVar (const std::string &key) const
 receive user defined variable value with given key
double wBosonVar (JetComb::DecayType decay, JetComb::VarType var) const
 W boson candidate variable.
 ~TtSemiLepJetComb ()
 default destructor

Private Member Functions

const pat::JetbQuark (JetComb::DecayType decay) const
 return leptonic or hadronic b candidate depending on argument
void deduceMothers ()
 reconstruct mother candidates from final state candidates
const pat::JetlightQ (bool qbar=false) const
 return lightQ or lightQBar candidate depending on argument
double lightQVar (JetComb::VarType var) const
 ligh quark candidate variable with default on q and not qbar
double summedBTag (const std::string &label) const
 sum of btag from leptonic and hadronic b candidate with corresponding btag label
const math::XYZTLorentzVectortop (JetComb::DecayType decay) const
 return leptonic or hadronic top candidate depending on argument
const math::XYZTLorentzVectorwBoson (JetComb::DecayType decay) const
 return leptonic or hadronic W candidate depending on argument

Private Attributes

pat::Jet hadBJet_
 hadronic b jet
pat::Jet hadQBarJet_
 lightQBar jet
pat::Jet hadQJet_
 lightQ jet
math::XYZTLorentzVector hadTop_
 hadronic top 4-vector
math::XYZTLorentzVector hadW_
 hadronic W 4-vector
pat::Jet lepBJet_
 leptonic b jet
math::XYZTLorentzVector lepton_
 lepton 4-vector
math::XYZTLorentzVector lepTop_
 leptonic top 4-vector
math::XYZTLorentzVector lepW_
 leptonic W 4-vector
pat::MET neutrino_
 neutrino candidate
std::map< std::string, double > userVariables_
 map for user defined variables


Detailed Description

Definition at line 34 of file TtSemiLepJetComb.h.


Constructor & Destructor Documentation

TtSemiLepJetComb::TtSemiLepJetComb (  ) 

emtpy constructor

Definition at line 5 of file TtSemiLepJetComb.cc.

00006 {
00007 }

TtSemiLepJetComb::TtSemiLepJetComb ( const std::vector< pat::Jet > &  jets,
const std::vector< int > &  combination,
const math::XYZTLorentzVector lepton,
const pat::MET neutrino 
)

default constructor

Definition at line 9 of file TtSemiLepJetComb.cc.

References deduceMothers(), TtSemiLepEvtPartons::HadB, hadBJet_, hadQBarJet_, hadQJet_, TtSemiLepEvtPartons::LepB, lepBJet_, lepton_, TtSemiLepEvtPartons::LightQ, TtSemiLepEvtPartons::LightQBar, and neutrino_.

00011 { 
00012   // receive right jet association
00013   // from jet-parton matching 
00014   hadQJet_    = jets[ combination[TtSemiLepEvtPartons::LightQ   ] ];
00015   hadQBarJet_ = jets[ combination[TtSemiLepEvtPartons::LightQBar] ];
00016   hadBJet_    = jets[ combination[TtSemiLepEvtPartons::HadB     ] ];
00017   lepBJet_    = jets[ combination[TtSemiLepEvtPartons::LepB     ] ]; 
00018   lepton_     = lepton;
00019   neutrino_   = neutrino;
00020   // create mother candidates from 
00021   // final-state candidates
00022   deduceMothers();
00023 }

TtSemiLepJetComb::~TtSemiLepJetComb (  ) 

default destructor

Definition at line 26 of file TtSemiLepJetComb.cc.

00027 {
00028 }


Member Function Documentation

double TtSemiLepJetComb::addUserVar ( std::string  key,
double  value 
) [inline]

add an arbitary user defined variable with given key and value

Definition at line 101 of file TtSemiLepJetComb.h.

References userVariables_.

00101 { return userVariables_[key]=value;};

double TtSemiLepJetComb::bOverLightQPt (  )  const [inline]

scalar sum of the pt of the b candidates relative to scalar sum of the pt of the light quark candidates

Definition at line 385 of file TtSemiLepJetComb.h.

References bQuark(), JetComb::kHad, JetComb::kLep, lightQ(), and p4.

Referenced by evaluateTtSemiLepJetComb().

00386 {
00387   return (bQuark(JetComb::kHad).p4().pt()+bQuark(JetComb::kLep).p4().pt())/(lightQ().p4().pt()+lightQ(true).p4().pt());  
00388 }

const pat::Jet& TtSemiLepJetComb::bQuark ( JetComb::DecayType  decay  )  const [inline, private]

return leptonic or hadronic b candidate depending on argument

Definition at line 118 of file TtSemiLepJetComb.h.

References hadBJet_, JetComb::kHad, and lepBJet_.

Referenced by bOverLightQPt(), bQuarkVar(), bTag(), compareBLepton(), compareBNeutrino(), compareHadBLepB(), compareTopB(), compareWB(), and relativePtHadronicTop().

00118 { return (decay==JetComb::kHad ? hadBJet_ : lepBJet_); }

double TtSemiLepJetComb::bQuarkVar ( JetComb::DecayType  decay,
JetComb::VarType  var 
) const [inline]

b quark candidate variable

Definition at line 174 of file TtSemiLepJetComb.h.

References bQuark(), JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, and JetComb::kTheta.

Referenced by evaluateTtSemiLepJetComb().

00175 {
00176   switch(var){
00177   case JetComb::kMass  : return -9999.;
00178   case JetComb::kPt    : return bQuark(decay).p4().pt();
00179   case JetComb::kEta   : return bQuark(decay).p4().eta();
00180   case JetComb::kPhi   : return bQuark(decay).p4().phi();
00181   case JetComb::kTheta : return bQuark(decay).p4().theta();
00182   };
00183   return -9999.;
00184 }

double TtSemiLepJetComb::bTag ( JetComb::DecayType  decay,
JetComb::BTagAlgo  algo 
) const [inline]

b-tag value of the b candidate

Definition at line 390 of file TtSemiLepJetComb.h.

References pat::Jet::bDiscriminator(), bQuark(), JetComb::kCombSecondVtx, JetComb::kImpactParaMVA, JetComb::kSimpSecondVtx, JetComb::kSoftMuon, JetComb::kTrkCntHighEff, and JetComb::kTrkCntHighPur.

Referenced by combinedBTags(), and evaluateTtSemiLepJetComb().

00391 {
00392   switch(algo){
00393   case JetComb::kTrkCntHighEff : return bQuark(decay).bDiscriminator("trackCountingHighEffBJetTags"   );
00394   case JetComb::kTrkCntHighPur : return bQuark(decay).bDiscriminator("trackCountingHighPurBJetTags"   );
00395   case JetComb::kSoftMuon      : return bQuark(decay).bDiscriminator("softMuonBJetTags"               );
00396   case JetComb::kSimpSecondVtx : return bQuark(decay).bDiscriminator("simpleSecondaryVertexBJetTags"  );
00397   case JetComb::kCombSecondVtx : return bQuark(decay).bDiscriminator("combinedSecondaryVertexBJetTags");
00398   case JetComb::kImpactParaMVA : return bQuark(decay).bDiscriminator("impactParameterMVABJetTags"     );
00399   };
00400   return -9999.;
00401 }

double TtSemiLepJetComb::combinedBTags ( JetComb::BTagAlgo  algo,
JetComb::Operator  op 
) const [inline]

combined b-tag values of the two b candidates

Definition at line 403 of file TtSemiLepJetComb.h.

References bTag(), JetComb::kAdd, JetComb::kHad, JetComb::kLep, and JetComb::kMult.

Referenced by evaluateTtSemiLepJetComb().

00404 {
00405   switch(op){
00406   case JetComb::kAdd  : return bTag(JetComb::kHad, algo) + bTag(JetComb::kLep, algo);
00407   case JetComb::kMult : return bTag(JetComb::kHad, algo) * bTag(JetComb::kLep, algo);
00408   };
00409   return -9999.;
00410 }

double TtSemiLepJetComb::compareBLepton ( JetComb::DecayType  decay,
JetComb::CompType  comp 
) const [inline]

comparison between the b and the lepton candidate

Definition at line 354 of file TtSemiLepJetComb.h.

References bQuark(), DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and p4.

Referenced by evaluateTtSemiLepJetComb().

00355 {
00356   switch(comp){
00357   case JetComb::kDeltaM     : return -9999.;
00358   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (bQuark(decay).p4(), lepton_);
00359   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(bQuark(decay).p4(), lepton_);
00360   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (bQuark(decay).p4(), lepton_);
00361   };
00362   return -9999.;
00363 }

double TtSemiLepJetComb::compareBNeutrino ( JetComb::DecayType  decay,
JetComb::CompType  comp 
) const [inline]

comparison between the b and the neutrino candidate

Definition at line 365 of file TtSemiLepJetComb.h.

References bQuark(), DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, neutrino_, and p4.

Referenced by evaluateTtSemiLepJetComb().

00366 {
00367   switch(comp){
00368   case JetComb::kDeltaM     : return -9999.;
00369   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (bQuark(decay).p4(), neutrino_.p4());
00370   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(bQuark(decay).p4(), neutrino_.p4());
00371   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (bQuark(decay).p4(), neutrino_.p4());
00372   };
00373   return -9999.;
00374 }

double TtSemiLepJetComb::compareHadBLepB ( JetComb::CompType  comp  )  const [inline]

comparison between the two b candidates

Definition at line 244 of file TtSemiLepJetComb.h.

References bQuark(), DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, JetComb::kHad, JetComb::kLep, and p4.

Referenced by evaluateTtSemiLepJetComb().

00245 {
00246   switch(comp){
00247   case JetComb::kDeltaM     : return -9999.;
00248   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (bQuark(JetComb::kHad).p4(), bQuark(JetComb::kLep).p4());
00249   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(bQuark(JetComb::kHad).p4(), bQuark(JetComb::kLep).p4());
00250   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (bQuark(JetComb::kHad).p4(), bQuark(JetComb::kLep).p4());
00251   };
00252   return -9999.;
00253 }

double TtSemiLepJetComb::compareHadTopLepTop ( JetComb::CompType  comp  )  const [inline]

comparison between the two top candidates

Definition at line 222 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, JetComb::kHad, JetComb::kLep, and top().

Referenced by evaluateTtSemiLepJetComb().

00223 {
00224   switch(comp){
00225   case JetComb::kDeltaM     : return top(JetComb::kHad).mass() - top(JetComb::kLep).mass();  
00226   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (top(JetComb::kHad), top(JetComb::kLep));
00227   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(top(JetComb::kHad), top(JetComb::kLep));
00228   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (top(JetComb::kHad), top(JetComb::kLep));
00229   };
00230   return -9999.;
00231 }

double TtSemiLepJetComb::compareHadWLepW ( JetComb::CompType  comp  )  const [inline]

comparison between the two W candidates

Definition at line 233 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, JetComb::kHad, JetComb::kLep, and wBoson().

Referenced by evaluateTtSemiLepJetComb().

00234 {
00235   switch(comp){
00236   case JetComb::kDeltaM     : return wBoson(JetComb::kHad).mass() - wBoson(JetComb::kLep).mass();
00237   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (wBoson(JetComb::kHad), wBoson(JetComb::kLep));
00238   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(wBoson(JetComb::kHad), wBoson(JetComb::kLep));
00239   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (wBoson(JetComb::kHad), wBoson(JetComb::kLep));
00240   };
00241   return -9999.;
00242 }

double TtSemiLepJetComb::compareLeptonNeutrino ( JetComb::CompType  comp  )  const [inline]

comparison between the lepton and the neutrino candidate

Definition at line 266 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and neutrino_.

00267 {
00268   switch(comp){
00269   case JetComb::kDeltaM     : return -9999.;
00270   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (lepton_, neutrino_.p4());
00271   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(lepton_, neutrino_.p4());
00272   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (lepton_, neutrino_.p4());
00273   };
00274   return -9999.;
00275 }

double TtSemiLepJetComb::compareLightQuarks ( JetComb::CompType  comp  )  const [inline]

comparison between the lightQ and the lightQBar candidate

Definition at line 255 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lightQ(), and p4.

Referenced by evaluateTtSemiLepJetComb().

00256 {
00257   switch(comp){
00258   case JetComb::kDeltaM     : return -9999.;
00259   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (lightQ().p4(), lightQ(true).p4());
00260   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(lightQ().p4(), lightQ(true).p4());
00261   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (lightQ().p4(), lightQ(true).p4());
00262   };
00263   return -9999.;
00264 }

double TtSemiLepJetComb::compareTopB ( JetComb::DecayType  dec1,
JetComb::DecayType  dec2,
JetComb::CompType  comp 
) const [inline]

comparison between the top and the b candidate

Definition at line 288 of file TtSemiLepJetComb.h.

References bQuark(), DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, p4, and top().

Referenced by evaluateTtSemiLepJetComb().

00289 {
00290   switch(comp){
00291   case JetComb::kDeltaM     : return -9999.;
00292   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (top(dec1), bQuark(dec2).p4());
00293   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(top(dec1), bQuark(dec2).p4());
00294   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (top(dec1), bQuark(dec2).p4());
00295   };
00296   return -9999.;
00297 }

double TtSemiLepJetComb::compareTopLepton ( JetComb::DecayType  decay,
JetComb::CompType  comp 
) const [inline]

comparison between the top and the lepton candidate

Definition at line 310 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and top().

Referenced by evaluateTtSemiLepJetComb().

00311 {
00312   switch(comp){
00313   case JetComb::kDeltaM     : return -9999.;
00314   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (top(decay), lepton_);
00315   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(top(decay), lepton_);
00316   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (top(decay), lepton_);
00317   };
00318   return -9999.;
00319 }

double TtSemiLepJetComb::compareTopNeutrino ( JetComb::DecayType  decay,
JetComb::CompType  comp 
) const [inline]

comparison between the top and the neutrino candidate

Definition at line 321 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, neutrino_, and top().

Referenced by evaluateTtSemiLepJetComb().

00322 {
00323   switch(comp){
00324   case JetComb::kDeltaM     : return -9999.;
00325   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (top(decay), neutrino_.p4());
00326   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(top(decay), neutrino_.p4());
00327   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (top(decay), neutrino_.p4());
00328   };
00329   return -9999.;
00330 }

double TtSemiLepJetComb::compareTopW ( JetComb::DecayType  dec1,
JetComb::DecayType  dec2,
JetComb::CompType  comp 
) const [inline]

comparison between the top and the W candidate

Definition at line 277 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, top(), and wBoson().

Referenced by evaluateTtSemiLepJetComb().

00278 {
00279   switch(comp){
00280   case JetComb::kDeltaM     : return top(dec1).mass() - wBoson(dec2).mass();
00281   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (top(dec1), wBoson(dec2));
00282   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(top(dec1), wBoson(dec2));
00283   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (top(dec1), wBoson(dec2));
00284   };
00285   return -9999.;
00286 }

double TtSemiLepJetComb::compareWB ( JetComb::DecayType  dec1,
JetComb::DecayType  dec2,
JetComb::CompType  comp 
) const [inline]

comparison between the W and the b candidate

Definition at line 299 of file TtSemiLepJetComb.h.

References bQuark(), DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, p4, and wBoson().

Referenced by evaluateTtSemiLepJetComb().

00300 {
00301   switch(comp){
00302   case JetComb::kDeltaM     : return -9999.;
00303   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (wBoson(dec1), bQuark(dec2).p4());
00304   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(wBoson(dec1), bQuark(dec2).p4());
00305   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (wBoson(dec1), bQuark(dec2).p4());
00306   };
00307   return -9999.;
00308 }

double TtSemiLepJetComb::compareWLepton ( JetComb::DecayType  decay,
JetComb::CompType  comp 
) const [inline]

comparison between the W and the lepton candidate

Definition at line 332 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, lepton_, and wBoson().

Referenced by evaluateTtSemiLepJetComb().

00333 {
00334   switch(comp){
00335   case JetComb::kDeltaM     : return -9999.;
00336   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (wBoson(decay), lepton_);
00337   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(wBoson(decay), lepton_);
00338   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (wBoson(decay), lepton_);
00339   };
00340   return -9999.;
00341 }

double TtSemiLepJetComb::compareWNeutrino ( JetComb::DecayType  decay,
JetComb::CompType  comp 
) const [inline]

comparison between the W and the neutrino candidate

Definition at line 343 of file TtSemiLepJetComb.h.

References DeltaPhi(), JetComb::kDeltaM, JetComb::kDeltaPhi, JetComb::kDeltaR, JetComb::kDeltaTheta, neutrino_, and wBoson().

Referenced by evaluateTtSemiLepJetComb().

00344 {
00345   switch(comp){
00346   case JetComb::kDeltaM     : return -9999.;
00347   case JetComb::kDeltaR     : return ROOT::Math::VectorUtil::DeltaR  (wBoson(decay), neutrino_.p4());
00348   case JetComb::kDeltaPhi   : return ROOT::Math::VectorUtil::DeltaPhi(wBoson(decay), neutrino_.p4());
00349   case JetComb::kDeltaTheta : return ROOT::Math::VectorUtil::Angle   (wBoson(decay), neutrino_.p4());
00350   };
00351   return -9999.;
00352 }

void TtSemiLepJetComb::deduceMothers (  )  [private]

reconstruct mother candidates from final state candidates

Definition at line 31 of file TtSemiLepJetComb.cc.

References hadBJet_, hadQBarJet_, hadQJet_, hadTop_, hadW_, lepBJet_, lepton_, lepTop_, lepW_, and neutrino_.

Referenced by TtSemiLepJetComb().

00032 {
00033   hadW_   = hadQJet_.p4() + hadQBarJet_.p4();
00034   lepW_   = lepton_       + neutrino_  .p4();
00035   hadTop_ = hadW_         + hadBJet_   .p4();
00036   lepTop_ = lepW_         + lepBJet_   .p4();
00037 }

double TtSemiLepJetComb::leptonVar ( JetComb::VarType  var  )  const [inline]

lepton candidate variable

Definition at line 198 of file TtSemiLepJetComb.h.

References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and lepton_.

00199 {
00200   switch(var){
00201   case JetComb::kMass  : return -9999.;
00202   case JetComb::kPt    : return lepton_.pt();
00203   case JetComb::kEta   : return lepton_.eta();
00204   case JetComb::kPhi   : return lepton_.phi();
00205   case JetComb::kTheta : return lepton_.theta();
00206   };
00207   return -9999.;
00208 }

const pat::Jet& TtSemiLepJetComb::lightQ ( bool  qbar = false  )  const [inline, private]

return lightQ or lightQBar candidate depending on argument

Definition at line 116 of file TtSemiLepJetComb.h.

References hadQBarJet_, and hadQJet_.

Referenced by bOverLightQPt(), compareLightQuarks(), lightQVar(), and relativePtHadronicTop().

00116 { return (qbar ? hadQBarJet_ : hadQJet_); }

double TtSemiLepJetComb::lightQVar ( JetComb::VarType  var  )  const [inline, private]

ligh quark candidate variable with default on q and not qbar

Definition at line 114 of file TtSemiLepJetComb.h.

References lightQVar().

00114 { return lightQVar(false, var); };

double TtSemiLepJetComb::lightQVar ( bool  qbar,
JetComb::VarType  var 
) const [inline]

light quark candidate variable

Definition at line 186 of file TtSemiLepJetComb.h.

References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and lightQ().

Referenced by evaluateTtSemiLepJetComb(), and lightQVar().

00187 {
00188   switch(var){
00189   case JetComb::kMass  : return -9999.;
00190   case JetComb::kPt    : return lightQ(qbar).p4().pt();
00191   case JetComb::kEta   : return lightQ(qbar).p4().eta();
00192   case JetComb::kPhi   : return lightQ(qbar).p4().phi();
00193   case JetComb::kTheta : return lightQ(qbar).p4().theta();
00194   };
00195   return -9999.;
00196 }

double TtSemiLepJetComb::neutrinoVar ( JetComb::VarType  var  )  const [inline]

neutrino candidate variable

Definition at line 210 of file TtSemiLepJetComb.h.

References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and neutrino_.

00211 {
00212   switch(var){
00213   case JetComb::kMass  : return -9999.;
00214   case JetComb::kPt    : return neutrino_.p4().pt();
00215   case JetComb::kEta   : return neutrino_.p4().eta();
00216   case JetComb::kPhi   : return neutrino_.p4().phi();
00217   case JetComb::kTheta : return neutrino_.p4().theta();
00218   };
00219   return -9999.;
00220 }

double TtSemiLepJetComb::relativePtHadronicTop (  )  const [inline]

pt of the hadronic top candidate relative to pt of the sum of all other reconstruction possibilities (returns values between 0 and 1)

Definition at line 376 of file TtSemiLepJetComb.h.

References bQuark(), JetComb::kHad, JetComb::kLep, lightQ(), and top().

Referenced by evaluateTtSemiLepJetComb().

00377 {
00378   return top(JetComb::kHad).pt()/(top(JetComb::kHad).pt()                                               +
00379                          (lightQ()    .p4()+lightQ(true).p4()+bQuark(JetComb::kLep).p4()).pt()          +
00380                          (lightQ()    .p4()+bQuark(JetComb::kHad).p4()+bQuark(JetComb::kLep).p4()).pt() +
00381                          (bQuark(JetComb::kHad).p4()+lightQ(true).p4()+bQuark(JetComb::kLep).p4()).pt()
00382                          ); 
00383 }

double TtSemiLepJetComb::summedBTag ( const std::string &  label  )  const [private]

sum of btag from leptonic and hadronic b candidate with corresponding btag label

const math::XYZTLorentzVector& TtSemiLepJetComb::top ( JetComb::DecayType  decay  )  const [inline, private]

return leptonic or hadronic top candidate depending on argument

Definition at line 122 of file TtSemiLepJetComb.h.

References hadTop_, JetComb::kHad, and lepTop_.

Referenced by compareHadTopLepTop(), compareTopB(), compareTopLepton(), compareTopNeutrino(), compareTopW(), relativePtHadronicTop(), and topVar().

00122 { return (decay==JetComb::kHad ? hadTop_ : lepTop_); }  

double TtSemiLepJetComb::topVar ( JetComb::DecayType  decay,
JetComb::VarType  var 
) const [inline]

top quark candidate variable

Definition at line 150 of file TtSemiLepJetComb.h.

References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and top().

Referenced by evaluateTtSemiLepJetComb().

00151 {
00152   switch(var){
00153   case JetComb::kMass  : return top(decay).mass();
00154   case JetComb::kPt    : return top(decay).pt();
00155   case JetComb::kEta   : return top(decay).eta();
00156   case JetComb::kPhi   : return top(decay).phi();
00157   case JetComb::kTheta : return top(decay).theta();
00158   };
00159   return -9999.;
00160 }

double TtSemiLepJetComb::userVar ( const std::string &  key  )  const [inline]

receive user defined variable value with given key

Definition at line 103 of file TtSemiLepJetComb.h.

References userVariables_.

00103                                              {
00104     return (userVariables_.find(key)!=userVariables_.end() ? userVariables_.find(key)->second : -9999.);};

const math::XYZTLorentzVector& TtSemiLepJetComb::wBoson ( JetComb::DecayType  decay  )  const [inline, private]

return leptonic or hadronic W candidate depending on argument

Definition at line 120 of file TtSemiLepJetComb.h.

References hadW_, JetComb::kHad, and lepW_.

Referenced by compareHadWLepW(), compareTopW(), compareWB(), compareWLepton(), compareWNeutrino(), and wBosonVar().

00120 { return (decay==JetComb::kHad ? hadW_ : lepW_); }

double TtSemiLepJetComb::wBosonVar ( JetComb::DecayType  decay,
JetComb::VarType  var 
) const [inline]

W boson candidate variable.

Definition at line 162 of file TtSemiLepJetComb.h.

References JetComb::kEta, JetComb::kMass, JetComb::kPhi, JetComb::kPt, JetComb::kTheta, and wBoson().

Referenced by evaluateTtSemiLepJetComb().

00163 {
00164   switch(var){
00165   case JetComb::kMass  : return wBoson(decay).mass();
00166   case JetComb::kPt    : return wBoson(decay).pt();
00167   case JetComb::kEta   : return wBoson(decay).eta();
00168   case JetComb::kPhi   : return wBoson(decay).phi();
00169   case JetComb::kTheta : return wBoson(decay).theta();
00170   };
00171   return -9999.;
00172 }


Member Data Documentation

pat::Jet TtSemiLepJetComb::hadBJet_ [private]

hadronic b jet

Definition at line 131 of file TtSemiLepJetComb.h.

Referenced by bQuark(), deduceMothers(), and TtSemiLepJetComb().

pat::Jet TtSemiLepJetComb::hadQBarJet_ [private]

lightQBar jet

Definition at line 129 of file TtSemiLepJetComb.h.

Referenced by deduceMothers(), lightQ(), and TtSemiLepJetComb().

pat::Jet TtSemiLepJetComb::hadQJet_ [private]

lightQ jet

Definition at line 127 of file TtSemiLepJetComb.h.

Referenced by deduceMothers(), lightQ(), and TtSemiLepJetComb().

math::XYZTLorentzVector TtSemiLepJetComb::hadTop_ [private]

hadronic top 4-vector

Definition at line 139 of file TtSemiLepJetComb.h.

Referenced by deduceMothers(), and top().

math::XYZTLorentzVector TtSemiLepJetComb::hadW_ [private]

hadronic W 4-vector

Definition at line 141 of file TtSemiLepJetComb.h.

Referenced by deduceMothers(), and wBoson().

pat::Jet TtSemiLepJetComb::lepBJet_ [private]

leptonic b jet

Definition at line 133 of file TtSemiLepJetComb.h.

Referenced by bQuark(), deduceMothers(), and TtSemiLepJetComb().

math::XYZTLorentzVector TtSemiLepJetComb::lepton_ [private]

lepton 4-vector

Definition at line 137 of file TtSemiLepJetComb.h.

Referenced by compareBLepton(), compareLeptonNeutrino(), compareTopLepton(), compareWLepton(), deduceMothers(), leptonVar(), and TtSemiLepJetComb().

math::XYZTLorentzVector TtSemiLepJetComb::lepTop_ [private]

leptonic top 4-vector

Definition at line 143 of file TtSemiLepJetComb.h.

Referenced by deduceMothers(), and top().

math::XYZTLorentzVector TtSemiLepJetComb::lepW_ [private]

leptonic W 4-vector

Definition at line 145 of file TtSemiLepJetComb.h.

Referenced by deduceMothers(), and wBoson().

pat::MET TtSemiLepJetComb::neutrino_ [private]

neutrino candidate

Definition at line 135 of file TtSemiLepJetComb.h.

Referenced by compareBNeutrino(), compareLeptonNeutrino(), compareTopNeutrino(), compareWNeutrino(), deduceMothers(), neutrinoVar(), and TtSemiLepJetComb().

std::map<std::string, double> TtSemiLepJetComb::userVariables_ [private]

map for user defined variables

Definition at line 147 of file TtSemiLepJetComb.h.

Referenced by addUserVar(), and userVar().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:46 2009 for CMSSW by  doxygen 1.5.4