CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TkEm.h
Go to the documentation of this file.
1 #ifndef DataFormatsL1TCorrelator_TkEm_h
2 #define DataFormatsL1TCorrelator_TkEm_h
3 
4 // -*- C++ -*-
5 //
6 // Package: L1Trigger
7 // Class : TkEm
8 //
9 
12 
14 
16 
17 namespace l1t {
18 
19  class TkEm : public L1Candidate {
20  public:
21  TkEm();
22 
23  TkEm(const LorentzVector& p4, const edm::Ref<EGammaBxCollection>& egRef, float tkisol = -999.);
24 
25  TkEm(const LorentzVector& p4,
26  const edm::Ref<EGammaBxCollection>& egRef,
27  float tkisol = -999.,
28  float tkisolPV = -999);
29 
30  // ---------- const member functions ---------------------
31 
32  const edm::Ref<EGammaBxCollection>& EGRef() const { return egRef_; }
33 
34  const double l1RefEta() const { return egRef_->eta(); }
35 
36  const double l1RefPhi() const { return egRef_->phi(); }
37 
38  const double l1RefEt() const { return egRef_->et(); }
39 
40  float trkIsol() const { return trkIsol_; } // not constrained to the PV, just track ptSum
41 
42  float trkIsolPV() const { return trkIsolPV_; } // constrained to the PV by DZ
43 
44  // ---------- member functions ---------------------------
45 
46  void setTrkIsol(float TrkIsol) { trkIsol_ = TrkIsol; }
47  void setTrkIsolPV(float TrkIsolPV) { trkIsolPV_ = TrkIsolPV; }
48 
49  private:
51  float trkIsol_;
52  float trkIsolPV_;
53  };
54 } // namespace l1t
55 
56 #endif
edm::Ref< EGammaBxCollection > egRef_
Definition: TkEm.h:50
const LorentzVector & p4() const final
four-momentum Lorentz vector
const edm::Ref< EGammaBxCollection > & EGRef() const
Definition: TkEm.h:32
float trkIsolPV_
Definition: TkEm.h:52
float trkIsol_
Definition: TkEm.h:51
float trkIsol() const
Definition: TkEm.h:40
Definition: TkEm.h:19
const double l1RefEta() const
Definition: TkEm.h:34
float trkIsolPV() const
Definition: TkEm.h:42
void setTrkIsolPV(float TrkIsolPV)
Definition: TkEm.h:47
TkEm()
Definition: TkEm.cc:11
void setTrkIsol(float TrkIsol)
Definition: TkEm.h:46
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
const double l1RefEt() const
Definition: TkEm.h:38
const double l1RefPhi() const
Definition: TkEm.h:36