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 }
mps_fire.i
i
Definition: mps_fire.py:428
l1t::Jet::seedEt_
short int seedEt_
Definition: Jet.h:51
l1t::Jet::towerIEta
short int towerIEta() const
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1t::L1Candidate::operator==
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
Jet.h
l1t::Jet::towerIPhi_
short int towerIPhi_
Definition: Jet.h:49
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
l1t::Jet::towerIEta_
short int towerIEta_
Definition: Jet.h:48
l1t::Jet::seedEt
short int seedEt() const
l1t::L1Candidate
Definition: L1Candidate.h:15
PVValHelper::eta
Definition: PVValidationHelpers.h:70
l1t::Jet::puEt_
short int puEt_
Definition: Jet.h:52
l1t::Jet
Definition: Jet.h:20
l1t::Jet::puDonutEt
short int puDonutEt(int i) const
operator==
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Definition: QGLikelihoodObject.h:49
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
l1t::Jet::puEt
short int puEt() const
PVValHelper::phi
Definition: PVValidationHelpers.h:69
l1t
delete x;
Definition: CaloConfig.h:22
l1t::Jet::rawEt_
short int rawEt_
Definition: Jet.h:50
p4
double p4[4]
Definition: TauolaWrapper.h:92
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
reco::Jet::~Jet
~Jet() override
Destructor.
Definition: Jet.h:41
l1t::Jet::towerIPhi
short int towerIPhi() const
l1t::Jet::clear_extended
void clear_extended()
l1t::Jet::Jet
Jet()
Definition: Jet.h:22
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
reco::Jet::Jet
Jet()
Default constructor.
Definition: Jet.h:36
l1t::Jet::puDonutEt_
short int puDonutEt_[4]
Definition: Jet.h:53
l1t::Jet::rawEt
short int rawEt() const
pfClustersFromCombinedCalo_cfi.seedEt
seedEt
Ecal and Hcal are already ZS-ed above.
Definition: pfClustersFromCombinedCalo_cfi.py:19