CMS 3D CMS Logo

CaloSpare.cc
Go to the documentation of this file.
2 
3 l1t::CaloSpare::CaloSpare(const LorentzVector& p4, CaloSpareType type, int pt, int eta, int phi, int qual)
4  : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
5 
6 l1t::CaloSpare::CaloSpare(const PolarLorentzVector& p4, CaloSpareType type, int pt, int eta, int phi, int qual)
7  : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
8 
10 
12 
13 int l1t::CaloSpare::GetRing(unsigned index) const { return ((hwPt() >> (index * 3)) & 0x7); }
14 
15 void l1t::CaloSpare::SetRing(const unsigned index, int value) {
16  setHwPt(hwPt() & ~(0x7 << (index * 3)));
17  setHwPt(hwPt() | (((value & 0x7) << (index * 3))));
18 }
19 
void SetRing(unsigned index, int value)
Definition: CaloSpare.cc:15
void setType(CaloSpareType type)
Definition: CaloSpare.cc:11
~CaloSpare() override
Definition: CaloSpare.cc:9
Definition: value.py:1
int GetRing(unsigned index) const
Definition: CaloSpare.cc:13
unsigned int index
index type
Definition: Candidate.h:50
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
CaloSpareType getType() const
Definition: CaloSpare.cc:20
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38