Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
DataFormats
HcalDetId
src
HcalOtherDetId.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalDetId/interface/HcalOtherDetId.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
#include <iostream>
4
HcalOtherDetId::HcalOtherDetId
() {}
5
6
HcalOtherDetId::HcalOtherDetId
(uint32_t rawid) :
DetId
(rawid) {}
7
8
HcalOtherDetId::HcalOtherDetId
(
HcalOtherSubdetector
other_type) :
DetId
(Hcal,
HcalOther
) {
9
id_
|= (
int
(other_type & 0x1F) << 20);
10
}
11
12
HcalOtherDetId::HcalOtherDetId
(
const
DetId
&
gen
) {
13
if
(
gen
.det() !=
Hcal
||
gen
.subdetId() !=
HcalOther
) {
14
throw
cms::Exception
(
"Invalid DetId"
)
15
<<
"Cannot initialize HcalOtherDetId from "
<< std::hex <<
gen
.rawId() <<
std::dec
;
16
}
17
id_
=
gen
.rawId();
18
}
19
20
HcalOtherDetId
&
HcalOtherDetId::operator=
(
const
DetId
&
gen
) {
21
if
(
gen
.det() !=
Hcal
||
gen
.subdetId() !=
HcalOther
) {
22
throw
cms::Exception
(
"Invalid DetId"
)
23
<<
"Cannot assign HcalOtherDetId from "
<< std::hex <<
gen
.rawId() <<
std::dec
;
24
}
25
id_
=
gen
.rawId();
26
return
*
this
;
27
}
DetId::Hcal
Definition:
DetId.h:28
HcalOtherDetId::HcalOtherDetId
HcalOtherDetId()
Definition:
HcalOtherDetId.cc:4
Exception
Definition:
hltDiff.cc:245
HcalOtherDetId::operator=
HcalOtherDetId & operator=(const DetId &id)
Definition:
HcalOtherDetId.cc:20
HcalOtherDetId
Definition:
HcalOtherDetId.h:22
createfilelist.int
int
Definition:
createfilelist.py:10
HcalOtherSubdetector
HcalOtherSubdetector
Definition:
HcalAssistant.h:40
gen
Definition:
PythiaDecays.h:13
DetId
Definition:
DetId.h:17
Exception.h
DetId::id_
uint32_t id_
Definition:
DetId.h:69
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
HcalOtherDetId.h
HcalOther
Definition:
HcalAssistant.h:38
Generated for CMSSW Reference Manual by
1.8.14