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
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
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
DataFormats
EcalRecHit
src
EcalRecHit.cc
Go to the documentation of this file.
1
#include "
DataFormats/EcalRecHit/interface/EcalRecHit.h
"
2
#include "
DataFormats/EcalDetId/interface/EBDetId.h
"
3
#include "
DataFormats/EcalDetId/interface/EEDetId.h
"
4
#include "
DataFormats/EcalDetId/interface/ESDetId.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
#include <cassert>
7
#include <cmath>
8
9
std::ostream&
operator<<
(std::ostream&
s
,
const
EcalRecHit
&
hit
) {
10
if
(
hit
.detid().det() ==
DetId::Ecal
&&
hit
.detid().subdetId() ==
EcalBarrel
)
11
return
s
<<
EBDetId
(
hit
.detid()) <<
": "
<<
hit
.energy() <<
" GeV, "
<<
hit
.time() <<
" ns"
;
12
else
if
(
hit
.detid().det() ==
DetId::Ecal
&&
hit
.detid().subdetId() ==
EcalEndcap
)
13
return
s
<<
EEDetId
(
hit
.detid()) <<
": "
<<
hit
.energy() <<
" GeV, "
<<
hit
.time() <<
" ns"
;
14
else
if
(
hit
.detid().det() ==
DetId::Ecal
&&
hit
.detid().subdetId() ==
EcalPreshower
)
15
return
s
<<
ESDetId
(
hit
.detid()) <<
": "
<<
hit
.energy() <<
" GeV, "
<<
hit
.time() <<
" ns"
;
16
else
17
return
s
<<
"EcalRecHit undefined subdetector"
;
18
}
EcalRecHit
Definition:
EcalRecHit.h:15
MessageLogger.h
EBDetId
Definition:
EBDetId.h:17
EBDetId.h
EEDetId.h
ESDetId
Definition:
ESDetId.h:15
ESDetId.h
EcalBarrel
Definition:
EcalSubdetector.h:10
operator<<
std::ostream & operator<<(std::ostream &s, const EcalRecHit &hit)
Definition:
EcalRecHit.cc:9
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EEDetId
Definition:
EEDetId.h:14
EcalEndcap
Definition:
EcalSubdetector.h:10
DetId::Ecal
Definition:
DetId.h:27
EcalRecHit.h
EcalPreshower
Definition:
EcalSubdetector.h:10
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16