#include <TtSemiLepSignalSel.h>
Public Member Functions | |
double | DeltaPhi (math::XYZTLorentzVector, math::XYZTLorentzVector) |
double | DeltaR (math::XYZTLorentzVector, math::XYZTLorentzVector) |
double | detajet2jet3 () const |
double | detajet3jet4 () const |
double | dphiMETlepton () const |
double | Et1 () const |
double | lepeta () const |
double | maxdijetmass () const |
double | MET () const |
double | mindijetmass () const |
double | mindRjetlepton () const |
double | sumEt () const |
TtSemiLepSignalSel () | |
TtSemiLepSignalSel (const std::vector< pat::Jet > &, math::XYZTLorentzVector, const edm::View< pat::MET > &) | |
~TtSemiLepSignalSel () | |
Private Attributes | |
double | massalljets |
double | var_detajet2jet3 |
double | var_detajet3jet4 |
double | var_dphiMETlepton |
double | var_Et1 |
double | var_lepeta |
double | var_maxdijetmass |
double | var_MET |
double | var_mindijetmass |
double | var_mindRjetlepton |
double | var_sumEt |
Definition at line 11 of file TtSemiLepSignalSel.h.
TtSemiLepSignalSel::TtSemiLepSignalSel | ( | ) |
Definition at line 4 of file TtSemiLepSignalSel.cc.
{}
TtSemiLepSignalSel::TtSemiLepSignalSel | ( | const std::vector< pat::Jet > & | topJets, |
math::XYZTLorentzVector | lepton, | ||
const edm::View< pat::MET > & | MET | ||
) |
Definition at line 6 of file TtSemiLepSignalSel.cc.
References edm::View< T >::begin(), cmsDriverOptions::counter, DeltaPhi(), DeltaR(), i, j, TtFullLepDaughter::Lep, massalljets, var_detajet2jet3, var_detajet3jet4, var_dphiMETlepton, var_Et1, var_lepeta, var_maxdijetmass, var_MET, var_mindijetmass, var_mindRjetlepton, and var_sumEt.
{ //function unsigned int nJetsMax = topJets.size(); var_MET = MET.begin()->et(); var_sumEt = 0.; math::XYZTLorentzVector Jetsum(0.,0.,0.,0.); for(unsigned int i=0; i<nJetsMax; i++) { math::XYZTLorentzVector aJet = topJets[i].p4(); Jetsum += aJet; var_sumEt += topJets[i].et(); } massalljets = Jetsum.M(); var_lepeta = lepton.Eta(); math::XYZTLorentzVector Met = MET.begin()->p4(); math::XYZTLorentzVector Lep = lepton; double Etjet[4]; double Jetjet[6]; double dijetmass; var_mindijetmass = 99999.; var_maxdijetmass = -1.; int counter = 0; for(int i=0; i<4; i++) { math::XYZTLorentzVector aJet = topJets[i].p4(); Etjet[i] = aJet.Et(); for(int j=i+1; j<4; j++) { math::XYZTLorentzVector asecJet = topJets[j].p4(); dijetmass = (aJet+asecJet).M(); if(dijetmass<var_mindijetmass) var_mindijetmass = dijetmass; if(dijetmass>var_maxdijetmass) var_maxdijetmass = dijetmass; counter++; } } var_Et1 = Etjet[0]; var_dphiMETlepton = DeltaPhi(Met,Lep); counter=0; for(int i=0; i<4; i++) { math::XYZTLorentzVector aJet = topJets[i].p4(); for(int j=i+1; j<4; j++) { math::XYZTLorentzVector asecJet = topJets[j].p4(); Jetjet[counter] = fabs(aJet.Eta()-asecJet.Eta()); counter++; } } var_detajet2jet3 = Jetjet[3]; var_detajet3jet4 = Jetjet[5]; double Lepjet[4]; var_mindRjetlepton = 99999.; for(int i=0; i<4; i++) { math::XYZTLorentzVector aJet = topJets[i].p4(); Lepjet[i] = DeltaR(Lep,aJet); if(Lepjet[i]<var_mindRjetlepton) var_mindRjetlepton = Lepjet[i]; } }
TtSemiLepSignalSel::~TtSemiLepSignalSel | ( | ) |
Definition at line 90 of file TtSemiLepSignalSel.cc.
{ }
double TtSemiLepSignalSel::DeltaPhi | ( | math::XYZTLorentzVector | v1, |
math::XYZTLorentzVector | v2 | ||
) |
double TtSemiLepSignalSel::DeltaR | ( | math::XYZTLorentzVector | v1, |
math::XYZTLorentzVector | v2 | ||
) |
Definition at line 83 of file TtSemiLepSignalSel.cc.
References DeltaPhi(), and dPhi().
Referenced by TtSemiLepSignalSel().
double TtSemiLepSignalSel::detajet2jet3 | ( | ) | const [inline] |
Definition at line 27 of file TtSemiLepSignalSel.h.
References var_detajet2jet3.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_detajet2jet3; }
double TtSemiLepSignalSel::detajet3jet4 | ( | ) | const [inline] |
Definition at line 28 of file TtSemiLepSignalSel.h.
References var_detajet3jet4.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_detajet3jet4; }
double TtSemiLepSignalSel::dphiMETlepton | ( | ) | const [inline] |
Definition at line 25 of file TtSemiLepSignalSel.h.
References var_dphiMETlepton.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_dphiMETlepton; }
double TtSemiLepSignalSel::Et1 | ( | ) | const [inline] |
Definition at line 21 of file TtSemiLepSignalSel.h.
References var_Et1, and var_sumEt.
Referenced by evaluateTtSemiLepSignalSel().
double TtSemiLepSignalSel::lepeta | ( | ) | const [inline] |
Definition at line 22 of file TtSemiLepSignalSel.h.
References var_lepeta.
Referenced by evaluateTtSemiLepSignalSel().
{ return fabs(var_lepeta); }
double TtSemiLepSignalSel::maxdijetmass | ( | ) | const [inline] |
Definition at line 31 of file TtSemiLepSignalSel.h.
References massalljets, and var_maxdijetmass.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_maxdijetmass/massalljets; }
double TtSemiLepSignalSel::MET | ( | ) | const [inline] |
Definition at line 23 of file TtSemiLepSignalSel.h.
References var_MET.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_MET; }
double TtSemiLepSignalSel::mindijetmass | ( | ) | const [inline] |
Definition at line 30 of file TtSemiLepSignalSel.h.
References massalljets, and var_mindijetmass.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_mindijetmass/massalljets; }
double TtSemiLepSignalSel::mindRjetlepton | ( | ) | const [inline] |
Definition at line 33 of file TtSemiLepSignalSel.h.
References var_mindRjetlepton.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_mindRjetlepton; }
double TtSemiLepSignalSel::sumEt | ( | ) | const [inline] |
Definition at line 20 of file TtSemiLepSignalSel.h.
References var_sumEt.
Referenced by evaluateTtSemiLepSignalSel().
{ return var_sumEt; }
double TtSemiLepSignalSel::massalljets [private] |
Definition at line 57 of file TtSemiLepSignalSel.h.
Referenced by maxdijetmass(), mindijetmass(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_detajet2jet3 [private] |
Definition at line 48 of file TtSemiLepSignalSel.h.
Referenced by detajet2jet3(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_detajet3jet4 [private] |
Definition at line 49 of file TtSemiLepSignalSel.h.
Referenced by detajet3jet4(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_dphiMETlepton [private] |
Definition at line 46 of file TtSemiLepSignalSel.h.
Referenced by dphiMETlepton(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_Et1 [private] |
Definition at line 42 of file TtSemiLepSignalSel.h.
Referenced by Et1(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_lepeta [private] |
Definition at line 43 of file TtSemiLepSignalSel.h.
Referenced by lepeta(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_maxdijetmass [private] |
Definition at line 52 of file TtSemiLepSignalSel.h.
Referenced by maxdijetmass(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_MET [private] |
Definition at line 44 of file TtSemiLepSignalSel.h.
Referenced by MET(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_mindijetmass [private] |
Definition at line 51 of file TtSemiLepSignalSel.h.
Referenced by mindijetmass(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_mindRjetlepton [private] |
Definition at line 54 of file TtSemiLepSignalSel.h.
Referenced by mindRjetlepton(), and TtSemiLepSignalSel().
double TtSemiLepSignalSel::var_sumEt [private] |
Definition at line 41 of file TtSemiLepSignalSel.h.
Referenced by Et1(), sumEt(), and TtSemiLepSignalSel().