CMS 3D CMS Logo

CaloSpare.cc
Go to the documentation of this file.
2 
4  : L1Candidate(p4, pt, eta, phi, qual, 0), type_(type) {}
5 
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 
type
Definition: HCALResponse.h:21
double eta() const final
momentum pseudorapidity
double pt() const final
transverse momentum
void SetRing(unsigned index, int value)
Definition: CaloSpare.cc:15
int GetRing(unsigned index) const
Definition: CaloSpare.cc:13
void setType(CaloSpareType type)
Definition: CaloSpare.cc:11
~CaloSpare() override
Definition: CaloSpare.cc:9
double p4[4]
Definition: TauolaWrapper.h:92
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: value.py:1
CaloSpareType getType() const
Definition: CaloSpare.cc:20
unsigned int index
index type
Definition: Candidate.h:51
int hwPt() const
Definition: L1Candidate.h:35
CaloSpareType type_
Definition: CaloSpare.h:32
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setHwPt(int pt)
Definition: L1Candidate.h:28
double phi() const final
momentum azimuthal angle
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39