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
SimDataFormats
CaloHit
src
CaloHit.cc
Go to the documentation of this file.
1
// File: CaloHit.cc
3
// Description: Temporary Hit class for QIE Analysis
5
#include "
SimDataFormats/CaloHit/interface/CaloHit.h
"
6
7
#include <iomanip>
8
9
CaloHit::CaloHit
(
int
deti,
int
layi,
double
ei,
double
etai,
double
fi,
double
timi, uint32_t idi)
10
: deth(deti), layerh(layi), eh(ei), etah(etai), phih(fi), timeh(timi), idh(idi) {}
11
12
CaloHit::CaloHit
() : deth(0), layerh(0), eh(0), etah(0), phih(0), timeh(0), idh(0) {}
13
14
CaloHit::CaloHit
(
const
CaloHit
& right) {
15
deth
= right.
deth
;
16
layerh
= right.
layerh
;
17
eh
= right.
eh
;
18
etah
= right.
etah
;
19
phih
= right.
phih
;
20
timeh
= right.
timeh
;
21
idh
= right.
idh
;
22
}
23
24
CaloHit::~CaloHit
() {}
25
26
bool
CaloHit::operator<
(
const
CaloHit
&
hit
)
const
{
27
return
(
eh
/ cosh(
etah
) <
hit
.e() / cosh(
hit
.eta())) ?
false
:
true
;
28
}
29
30
std::ostream&
operator<<
(std::ostream& os,
const
CaloHit
&
hit
) {
31
os <<
"E "
<< std::setw(6) <<
hit
.e() <<
" eta "
<< std::setw(6) <<
hit
.eta() <<
" phi "
<< std::setw(6) <<
hit
.phi()
32
<<
" t "
<< std::setw(6) <<
hit
.t() <<
" layer "
<<
hit
.layer() <<
" det "
<<
hit
.det() <<
" id 0x"
<< std::hex
33
<<
hit
.
id
() <<
std::dec
;
34
return
os;
35
}
CaloHit::layerh
int layerh
Definition:
CaloHit.h:31
CaloHit::deth
int deth
Definition:
CaloHit.h:31
funct::false
false
Definition:
Factorize.h:29
hit::id
unsigned int id
Definition:
SiStripHitEffFromCalibTree.cc:92
CaloHit::phih
double phih
Definition:
CaloHit.h:32
CaloHit::etah
double etah
Definition:
CaloHit.h:32
CaloHit::timeh
double timeh
Definition:
CaloHit.h:32
CaloHit::idh
uint32_t idh
Definition:
CaloHit.h:33
CaloHit::eh
double eh
Definition:
CaloHit.h:32
CaloHit::operator<
bool operator<(const CaloHit &hit) const
Definition:
CaloHit.cc:26
CaloHit
Definition:
CaloHit.h:12
operator<<
std::ostream & operator<<(std::ostream &os, const CaloHit &hit)
Definition:
CaloHit.cc:30
CaloHit::CaloHit
CaloHit()
Definition:
CaloHit.cc:12
CaloHit::~CaloHit
virtual ~CaloHit()
Definition:
CaloHit.cc:24
CaloHit.h
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16