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 
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 
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1t::CaloSpare::GetRing
int GetRing(unsigned index) const
Definition: CaloSpare.cc:13
reco::Candidate::PolarLorentzVector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:38
l1t::CaloSpare::CaloSpareType
CaloSpareType
Definition: CaloSpare.h:14
CaloSpare.h
l1t::L1Candidate
Definition: L1Candidate.h:15
PVValHelper::eta
Definition: PVValidationHelpers.h:70
l1t::CaloSpare::getType
CaloSpareType getType() const
Definition: CaloSpare.cc:20
PVValHelper::phi
Definition: PVValidationHelpers.h:69
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
p4
double p4[4]
Definition: TauolaWrapper.h:92
value
Definition: value.py:1
l1t::CaloSpare::SetRing
void SetRing(unsigned index, int value)
Definition: CaloSpare.cc:15
l1t::CaloSpare::~CaloSpare
~CaloSpare() override
Definition: CaloSpare.cc:9
reco::Candidate::index
unsigned int index
index type
Definition: Candidate.h:50
l1t::CaloSpare::CaloSpare
CaloSpare()
Definition: CaloSpare.h:16
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
l1t::CaloSpare::setType
void setType(CaloSpareType type)
Definition: CaloSpare.cc:11