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
DigiSimLinks
src
DTDigiSimLink.cc
Go to the documentation of this file.
1
#include <
SimDataFormats/DigiSimLinks/interface/DTDigiSimLink.h
>
2
3
using namespace
std
;
4
5
DTDigiSimLink::DTDigiSimLink
(
int
wireNr,
int
digiNr,
int
nTDC,
unsigned
int
trackId,
EncodedEventId
evId,
int
base
)
6
: theWire(wireNr),
7
theDigiNumber(digiNr),
8
theTDCBase(
base
),
9
theCounts(nTDC),
10
theSimTrackId(trackId),
11
theEventId(evId) {}
12
13
DTDigiSimLink::DTDigiSimLink
(
int
wireNr,
int
digiNr,
double
tdrift,
unsigned
int
trackId,
EncodedEventId
evId,
int
base
)
14
: theWire(wireNr),
15
theDigiNumber(digiNr),
16
theTDCBase(
base
),
17
theCounts(static_cast<
int
>(tdrift *
base
/ 25.)),
18
theSimTrackId(trackId),
19
theEventId(evId) {}
20
21
DTDigiSimLink::DTDigiSimLink
()
22
: theWire(0), theDigiNumber(0), theTDCBase(32), theCounts(0), theSimTrackId(0), theEventId(0) {}
23
24
DTDigiSimLink::ChannelType
DTDigiSimLink::channel
()
const
{
25
ChannelPacking
result
;
26
result
.wi =
theWire
;
27
result
.num =
theDigiNumber
;
28
DTDigiSimLink::ChannelType
* p_result = reinterpret_cast<DTDigiSimLink::ChannelType*>(&
result
);
29
return
*p_result;
30
}
31
32
int
DTDigiSimLink::wire
()
const
{
return
theWire
; }
33
34
int
DTDigiSimLink::number
()
const
{
return
theDigiNumber
; }
35
36
uint32_t
DTDigiSimLink::countsTDC
()
const
{
return
theCounts
; }
37
38
double
DTDigiSimLink::time
()
const
{
return
theCounts
* 25. /
theTDCBase
; }
39
40
unsigned
int
DTDigiSimLink::SimTrackId
()
const
{
return
theSimTrackId
; }
41
42
EncodedEventId
DTDigiSimLink::eventId
()
const
{
return
theEventId
; }
DTDigiSimLink::eventId
EncodedEventId eventId() const
Definition:
DTDigiSimLink.cc:42
DTDigiSimLink::time
double time() const
Definition:
DTDigiSimLink.cc:38
DTDigiSimLink::DTDigiSimLink
DTDigiSimLink()
Definition:
DTDigiSimLink.cc:21
DTDigiSimLink::theSimTrackId
uint32_t theSimTrackId
Definition:
DTDigiSimLink.h:60
EncodedEventId
Definition:
EncodedEventId.h:11
DTDigiSimLink::SimTrackId
unsigned int SimTrackId() const
Definition:
DTDigiSimLink.cc:40
DTDigiSimLink::ChannelPacking
Definition:
DTDigiSimLink.h:46
DTDigiSimLink::channel
ChannelType channel() const
Definition:
DTDigiSimLink.cc:24
DTDigiSimLink::number
int number() const
Definition:
DTDigiSimLink.cc:34
DTDigiSimLink::wire
int wire() const
Definition:
DTDigiSimLink.cc:32
DTDigiSimLink::ChannelType
uint32_t ChannelType
Definition:
DTDigiSimLink.h:8
createfilelist.int
int
Definition:
createfilelist.py:10
DTDigiSimLink::theEventId
EncodedEventId theEventId
Definition:
DTDigiSimLink.h:61
DTDigiSimLink::theWire
uint16_t theWire
Definition:
DTDigiSimLink.h:56
DTDigiSimLink::theTDCBase
uint8_t theTDCBase
Definition:
DTDigiSimLink.h:58
DTDigiSimLink::countsTDC
uint32_t countsTDC() const
Definition:
DTDigiSimLink.cc:36
std
Definition:
JetResolutionObject.h:76
DTDigiSimLink::theDigiNumber
uint8_t theDigiNumber
Definition:
DTDigiSimLink.h:57
mps_fire.result
result
Definition:
mps_fire.py:311
DTDigiSimLink::theCounts
int32_t theCounts
Definition:
DTDigiSimLink.h:59
newFWLiteAna.base
base
Definition:
newFWLiteAna.py:92
DTDigiSimLink.h
Generated for CMSSW Reference Manual by
1.8.16