CMS 3D CMS Logo

Jet.cc
Go to the documentation of this file.
2 using namespace l1t;
3 
5  towerIEta_ = 0;
6  towerIPhi_ = 0;
7  rawEt_ = 0;
8  seedEt_ = 0;
9  puEt_ = 0;
10  puDonutEt_[0] = puDonutEt_[1] = puDonutEt_[2] = puDonutEt_[3] = 0;
11 }
12 
13 Jet::Jet( const LorentzVector& p4,
14  int pt,
15  int eta,
16  int phi,
17  int qual )
18  : L1Candidate(p4, pt, eta, phi, qual, 0)
19 {
20  clear_extended();
21 }
22 
24  int pt,
25  int eta,
26  int phi,
27  int qual )
28  : L1Candidate(p4, pt, eta, phi, qual, 0)
29 {
30  clear_extended();
31 }
32 
33 Jet::~Jet()
34 {
35 
36 }
37 
38 void Jet::setTowerIEta(short int ieta) {
39  towerIEta_ = ieta;
40 }
41 
42 void Jet::setTowerIPhi(short int iphi) {
43  towerIPhi_ = iphi;
44 }
45 
46 void Jet::setSeedEt(short int et) {
47  seedEt_ = et;
48 }
49 
50 void Jet::setRawEt(short int et) {
51  rawEt_ = et;
52 }
53 
54 void Jet::setPUEt(short int et) {
55  puEt_ = et;
56 }
57 
58 void Jet::setPUDonutEt(unsigned int i, short int et) {
59  if (i<4) puDonutEt_[i] = et;
60 }
61 
62 short int Jet::towerIEta() const {
63  return towerIEta_;
64 }
65 
66 short int Jet::towerIPhi() const {
67  return towerIPhi_;
68 }
69 
70 short int Jet::seedEt() const {
71  return seedEt_;
72 }
73 
74 short int Jet::rawEt() const {
75  return rawEt_;
76 }
77 
78 short int Jet::puEt() const {
79  return puEt_;
80 }
81 
82 short int Jet::puDonutEt(int i) const {
83  if (i>=0 && i<4) return puDonutEt_[i];
84  else return 0;
85 }
86 
87 bool Jet::operator==(const l1t::Jet& rhs) const
88 {
89  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate &>(rhs))
90  && towerIEta_ == rhs.towerIEta()
91  && towerIPhi_ == rhs.towerIPhi()
92  && rawEt_ == rhs.rawEt()
93  && seedEt_ == rhs.seedEt()
94  && puEt_ == rhs.puEt()
95  && puDonutEt_[0] == rhs.puDonutEt(0)
96  && puDonutEt_[1] == rhs.puDonutEt(1)
97  && puDonutEt_[2] == rhs.puDonutEt(2)
98  && puDonutEt_[3] == rhs.puDonutEt(3);
99 }
100 
double eta() const final
momentum pseudorapidity
short int seedEt_
Definition: Jet.h:63
short int puDonutEt_[4]
Definition: Jet.h:65
short int rawEt() const
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:25
double pt() const final
transverse momentum
delete x;
Definition: CaloConfig.h:22
short int seedEt() const
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:44
short int puEt_
Definition: Jet.h:64
short int towerIEta() const
Definition: Jet.h:21
double et() const final
transverse energy
short int puEt() const
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
math::XYZTLorentzVector LorentzVector
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
void clear_extended()
~Jet() override
Destructor.
Definition: Jet.h:41
short int towerIPhi() const
Jet()
Definition: Jet.h:24
short int puDonutEt(int i) const
Jet()
Default constructor.
Definition: Jet.h:36
short int towerIPhi_
Definition: Jet.h:61
short int rawEt_
Definition: Jet.h:62
double phi() const final
momentum azimuthal angle
short int towerIEta_
Definition: Jet.h:60