Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:15

0001 #ifndef TtSemiLepSignalSel_h
0002 #define TtSemiLepSignalSel_h
0003 
0004 #include <vector>
0005 #include "TMath.h"
0006 #include "Math/VectorUtil.h"
0007 
0008 #include "DataFormats/PatCandidates/interface/Jet.h"
0009 #include "DataFormats/PatCandidates/interface/MET.h"
0010 
0011 class TtSemiLepSignalSel {
0012   // common calculator class for likelihood
0013   // variables in semi leptonic ttbar decays
0014 public:
0015   TtSemiLepSignalSel();
0016   TtSemiLepSignalSel(const std::vector<pat::Jet>&, const math::XYZTLorentzVector&, const edm::View<pat::MET>&);
0017   ~TtSemiLepSignalSel();
0018 
0019   double sumEt() const { return var_sumEt; }
0020   double Et1() const { return var_Et1 / var_sumEt; }
0021   double lepeta() const { return fabs(var_lepeta); }
0022   double MET() const { return var_MET; }
0023 
0024   double dphiMETlepton() const { return var_dphiMETlepton; }
0025 
0026   double detajet2jet3() const { return var_detajet2jet3; }
0027   double detajet3jet4() const { return var_detajet3jet4; }
0028 
0029   double mindijetmass() const { return var_mindijetmass / massalljets; }
0030   double maxdijetmass() const { return var_maxdijetmass / massalljets; }
0031 
0032   double mindRjetlepton() const { return var_mindRjetlepton; }
0033 
0034   double DeltaPhi(const math::XYZTLorentzVector&, const math::XYZTLorentzVector&);
0035   double DeltaR(const math::XYZTLorentzVector&, const math::XYZTLorentzVector&);
0036 
0037 private:
0038   double var_sumEt;
0039   double var_Et1;
0040   double var_lepeta;
0041   double var_MET;
0042 
0043   double var_dphiMETlepton;
0044 
0045   double var_detajet2jet3;
0046   double var_detajet3jet4;
0047 
0048   double var_mindijetmass;
0049   double var_maxdijetmass;
0050 
0051   double var_mindRjetlepton;
0052 
0053   double massalljets;
0054 };
0055 
0056 #endif