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