L1Trigger
TrackerDTC
interface
SensorModule.h
Go to the documentation of this file.
1
#ifndef L1Trigger_TrackerDTC_SensorModule_h
2
#define L1Trigger_TrackerDTC_SensorModule_h
3
4
#include "
DataFormats/DetId/interface/DetId.h
"
5
6
namespace
trackerDTC
{
7
8
class
Setup
;
9
10
// representation of an outer tracker sensormodule
11
class
SensorModule
{
12
public
:
13
SensorModule
(
const
Setup
&
setup
,
const
DetId
& detId,
int
dtcId
,
int
modId
);
14
~SensorModule
() {}
15
16
enum
Type
{
BarrelPS
,
Barrel2S
,
DiskPS
,
Disk2S
,
NumTypes
};
17
18
// module type (BarrelPS, Barrel2S, DiskPS, Disk2S)
19
Type
type
()
const
{
return
type_
; }
20
// dtc id [0-215]
21
int
dtcId
()
const
{
return
dtcId_
; }
22
// module on dtc id [0-71]
23
int
modId
()
const
{
return
modId_
; }
24
// +z or -z
25
bool
side
()
const
{
return
side_
; }
26
// barrel or endcap
27
bool
barrel
()
const
{
return
barrel_
; }
28
// Pixel-Strip or 2Strip module
29
bool
psModule
()
const
{
return
psModule_
; }
30
// main sensor inside or outside
31
bool
flipped
()
const
{
return
flipped_
; }
32
// TTStub row needs flip of sign
33
bool
signRow
()
const
{
return
signRow_
; }
34
// TTStub col needs flip of sign
35
bool
signCol
()
const
{
return
signCol_
; }
36
// TTStub bend needs flip of sign
37
bool
signBend
()
const
{
return
signBend_
; }
38
// number of columns [2S=2,PS=8]
39
int
numColumns
()
const
{
return
numColumns_
; }
40
// number of rows [2S=8*127,PS=8*120]
41
int
numRows
()
const
{
return
numRows_
; }
42
// layer id [1-6,11-15]
43
int
layerId
()
const
{
return
layerId_
; }
44
// module radius in cm
45
double
r
()
const
{
return
r_
; }
46
// module phi w.r.t. detector region centre in rad
47
double
phi
()
const
{
return
phi_
; }
48
// module z in cm
49
double
z
()
const
{
return
z_
; }
50
// sensor separation in cm
51
double
sep
()
const
{
return
sep_
; }
52
// sensor pitch in cm [strip=.009,pixel=.01]
53
double
pitchRow
()
const
{
return
pitchRow_
; }
54
// sensor length in cm [strip=5,pixel=.15625]
55
double
pitchCol
()
const
{
return
pitchCol_
; }
56
// module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
57
double
tilt
()
const
{
return
tilt_
; }
58
// sinus of module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
59
double
sin
()
const
{
return
sin_
; }
60
// cosinus of module tilt measured w.r.t. beam axis (+-1=endcap), tk layout measures w.r.t. radial axis
61
double
cos
()
const
{
return
cos_
; }
62
// encoded radius of disk2S stubs, used in Hybrid
63
int
encodedR
()
const
{
return
encodedR_
; }
64
// encoded layer id [0-3]
65
int
encodedLayerId
()
const
{
return
encodedLayerId_
; }
66
// stub radius offset for barrelPS, barrel2S, used in Hybrid
67
double
offsetR
()
const
{
return
offsetR_
; }
68
// stub z offset for diskPS, disk2S, used in Hybrid
69
double
offsetZ
()
const
{
return
offsetZ_
; }
70
// bend window size in half strip units
71
int
windowSize
()
const
{
return
windowSize_
; }
72
73
private
:
74
// cmssw det id
75
DetId
detId_
;
76
// dtc id [0-215]
77
int
dtcId_
;
78
// module on dtc id [0-71]
79
int
modId_
;
80
// +z or -z
81
bool
side_
;
82
// barrel or endcap
83
bool
barrel_
;
84
// Pixel-Strip or 2Strip module
85
bool
psModule_
;
86
// main sensor inside or outside
87
bool
flipped_
;
88
// TTStub row needs flip of sign
89
bool
signRow_
;
90
// TTStub col needs flip of sign
91
bool
signCol_
;
92
// TTStub bend needs flip of sign
93
bool
signBend_
;
94
// number of columns [2S=2,PS=8]
95
int
numColumns_
;
96
// number of rows [2S=8*127,PS=8*120]
97
int
numRows_
;
98
// layer id [1-6,11-15]
99
int
layerId_
;
100
// module radius in cm
101
double
r_
;
102
// module phi w.r.t. detector region centre in rad
103
double
phi_
;
104
// module z in cm
105
double
z_
;
106
// sensor separation in cm
107
double
sep_
;
108
// sensor pitch in cm [strip=.009,pixel=.01]
109
double
pitchRow_
;
110
// sensor length in cm [strip=5,pixel=.15625]
111
double
pitchCol_
;
112
// module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
113
double
tilt_
;
114
// sinus of module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
115
double
sin_
;
116
// cosinus of module tilt measured w.r.t. beam axis (+-1=endcap), tk layout measures w.r.t. radial axis
117
double
cos_
;
118
// module type (barrelPS, barrel2S, diskPS, disk2S)
119
Type
type_
;
120
// encoded radius of disk2S stubs, used in Hybrid
121
int
encodedR_
;
122
// encoded layer id [0-3]
123
int
encodedLayerId_
;
124
// stub radius offset for barrelPS, barrel2S, used in Hybrid
125
double
offsetR_
;
126
// stub z offset for diskPS, disk2S, used in Hybrid
127
double
offsetZ_
;
128
// bend window size in half strip units
129
int
windowSize_
;
130
};
131
132
}
// namespace trackerDTC
133
134
#endif
trackerDTC::SensorModule::offsetR
double offsetR() const
Definition:
SensorModule.h:67
trackerDTC::SensorModule::numRows_
int numRows_
Definition:
SensorModule.h:97
trackerDTC::SensorModule::NumTypes
Definition:
SensorModule.h:16
trackerDTC::SensorModule::BarrelPS
Definition:
SensorModule.h:16
trackerDTC::SensorModule::phi
double phi() const
Definition:
SensorModule.h:47
trackerDTC::SensorModule::windowSize
int windowSize() const
Definition:
SensorModule.h:71
trackerDTC::SensorModule::offsetZ
double offsetZ() const
Definition:
SensorModule.h:69
trackerDTC::SensorModule::pitchCol_
double pitchCol_
Definition:
SensorModule.h:111
trackerDTC::SensorModule
Definition:
SensorModule.h:11
trackerDTC::SensorModule::barrel_
bool barrel_
Definition:
SensorModule.h:83
trackerDTC::SensorModule::flipped
bool flipped() const
Definition:
SensorModule.h:31
trackerDTC::SensorModule::flipped_
bool flipped_
Definition:
SensorModule.h:87
trackerDTC::SensorModule::signCol
bool signCol() const
Definition:
SensorModule.h:35
trackerDTC::SensorModule::cos
double cos() const
Definition:
SensorModule.h:61
trackerDTC::SensorModule::offsetZ_
double offsetZ_
Definition:
SensorModule.h:127
trackerDTC::SensorModule::z_
double z_
Definition:
SensorModule.h:105
bmtfDigis_cfi.Setup
Setup
Definition:
bmtfDigis_cfi.py:5
trackerDTC::SensorModule::layerId_
int layerId_
Definition:
SensorModule.h:99
trackerDTC::SensorModule::signRow
bool signRow() const
Definition:
SensorModule.h:33
trackerDTC::SensorModule::tilt_
double tilt_
Definition:
SensorModule.h:113
trackerDTC::SensorModule::phi_
double phi_
Definition:
SensorModule.h:103
trackerDTC::SensorModule::offsetR_
double offsetR_
Definition:
SensorModule.h:125
trackerDTC::SensorModule::numRows
int numRows() const
Definition:
SensorModule.h:41
trackerDTC::Setup
Class to process and provide run-time constants used by Track Trigger emulators.
Definition:
Setup.h:41
trackerDTC::SensorModule::encodedR_
int encodedR_
Definition:
SensorModule.h:121
trackerDTC::SensorModule::Type
Type
Definition:
SensorModule.h:16
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
trackerDTC::SensorModule::encodedLayerId
int encodedLayerId() const
Definition:
SensorModule.h:65
trackerDTC::SensorModule::barrel
bool barrel() const
Definition:
SensorModule.h:27
trackerDTC::SensorModule::pitchRow_
double pitchRow_
Definition:
SensorModule.h:109
trackerDTC::SensorModule::side_
bool side_
Definition:
SensorModule.h:81
DetId
Definition:
DetId.h:17
trackerDTC::SensorModule::windowSize_
int windowSize_
Definition:
SensorModule.h:129
trackerDTC::SensorModule::dtcId
int dtcId() const
Definition:
SensorModule.h:21
trackerDTC::SensorModule::pitchRow
double pitchRow() const
Definition:
SensorModule.h:53
trackerDTC::SensorModule::SensorModule
SensorModule(const Setup &setup, const DetId &detId, int dtcId, int modId)
Definition:
SensorModule.cc:15
trackerDTC::SensorModule::psModule
bool psModule() const
Definition:
SensorModule.h:29
trackerDTC::SensorModule::DiskPS
Definition:
SensorModule.h:16
trackerDTC::SensorModule::dtcId_
int dtcId_
Definition:
SensorModule.h:77
trackerDTC::SensorModule::sin
double sin() const
Definition:
SensorModule.h:59
trackerDTC::SensorModule::Disk2S
Definition:
SensorModule.h:16
trackerDTC::SensorModule::side
bool side() const
Definition:
SensorModule.h:25
trackerDTC::SensorModule::encodedLayerId_
int encodedLayerId_
Definition:
SensorModule.h:123
trackerDTC::SensorModule::z
double z() const
Definition:
SensorModule.h:49
trackerDTC::SensorModule::type_
Type type_
Definition:
SensorModule.h:119
trackerDTC::SensorModule::encodedR
int encodedR() const
Definition:
SensorModule.h:63
trackerDTC::SensorModule::signRow_
bool signRow_
Definition:
SensorModule.h:89
trackerDTC::SensorModule::type
Type type() const
Definition:
SensorModule.h:19
trackerDTC::SensorModule::cos_
double cos_
Definition:
SensorModule.h:117
trackerDTC::SensorModule::modId_
int modId_
Definition:
SensorModule.h:79
trackerDTC::SensorModule::numColumns_
int numColumns_
Definition:
SensorModule.h:95
trackerDTC::SensorModule::detId_
DetId detId_
Definition:
SensorModule.h:75
trackerDTC
Definition:
DTC.h:10
trackerDTC::SensorModule::~SensorModule
~SensorModule()
Definition:
SensorModule.h:14
trackerDTC::SensorModule::signBend
bool signBend() const
Definition:
SensorModule.h:37
trackerDTC::SensorModule::layerId
int layerId() const
Definition:
SensorModule.h:43
trackerDTC::SensorModule::signBend_
bool signBend_
Definition:
SensorModule.h:93
DetId.h
trackerDTC::SensorModule::numColumns
int numColumns() const
Definition:
SensorModule.h:39
trackerDTC::SensorModule::sin_
double sin_
Definition:
SensorModule.h:115
trackerDTC::SensorModule::tilt
double tilt() const
Definition:
SensorModule.h:57
trackerDTC::SensorModule::psModule_
bool psModule_
Definition:
SensorModule.h:85
trackerDTC::SensorModule::modId
int modId() const
Definition:
SensorModule.h:23
trackerDTC::SensorModule::r_
double r_
Definition:
SensorModule.h:101
trackerDTC::SensorModule::sep_
double sep_
Definition:
SensorModule.h:107
trackerDTC::SensorModule::sep
double sep() const
Definition:
SensorModule.h:51
trackerDTC::SensorModule::signCol_
bool signCol_
Definition:
SensorModule.h:91
trackerDTC::SensorModule::r
double r() const
Definition:
SensorModule.h:45
trackerDTC::SensorModule::pitchCol
double pitchCol() const
Definition:
SensorModule.h:55
trackerDTC::SensorModule::Barrel2S
Definition:
SensorModule.h:16
Generated for CMSSW Reference Manual by
1.8.16