CMS 3D CMS Logo

CaloSpare.cc
Go to the documentation of this file.
2 
5  int pt,
6  int eta,
7  int phi,
8  int qual)
9  : L1Candidate(p4, pt, eta, phi, qual, 0),
10  type_(type)
11 {
12 
13 }
14 
17  int pt,
18  int eta,
19  int phi,
20  int qual)
21  : L1Candidate(p4, pt, eta, phi, qual, 0),
22  type_(type)
23 {
24 
25 }
26 
28 {
29 
30 }
31 
33 {
34  type_ = type;
35 }
36 
37 int l1t::CaloSpare::GetRing(unsigned index) const
38 {
39  return ((hwPt() >> (index*3))&0x7);
40 }
41 
42 void l1t::CaloSpare::SetRing(const unsigned index, int value)
43 {
44  setHwPt(hwPt() & ~(0x7<<(index*3)));
45  setHwPt(hwPt() | (((value&0x7) << (index*3))));
46 }
47 
49 {
50  return type_;
51 }
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:42
int GetRing(unsigned index) const
Definition: CaloSpare.cc:37
void setType(CaloSpareType type)
Definition: CaloSpare.cc:32
~CaloSpare() override
Definition: CaloSpare.cc:27
double p4[4]
Definition: TauolaWrapper.h:92
const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
Definition: value.py:1
CaloSpareType getType() const
Definition: CaloSpare.cc:48
unsigned int index
index type
Definition: Candidate.h:51
int hwPt() const
Definition: L1Candidate.h:48
CaloSpareType type_
Definition: CaloSpare.h:53
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
void setHwPt(int pt)
Definition: L1Candidate.h:41
double phi() const final
momentum azimuthal angle
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:39