Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimDataFormats
TrackerDigiSimLink
interface
PixelDigiSimLink.h
Go to the documentation of this file.
1
#ifndef TRACKINGOBJECTS_PIXELDIGISIMLINK_H
2
#define TRACKINGOBJECTS_PIXELDIGISIMLINK_H
3
4
#include "boost/cstdint.hpp"
5
#include "
SimDataFormats/EncodedEventId/interface/EncodedEventId.h
"
6
7
//typedef std::pair<unsigned int ,unsigned int > PixelDigiSimLink;
8
class
PixelDigiSimLink
{
9
public
:
10
PixelDigiSimLink
(
unsigned
int
ch,
unsigned
int
tkId,
EncodedEventId
e
,
float
a
){
11
chan
=ch;
12
simTkId
=tkId;
13
fract
=
a
;
14
eId
=
e
;
15
};
16
PixelDigiSimLink
():
eId
(0){
17
chan
=0;
18
simTkId
=0;
19
fract
=0;
20
};
21
~PixelDigiSimLink
(){};
22
unsigned
int
channel
()
const
{
return
chan
;};
23
unsigned
int
SimTrackId
()
const
{
return
simTkId
;};
24
EncodedEventId
eventId
()
const
{
return
eId
;}
25
float
fraction
()
const
{
return
fract
;};
26
27
28
inline
bool
operator<
(
const
PixelDigiSimLink
& other )
const
{
return
fraction
() < other.
fraction
(); }
29
30
private
:
31
unsigned
int
chan
;
32
unsigned
int
simTkId
;
33
EncodedEventId
eId
;
34
float
fract
;
35
};
36
#endif
PixelDigiSimLink
Definition:
PixelDigiSimLink.h:8
PixelDigiSimLink::chan
unsigned int chan
Definition:
PixelDigiSimLink.h:31
PixelDigiSimLink::operator<
bool operator<(const PixelDigiSimLink &other) const
Definition:
PixelDigiSimLink.h:28
PixelDigiSimLink::PixelDigiSimLink
PixelDigiSimLink()
Definition:
PixelDigiSimLink.h:16
PixelDigiSimLink::SimTrackId
unsigned int SimTrackId() const
Definition:
PixelDigiSimLink.h:23
PixelDigiSimLink::channel
unsigned int channel() const
Definition:
PixelDigiSimLink.h:22
PixelDigiSimLink::fract
float fract
Definition:
PixelDigiSimLink.h:34
PixelDigiSimLink::PixelDigiSimLink
PixelDigiSimLink(unsigned int ch, unsigned int tkId, EncodedEventId e, float a)
Definition:
PixelDigiSimLink.h:10
PixelDigiSimLink::fraction
float fraction() const
Definition:
PixelDigiSimLink.h:25
PixelDigiSimLink::~PixelDigiSimLink
~PixelDigiSimLink()
Definition:
PixelDigiSimLink.h:21
PixelDigiSimLink::eId
EncodedEventId eId
Definition:
PixelDigiSimLink.h:33
PixelDigiSimLink::eventId
EncodedEventId eventId() const
Definition:
PixelDigiSimLink.h:24
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
EncodedEventId
Definition:
EncodedEventId.h:11
a
double a
Definition:
hdecay.h:121
PixelDigiSimLink::simTkId
unsigned int simTkId
Definition:
PixelDigiSimLink.h:32
EncodedEventId.h
Generated for CMSSW Reference Manual by
1.8.5