Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
TrackReco
src
DeDxHit.cc
Go to the documentation of this file.
1
#include "
DataFormats/TrackReco/interface/DeDxHit.h
"
2
#include "
DataFormats/SiPixelDetId/interface/PixelSubdetector.h
"
3
#include "
DataFormats/SiStripDetId/interface/StripSubdetector.h
"
4
#include "
DataFormats/SiPixelDetId/interface/PXBDetId.h
"
5
#include "
DataFormats/SiPixelDetId/interface/PXFDetId.h
"
6
#include "
DataFormats/SiStripDetId/interface/TIBDetId.h
"
7
#include "
DataFormats/SiStripDetId/interface/TIDDetId.h
"
8
#include "
DataFormats/SiStripDetId/interface/TOBDetId.h
"
9
#include "
DataFormats/SiStripDetId/interface/TECDetId.h
"
10
using namespace
reco
;
11
12
DeDxHit::DeDxHit
(
float
ch,
float
dist,
float
len,
DetId
id
): m_charge(ch),m_distance(dist),m_pathLength(len)
13
{
14
uint32_t subdet =
id
.subdetId();
15
m_subDetId
= (subdet&0x7)<<5;
16
uint32_t
layer
= 0;
17
18
if
(subdet ==
PixelSubdetector::PixelBarrel
)
19
layer =
PXBDetId
(
id
).
layer
();
20
else
if
(subdet ==
PixelSubdetector::PixelEndcap
)
21
layer =
PXFDetId
(
id
).
disk
();
22
else
if
(subdet ==
StripSubdetector::TIB
)
23
layer =
TIBDetId
(
id
).
layer
();
24
else
if
(subdet ==
StripSubdetector::TID
)
25
layer = (
TIDDetId
(
id
).
wheel
() & 0xF ) + ( (
TIDDetId
(
id
).side() -1 )<<4 );
26
else
if
(subdet ==
StripSubdetector::TOB
)
27
layer =
TOBDetId
(
id
).
layer
();
28
else
if
(subdet ==
StripSubdetector::TEC
)
29
layer = (
TECDetId
(
id
).
wheel
() & 0xF ) + ( (
TECDetId
(
id
).side() -1 )<<4 );
30
m_subDetId
+= (layer & 0x1F) ;
31
}
32
33
StripSubdetector::TIB
Definition:
StripSubdetector.h:14
reco::DeDxHit::m_subDetId
char m_subDetId
Definition:
DeDxHit.h:44
TOBDetId::layer
unsigned int layer() const
layer id
Definition:
TOBDetId.h:39
TIDDetId
Definition:
TIDDetId.h:16
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
StripSubdetector::TEC
Definition:
StripSubdetector.h:14
PXBDetId::layer
unsigned int layer() const
layer id
Definition:
PXBDetId.h:35
PXBDetId
Definition:
PXBDetId.h:16
StripSubdetector.h
TIBDetId
Definition:
TIBDetId.h:16
PXBDetId.h
PXFDetId.h
PixelSubdetector::PixelBarrel
Definition:
PixelSubdetector.h:11
PXFDetId::disk
unsigned int disk() const
disk id
Definition:
PXFDetId.h:43
PixelSubdetector.h
DetId
Definition:
DetId.h:20
StripSubdetector::TOB
Definition:
StripSubdetector.h:14
DeDxHit.h
TECDetId.h
TECDetId::wheel
unsigned int wheel() const
wheel id
Definition:
TECDetId.h:52
TIBDetId::layer
unsigned int layer() const
layer id
Definition:
TIBDetId.h:41
StripSubdetector::TID
Definition:
StripSubdetector.h:14
reco::DeDxHit::DeDxHit
DeDxHit()
Definition:
DeDxHit.h:12
TECDetId
Definition:
TECDetId.h:16
TIBDetId.h
TIDDetId.h
TOBDetId.h
reco::DeDxHit::layer
int layer() const
Return the layer/disk.
Definition:
DeDxHit.h:31
PXFDetId
Definition:
PXFDetId.h:15
PixelSubdetector::PixelEndcap
Definition:
PixelSubdetector.h:11
TIDDetId::wheel
unsigned int wheel() const
wheel id
Definition:
TIDDetId.h:50
TOBDetId
Definition:
TOBDetId.h:16
Generated for CMSSW Reference Manual by
1.8.5