Main Page
Namespaces
Classes
Package Documentation
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
const
double
DTDigiSimLink::reso
= 25./32.;
//ns
5
6
DTDigiSimLink::DTDigiSimLink
(
int
wireNr,
int
digiNr,
int
nTDC,
unsigned
int
trackId,
EncodedEventId
evId):
7
theWire(wireNr),
8
theDigiNumber(digiNr),
9
theCounts(nTDC),
10
theSimTrackId(trackId),
11
theEventId(evId)
12
{}
13
14
DTDigiSimLink::DTDigiSimLink
(
int
wireNr,
int
digiNr,
double
tdrift,
unsigned
int
trackId,
EncodedEventId
evId):
15
theWire
(wireNr),
16
theDigiNumber
(digiNr),
17
theCounts
(static_cast<
int
>(tdrift/
reso
)),
18
theSimTrackId
(trackId),
19
theEventId
(evId)
20
{}
21
22
DTDigiSimLink::DTDigiSimLink
():
23
theWire
(0),
24
theDigiNumber
(0),
25
theCounts
(0),
26
theSimTrackId
(0),
27
theEventId
(0)
28
{}
29
30
DTDigiSimLink::ChannelType
DTDigiSimLink::channel
()
const
{
31
ChannelPacking
result
;
32
result.
wi
=
theWire
;
33
result.
num
=
theDigiNumber
;
34
DTDigiSimLink::ChannelType
* p_result =
reinterpret_cast<
DTDigiSimLink::ChannelType
*
>
(&
result
);
35
return
*p_result;
36
}
37
38
int
DTDigiSimLink::wire
()
const
{
return
theWire
;}
39
40
int
DTDigiSimLink::number
()
const
{
return
theDigiNumber
;}
41
42
uint32_t
DTDigiSimLink::countsTDC
()
const
{
return
theCounts
; }
43
44
double
DTDigiSimLink::time
()
const
{
return
theCounts
*
reso
; }
45
46
unsigned
int
DTDigiSimLink::SimTrackId
()
const
{
return
theSimTrackId
;}
47
48
EncodedEventId
DTDigiSimLink::eventId
()
const
{
return
theEventId
;}
DTDigiSimLink::ChannelPacking
Definition:
DTDigiSimLink.h:46
DTDigiSimLink::ChannelPacking::wi
uint16_t wi
Definition:
DTDigiSimLink.h:47
DTDigiSimLink::countsTDC
uint32_t countsTDC() const
Definition:
DTDigiSimLink.cc:42
mps_fire.result
result
Definition:
mps_fire.py:282
DTDigiSimLink::time
double time() const
Definition:
DTDigiSimLink.cc:44
std
Definition:
JetResolutionObject.h:80
DTDigiSimLink::number
int number() const
Definition:
DTDigiSimLink.cc:40
DTDigiSimLink::theWire
uint16_t theWire
Definition:
DTDigiSimLink.h:56
createfilelist.int
int
Definition:
createfilelist.py:10
DTDigiSimLink::channel
ChannelType channel() const
Definition:
DTDigiSimLink.cc:30
DTDigiSimLink.h
DTDigiSimLink::SimTrackId
unsigned int SimTrackId() const
Definition:
DTDigiSimLink.cc:46
DTDigiSimLink::eventId
EncodedEventId eventId() const
Definition:
DTDigiSimLink.cc:48
DTDigiSimLink::reso
static const double reso
Definition:
DTDigiSimLink.h:53
DTDigiSimLink::ChannelType
uint32_t ChannelType
Definition:
DTDigiSimLink.h:10
DTDigiSimLink::wire
int wire() const
Definition:
DTDigiSimLink.cc:38
DTDigiSimLink::DTDigiSimLink
DTDigiSimLink()
Definition:
DTDigiSimLink.cc:22
EncodedEventId
Definition:
EncodedEventId.h:11
DTDigiSimLink::theDigiNumber
uint16_t theDigiNumber
Definition:
DTDigiSimLink.h:57
DTDigiSimLink::theCounts
uint32_t theCounts
Definition:
DTDigiSimLink.h:58
DTDigiSimLink::theSimTrackId
uint32_t theSimTrackId
Definition:
DTDigiSimLink.h:59
DTDigiSimLink::theEventId
EncodedEventId theEventId
Definition:
DTDigiSimLink.h:60
DTDigiSimLink::ChannelPacking::num
uint16_t num
Definition:
DTDigiSimLink.h:48
Generated for CMSSW Reference Manual by
1.8.11