CMS 3D CMS Logo

Jet.cc
Go to the documentation of this file.
2 using namespace l1t;
3 
4 void Jet::clear_extended() {
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, int pt, int eta, int phi, int qual) : L1Candidate(p4, pt, eta, phi, qual, 0) {
14  clear_extended();
15 }
16 
17 Jet::Jet(const PolarLorentzVector& p4, int pt, int eta, int phi, int qual) : L1Candidate(p4, pt, eta, phi, qual, 0) {
18  clear_extended();
19 }
20 
21 Jet::~Jet() {}
22 
23 void Jet::setTowerIEta(short int ieta) { towerIEta_ = ieta; }
24 
25 void Jet::setTowerIPhi(short int iphi) { towerIPhi_ = iphi; }
26 
27 void Jet::setSeedEt(short int et) { seedEt_ = et; }
28 
29 void Jet::setRawEt(short int et) { rawEt_ = et; }
30 
31 void Jet::setPUEt(short int et) { puEt_ = et; }
32 
33 void Jet::setPUDonutEt(unsigned int i, short int et) {
34  if (i < 4)
35  puDonutEt_[i] = et;
36 }
37 
38 short int Jet::towerIEta() const { return towerIEta_; }
39 
40 short int Jet::towerIPhi() const { return towerIPhi_; }
41 
42 short int Jet::seedEt() const { return seedEt_; }
43 
44 short int Jet::rawEt() const { return rawEt_; }
45 
46 short int Jet::puEt() const { return puEt_; }
47 
48 short int Jet::puDonutEt(int i) const {
49  if (i >= 0 && i < 4)
50  return puDonutEt_[i];
51  else
52  return 0;
53 }
54 
55 bool Jet::operator==(const l1t::Jet& rhs) const {
56  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && towerIEta_ == rhs.towerIEta() &&
57  towerIPhi_ == rhs.towerIPhi() && rawEt_ == rhs.rawEt() && seedEt_ == rhs.seedEt() && puEt_ == rhs.puEt() &&
58  puDonutEt_[0] == rhs.puDonutEt(0) && puDonutEt_[1] == rhs.puDonutEt(1) && puDonutEt_[2] == rhs.puDonutEt(2) &&
59  puDonutEt_[3] == rhs.puDonutEt(3);
60 }
short int rawEt() const
short int seedEt_
Definition: Jet.h:51
short int puDonutEt_[4]
Definition: Jet.h:53
short int towerIEta() const
delete x;
Definition: CaloConfig.h:22
short int puEt_
Definition: Jet.h:52
Definition: Jet.h:20
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
short int puEt() const
math::XYZTLorentzVector LorentzVector
void clear_extended()
~Jet() override
Destructor.
Definition: Jet.h:41
short int puDonutEt(int i) const
short int towerIPhi() const
short int seedEt() const
double et() const final
transverse energy
Jet()
Definition: Jet.h:22
Jet()
Default constructor.
Definition: Jet.h:36
short int towerIPhi_
Definition: Jet.h:49
short int rawEt_
Definition: Jet.h:50
short int towerIEta_
Definition: Jet.h:48
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14