SimDataFormats
TrackerDigiSimLink
interface
StripDigiSimLink.h
Go to the documentation of this file.
1
#ifndef SimDataFormats_TrackerDigiSimLink_StripDigiSimLink_h
2
#define SimDataFormats_TrackerDigiSimLink_StripDigiSimLink_h
3
4
#include "
SimDataFormats/EncodedEventId/interface/EncodedEventId.h
"
5
#include <cstdint>
6
7
class
StripDigiSimLink
{
8
public
:
9
enum
{
LowTof
,
HighTof
};
10
11
StripDigiSimLink
(
12
unsigned
int
ch,
unsigned
int
tkId,
unsigned
int
counter
,
unsigned
int
tofBin,
EncodedEventId
e
,
float
a
)
13
:
chan
(ch),
14
simTkId
(tkId),
15
CFpos
(tofBin ==
LowTof
?
counter
& 0x7FFFFFFF : (
counter
& 0x7FFFFFFF) | 0x80000000),
16
eId
(
e
),
17
fract
(
a
) {
18
;
19
}
20
21
StripDigiSimLink
(
unsigned
int
ch,
unsigned
int
tkId,
unsigned
int
counter
,
EncodedEventId
e
,
float
a
)
22
:
chan
(ch),
simTkId
(tkId),
CFpos
(
counter
& 0x7FFFFFFF),
eId
(
e
),
fract
(
a
) {
23
;
24
}
25
26
StripDigiSimLink
(
unsigned
int
ch,
unsigned
int
tkId,
EncodedEventId
e
,
float
a
)
27
:
chan
(ch),
simTkId
(tkId),
CFpos
(0),
eId
(
e
),
fract
(
a
) {
28
;
29
}
30
31
StripDigiSimLink
() :
chan
(0),
simTkId
(0),
CFpos
(0),
eId
(0),
fract
(0) { ; }
32
33
~StripDigiSimLink
() { ; }
34
35
unsigned
int
channel
()
const
{
return
chan
; }
36
unsigned
int
SimTrackId
()
const
{
return
simTkId
; }
37
unsigned
int
CFposition
()
const
{
return
CFpos
& 0x7FFFFFFF; }
38
unsigned
int
TofBin
()
const
{
return
(
CFpos
& 0x80000000) == 0 ?
LowTof
:
HighTof
; }
39
EncodedEventId
eventId
()
const
{
return
eId
; }
40
float
fraction
()
const
{
return
fract
; }
41
42
inline
bool
operator<
(
const
StripDigiSimLink
&
other
)
const
{
return
channel
() <
other
.channel(); }
43
44
private
:
45
unsigned
int
chan
;
46
unsigned
int
simTkId
;
47
uint32_t
CFpos
;
// position of the PSimHit in the CrossingFrame vector
48
// for the subdetector collection; bit 31 set if from the HighTof collection
49
EncodedEventId
eId
;
50
float
fract
;
51
};
52
#endif
counter
Definition:
counter.py:1
StripDigiSimLink::CFpos
uint32_t CFpos
Definition:
StripDigiSimLink.h:47
StripDigiSimLink::CFposition
unsigned int CFposition() const
Definition:
StripDigiSimLink.h:37
StripDigiSimLink::StripDigiSimLink
StripDigiSimLink(unsigned int ch, unsigned int tkId, unsigned int counter, EncodedEventId e, float a)
Definition:
StripDigiSimLink.h:21
StripDigiSimLink::eventId
EncodedEventId eventId() const
Definition:
StripDigiSimLink.h:39
StripDigiSimLink::StripDigiSimLink
StripDigiSimLink()
Definition:
StripDigiSimLink.h:31
StripDigiSimLink::operator<
bool operator<(const StripDigiSimLink &other) const
Definition:
StripDigiSimLink.h:42
EncodedEventId
Definition:
EncodedEventId.h:11
StripDigiSimLink::fraction
float fraction() const
Definition:
StripDigiSimLink.h:40
StripDigiSimLink::simTkId
unsigned int simTkId
Definition:
StripDigiSimLink.h:46
trackingPlots.other
other
Definition:
trackingPlots.py:1460
StripDigiSimLink::TofBin
unsigned int TofBin() const
Definition:
StripDigiSimLink.h:38
StripDigiSimLink
Definition:
StripDigiSimLink.h:7
a
double a
Definition:
hdecay.h:119
StripDigiSimLink::StripDigiSimLink
StripDigiSimLink(unsigned int ch, unsigned int tkId, unsigned int counter, unsigned int tofBin, EncodedEventId e, float a)
Definition:
StripDigiSimLink.h:11
StripDigiSimLink::LowTof
Definition:
StripDigiSimLink.h:9
StripDigiSimLink::HighTof
Definition:
StripDigiSimLink.h:9
StripDigiSimLink::StripDigiSimLink
StripDigiSimLink(unsigned int ch, unsigned int tkId, EncodedEventId e, float a)
Definition:
StripDigiSimLink.h:26
StripDigiSimLink::channel
unsigned int channel() const
Definition:
StripDigiSimLink.h:35
StripDigiSimLink::chan
unsigned int chan
Definition:
StripDigiSimLink.h:45
StripDigiSimLink::~StripDigiSimLink
~StripDigiSimLink()
Definition:
StripDigiSimLink.h:33
StripDigiSimLink::SimTrackId
unsigned int SimTrackId() const
Definition:
StripDigiSimLink.h:36
StripDigiSimLink::fract
float fract
Definition:
StripDigiSimLink.h:50
StripDigiSimLink::eId
EncodedEventId eId
Definition:
StripDigiSimLink.h:49
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
EncodedEventId.h
Generated for CMSSW Reference Manual by
1.8.16