CMS 3D CMS Logo

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  float trkIsolPV() const { return trkIsolPV_; } // constrained to the PV by DZ
42  float pfIsol() const { return pfIsol_; } // not constrained to the PV, just track ptSum
43  float pfIsolPV() const { return pfIsolPV_; } // constrained to the PV by DZ
44  float puppiIsol() const { return puppiIsol_; } // not constrained to the PV, just track ptSum
45  float puppiIsolPV() const { return puppiIsolPV_; } // constrained to the PV by DZ
46 
47  // ---------- member functions ---------------------------
48 
49  void setTrkIsol(float TrkIsol) { trkIsol_ = TrkIsol; }
50  void setTrkIsolPV(float TrkIsolPV) { trkIsolPV_ = TrkIsolPV; }
51  void setPFIsol(float pfIsol) { pfIsol_ = pfIsol; }
55  void setEGRef(const edm::Ref<EGammaBxCollection>& egRef) { egRef_ = egRef; }
56 
57  private:
59  float trkIsol_;
60  float trkIsolPV_;
61  float pfIsol_;
62  float pfIsolPV_;
63  float puppiIsol_;
64  float puppiIsolPV_;
65  };
66 } // namespace l1t
67 
68 #endif
float trkIsolPV() const
Definition: TkEm.h:41
float trkIsol() const
Definition: TkEm.h:40
float puppiIsol_
Definition: TkEm.h:63
void setPuppiIsol(float puppiIsol)
Definition: TkEm.h:53
void setEGRef(const edm::Ref< EGammaBxCollection > &egRef)
Definition: TkEm.h:55
delete x;
Definition: CaloConfig.h:22
edm::Ref< EGammaBxCollection > egRef_
Definition: TkEm.h:58
const edm::Ref< EGammaBxCollection > & EGRef() const
Definition: TkEm.h:32
const LorentzVector & p4() const final
four-momentum Lorentz vector
float trkIsolPV_
Definition: TkEm.h:60
const double l1RefEt() const
Definition: TkEm.h:38
float trkIsol_
Definition: TkEm.h:59
const double l1RefPhi() const
Definition: TkEm.h:36
Definition: TkEm.h:19
float pfIsolPV() const
Definition: TkEm.h:43
void setTrkIsolPV(float TrkIsolPV)
Definition: TkEm.h:50
float pfIsolPV_
Definition: TkEm.h:62
float puppiIsolPV_
Definition: TkEm.h:64
TkEm()
Definition: TkEm.cc:11
void setTrkIsol(float TrkIsol)
Definition: TkEm.h:49
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
const double l1RefEta() const
Definition: TkEm.h:34
float pfIsol_
Definition: TkEm.h:61
void setPFIsolPV(float pfIsolPV)
Definition: TkEm.h:52
void setPuppiIsolPV(float puppiIsolPV)
Definition: TkEm.h:54
void setPFIsol(float pfIsol)
Definition: TkEm.h:51
float pfIsol() const
Definition: TkEm.h:42
float puppiIsolPV() const
Definition: TkEm.h:45
float puppiIsol() const
Definition: TkEm.h:44