CMS 3D CMS Logo

Tau.cc
Go to the documentation of this file.
1 
3 using namespace l1t;
4 
5 void Tau::clear_extended() {
6  towerIEta_ = 0;
7  towerIPhi_ = 0;
8  rawEt_ = 0;
9  isoEt_ = 0;
10  nTT_ = 0;
11  hasEM_ = false;
12  isMerged_ = false;
13 }
14 
15 Tau::Tau(const LorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
16  : L1Candidate(p4, pt, eta, phi, qual, iso) {
17  clear_extended();
18 }
19 
20 Tau::Tau(const PolarLorentzVector& p4, int pt, int eta, int phi, int qual, int iso)
21  : L1Candidate(p4, pt, eta, phi, qual, iso) {
22  clear_extended();
23 }
24 
25 Tau::~Tau() {}
26 
27 void Tau::setTowerIEta(short int ieta) { towerIEta_ = ieta; }
28 
29 void Tau::setTowerIPhi(short int iphi) { towerIPhi_ = iphi; }
30 
31 void Tau::setRawEt(short int et) { rawEt_ = et; }
32 
33 void Tau::setIsoEt(short int et) { isoEt_ = et; }
34 
35 void Tau::setNTT(short int ntt) { nTT_ = ntt; }
36 
37 void Tau::setHasEM(bool hasEM) { hasEM_ = hasEM; }
38 
39 void Tau::setIsMerged(bool isMerged) { isMerged_ = isMerged; }
40 
41 short int Tau::towerIEta() const { return towerIEta_; }
42 
43 short int Tau::towerIPhi() const { return towerIPhi_; }
44 
45 short int Tau::rawEt() const { return rawEt_; }
46 
47 short int Tau::isoEt() const { return isoEt_; }
48 
49 short int Tau::nTT() const { return nTT_; }
50 
51 bool Tau::hasEM() const { return hasEM_; }
52 
53 bool Tau::isMerged() const { return isMerged_; }
54 
55 bool Tau::operator==(const l1t::Tau& rhs) const {
56  return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && towerIEta_ == rhs.towerIEta() &&
57  towerIPhi_ == rhs.towerIPhi() && rawEt_ == rhs.rawEt() && isoEt_ == rhs.isoEt() && nTT_ == rhs.nTT() &&
58  hasEM_ == rhs.hasEM() && isMerged_ == rhs.isMerged();
59 }
l1t::Tau::nTT
short int nTT() const
l1t::Tau::isMerged_
bool isMerged_
Definition: Tau.h:60
l1t::Tau::clear_extended
void clear_extended()
l1t::Tau::towerIPhi
short int towerIPhi() const
l1t::Tau::setNTT
void setNTT(short int ntt)
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1t::Tau::hasEM_
bool hasEM_
Definition: Tau.h:59
L1TRate_Offline_cfi.Tau
Tau
Definition: L1TRate_Offline_cfi.py:43
l1t::Tau::setTowerIEta
void setTowerIEta(short int ieta)
l1t::L1Candidate::operator==
virtual bool operator==(const l1t::L1Candidate &rhs) const
Definition: L1Candidate.cc:14
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
l1t::Tau
Definition: Tau.h:20
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::Tau::setTowerIPhi
void setTowerIPhi(short int iphi)
PVValHelper::eta
Definition: PVValidationHelpers.h:69
l1t::Tau::Tau
Tau()
Definition: Tau.h:22
l1t::Tau::operator==
virtual bool operator==(const l1t::Tau &rhs) const
l1t::Tau::setIsMerged
void setIsMerged(bool isMerged)
l1t::Tau::setHasEM
void setHasEM(bool hasEM)
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
l1t::Tau::isoEt_
short int isoEt_
Definition: Tau.h:57
PVValHelper::phi
Definition: PVValidationHelpers.h:68
l1t
delete x;
Definition: CaloConfig.h:22
l1t::Tau::setIsoEt
void setIsoEt(short int et)
p4
double p4[4]
Definition: TauolaWrapper.h:92
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
l1t::Tau::towerIEta
short int towerIEta() const
l1t::Tau::hasEM
bool hasEM() const
reco::LeafCandidate::et
double et() const final
transverse energy
Definition: LeafCandidate.h:127
l1t::Tau::towerIEta_
short int towerIEta_
Definition: Tau.h:54
l1t::Tau::isoEt
short int isoEt() const
l1t::Tau::towerIPhi_
short int towerIPhi_
Definition: Tau.h:55
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
l1t::Tau::nTT_
short int nTT_
Definition: Tau.h:58
l1t::Tau::isMerged
bool isMerged() const
l1t::Tau::setRawEt
void setRawEt(short int et)
l1t::Tau::rawEt
short int rawEt() const
l1t::Tau::rawEt_
short int rawEt_
Definition: Tau.h:56
Tau.h