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 
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
l1t::TkEm::trkIsolPV
float trkIsolPV() const
Definition: TkEm.h:42
TTTypes.h
l1t::TkEm::EGRef
const edm::Ref< EGammaBxCollection > & EGRef() const
Definition: TkEm.h:32
l1t::TkEm::trkIsolPV_
float trkIsolPV_
Definition: TkEm.h:52
l1t::TkEm::trkIsol
float trkIsol() const
Definition: TkEm.h:40
edm::Ref
Definition: AssociativeIterator.h:58
l1t::TkEm::trkIsol_
float trkIsol_
Definition: TkEm.h:51
l1t::TkEm::egRef_
edm::Ref< EGammaBxCollection > egRef_
Definition: TkEm.h:50
l1t::L1Candidate
Definition: L1Candidate.h:15
EGamma.h
l1t::TkEm::l1RefEt
const double l1RefEt() const
Definition: TkEm.h:38
l1t::TkEm::l1RefPhi
const double l1RefPhi() const
Definition: TkEm.h:36
l1t::TkEm
Definition: TkEm.h:19
l1t::TkEm::TkEm
TkEm()
Definition: TkEm.cc:11
l1t
delete x;
Definition: CaloConfig.h:22
reco::LeafCandidate::p4
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:114
L1Candidate.h
l1t::TkEm::setTrkIsolPV
void setTrkIsolPV(float TrkIsolPV)
Definition: TkEm.h:47
Ref.h
l1t::TkEm::setTrkIsol
void setTrkIsol(float TrkIsol)
Definition: TkEm.h:46
l1t::TkEm::l1RefEta
const double l1RefEta() const
Definition: TkEm.h:34
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36