L1Trigger
TrackTrigger
interface
SensorModule.h
Go to the documentation of this file.
1
#ifndef L1Trigger_TrackTrigger_SensorModule_h
2
#define L1Trigger_TrackTrigger_SensorModule_h
3
4
#include "
DataFormats/DetId/interface/DetId.h
"
5
6
namespace
tt
{
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 angle 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
sinTilt
()
const
{
return
sinTilt_
; }
60
// cosinus of module tilt measured w.r.t. beam axis (+-1=endcap), tk layout measures w.r.t. radial axis
61
double
cosTilt
()
const
{
return
cosTilt_
; }
62
// encoded radius of disk2S stubs, used in Hybrid
63
int
encodedR
()
const
{
return
encodedR_
; }
64
// stub radius offset for barrelPS, barrel2S, used in Hybrid
65
double
offsetR
()
const
{
return
offsetR_
; }
66
// stub z offset for diskPS, disk2S, used in Hybrid
67
double
offsetZ
()
const
{
return
offsetZ_
; }
68
// bend window size in half strip units
69
int
windowSize
()
const
{
return
windowSize_
; }
70
//
71
double
tiltCorrection
(
double
cot)
const
{
return
std::abs
(
tiltCorrectionSlope_
* cot) +
tiltCorrectionIntercept_
; }
72
73
private
:
74
enum
TypeTilt
{
nonBarrel
= 0,
tiltedMinus
= 1,
tiltedPlus
= 2,
flat
= 3 };
75
// cmssw det id
76
DetId
detId_
;
77
// dtc id [0-215]
78
int
dtcId_
;
79
// module on dtc id [0-71]
80
int
modId_
;
81
// +z or -z
82
bool
side_
;
83
// barrel or endcap
84
bool
barrel_
;
85
// Pixel-Strip or 2Strip module
86
bool
psModule_
;
87
// main sensor inside or outside
88
bool
flipped_
;
89
// TTStub row needs flip of sign
90
bool
signRow_
;
91
// TTStub col needs flip of sign
92
bool
signCol_
;
93
// TTStub bend needs flip of sign
94
bool
signBend_
;
95
// number of columns [2S=2,PS=8]
96
int
numColumns_
;
97
// number of rows [2S=8*127,PS=8*120]
98
int
numRows_
;
99
// layer id [1-6,11-15]
100
int
layerId_
;
101
// module radius in cm
102
double
r_
;
103
// module phi w.r.t. detector region centre in rad
104
double
phi_
;
105
// module z in cm
106
double
z_
;
107
// sensor separation in cm
108
double
sep_
;
109
// sensor pitch in cm [strip=.009,pixel=.01]
110
double
pitchRow_
;
111
// sensor length in cm [strip=5,pixel=.15625]
112
double
pitchCol_
;
113
// module tilt angle measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
114
double
tilt_
;
115
// sinus of module tilt measured w.r.t. beam axis (0=barrel), tk layout measures w.r.t. radial axis
116
double
sinTilt_
;
117
// cosinus of module tilt measured w.r.t. beam axis (+-1=endcap), tk layout measures w.r.t. radial axis
118
double
cosTilt_
;
119
// module type (barrelPS, barrel2S, diskPS, disk2S)
120
Type
type_
;
121
// encoded radius of disk2S stubs, used in Hybrid
122
int
encodedR_
;
123
// stub radius offset for barrelPS, barrel2S, used in Hybrid
124
double
offsetR_
;
125
// stub z offset for diskPS, disk2S, used in Hybrid
126
double
offsetZ_
;
127
// bend window size in half strip units
128
int
windowSize_
;
129
// tilt correction parameter used to project r to z uncertainty
130
double
tiltCorrectionSlope_
;
131
// tilt correction parameter used to project r to z uncertainty
132
double
tiltCorrectionIntercept_
;
133
};
134
135
}
// namespace tt
136
137
#endif
tt::SensorModule::signRow_
bool signRow_
Definition:
SensorModule.h:90
tt::SensorModule::tiltCorrectionIntercept_
double tiltCorrectionIntercept_
Definition:
SensorModule.h:132
tt::SensorModule::offsetR
double offsetR() const
Definition:
SensorModule.h:65
tt::SensorModule::sep_
double sep_
Definition:
SensorModule.h:108
tt::SensorModule::numRows
int numRows() const
Definition:
SensorModule.h:41
tt::SensorModule::r_
double r_
Definition:
SensorModule.h:102
tt::SensorModule::signCol_
bool signCol_
Definition:
SensorModule.h:92
tt::SensorModule::tilt
double tilt() const
Definition:
SensorModule.h:57
tt::SensorModule::type
Type type() const
Definition:
SensorModule.h:19
tt::SensorModule::flipped_
bool flipped_
Definition:
SensorModule.h:88
bmtfDigis_cfi.Setup
Setup
Definition:
bmtfDigis_cfi.py:5
tt::Setup
Class to process and provide run-time constants used by Track Trigger emulators.
Definition:
Setup.h:44
tt::SensorModule::psModule_
bool psModule_
Definition:
SensorModule.h:86
tt::SensorModule::flipped
bool flipped() const
Definition:
SensorModule.h:31
tt::SensorModule::pitchCol_
double pitchCol_
Definition:
SensorModule.h:112
tt::SensorModule::psModule
bool psModule() const
Definition:
SensorModule.h:29
tt::SensorModule::DiskPS
Definition:
SensorModule.h:16
tt::SensorModule::tiltedPlus
Definition:
SensorModule.h:74
tt::SensorModule::TypeTilt
TypeTilt
Definition:
SensorModule.h:74
tt::SensorModule::~SensorModule
~SensorModule()
Definition:
SensorModule.h:14
tt::SensorModule::modId_
int modId_
Definition:
SensorModule.h:80
tt::SensorModule::barrel_
bool barrel_
Definition:
SensorModule.h:84
tt::SensorModule::z_
double z_
Definition:
SensorModule.h:106
tt::SensorModule::encodedR_
int encodedR_
Definition:
SensorModule.h:122
tt::SensorModule::side_
bool side_
Definition:
SensorModule.h:82
tt::SensorModule::modId
int modId() const
Definition:
SensorModule.h:23
tt::SensorModule::tiltCorrectionSlope_
double tiltCorrectionSlope_
Definition:
SensorModule.h:130
tt
Definition:
TTTypes.h:54
tt::SensorModule::detId_
DetId detId_
Definition:
SensorModule.h:76
tt::SensorModule::BarrelPS
Definition:
SensorModule.h:16
tt::SensorModule::tiltedMinus
Definition:
SensorModule.h:74
tt::SensorModule::NumTypes
Definition:
SensorModule.h:16
tt::SensorModule::dtcId_
int dtcId_
Definition:
SensorModule.h:78
tt::SensorModule::offsetZ
double offsetZ() const
Definition:
SensorModule.h:67
tt::SensorModule
Definition:
SensorModule.h:11
tt::SensorModule::Type
Type
Definition:
SensorModule.h:16
tt::SensorModule::cosTilt
double cosTilt() const
Definition:
SensorModule.h:61
tt::SensorModule::signBend_
bool signBend_
Definition:
SensorModule.h:94
tt::SensorModule::cosTilt_
double cosTilt_
Definition:
SensorModule.h:118
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
tt::SensorModule::signBend
bool signBend() const
Definition:
SensorModule.h:37
tt::SensorModule::r
double r() const
Definition:
SensorModule.h:45
tt::SensorModule::dtcId
int dtcId() const
Definition:
SensorModule.h:21
singleTopDQM_cfi.setup
setup
SETUP
Definition:
singleTopDQM_cfi.py:37
tt::SensorModule::barrel
bool barrel() const
Definition:
SensorModule.h:27
tt::SensorModule::side
bool side() const
Definition:
SensorModule.h:25
tt::SensorModule::pitchRow
double pitchRow() const
Definition:
SensorModule.h:53
tt::SensorModule::numRows_
int numRows_
Definition:
SensorModule.h:98
tt::SensorModule::nonBarrel
Definition:
SensorModule.h:74
tt::SensorModule::offsetR_
double offsetR_
Definition:
SensorModule.h:124
tt::SensorModule::sinTilt_
double sinTilt_
Definition:
SensorModule.h:116
DetId
Definition:
DetId.h:17
tt::SensorModule::numColumns
int numColumns() const
Definition:
SensorModule.h:39
tt::SensorModule::phi
double phi() const
Definition:
SensorModule.h:47
tt::SensorModule::tiltCorrection
double tiltCorrection(double cot) const
Definition:
SensorModule.h:71
tt::SensorModule::sep
double sep() const
Definition:
SensorModule.h:51
tt::SensorModule::pitchCol
double pitchCol() const
Definition:
SensorModule.h:55
tt::SensorModule::z
double z() const
Definition:
SensorModule.h:49
tt::SensorModule::Barrel2S
Definition:
SensorModule.h:16
tt::SensorModule::pitchRow_
double pitchRow_
Definition:
SensorModule.h:110
tt::SensorModule::windowSize
int windowSize() const
Definition:
SensorModule.h:69
tt::SensorModule::windowSize_
int windowSize_
Definition:
SensorModule.h:128
tt::SensorModule::flat
Definition:
SensorModule.h:74
tt::SensorModule::SensorModule
SensorModule(const Setup *setup, const DetId &detId, int dtcId, int modId)
Definition:
SensorModule.cc:15
tt::SensorModule::phi_
double phi_
Definition:
SensorModule.h:104
tt::SensorModule::encodedR
int encodedR() const
Definition:
SensorModule.h:63
tt::SensorModule::sinTilt
double sinTilt() const
Definition:
SensorModule.h:59
tt::SensorModule::layerId_
int layerId_
Definition:
SensorModule.h:100
tt::SensorModule::offsetZ_
double offsetZ_
Definition:
SensorModule.h:126
tt::SensorModule::layerId
int layerId() const
Definition:
SensorModule.h:43
tt::SensorModule::type_
Type type_
Definition:
SensorModule.h:120
tt::SensorModule::numColumns_
int numColumns_
Definition:
SensorModule.h:96
DetId.h
tt::SensorModule::signCol
bool signCol() const
Definition:
SensorModule.h:35
tt::SensorModule::Disk2S
Definition:
SensorModule.h:16
tt::SensorModule::tilt_
double tilt_
Definition:
SensorModule.h:114
tt::SensorModule::signRow
bool signRow() const
Definition:
SensorModule.h:33
Generated for CMSSW Reference Manual by
1.8.14