CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
void SetRing(unsigned index, int value)
Definition: CaloSpare.cc:42
T eta() const
int GetRing(unsigned index) const
Definition: CaloSpare.cc:37
void setType(CaloSpareType type)
Definition: CaloSpare.cc:32
double p4[4]
Definition: TauolaWrapper.h:92
CaloSpareType getType() const
Definition: CaloSpare.cc:48
unsigned int index
index type
Definition: Candidate.h:55
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:41
Definition: DDAxes.h:10
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:43