Main Page
Namespaces
Classes
Package Documentation
Geometry
GEMGeometry
src
GEMEtaPartitionSpecs.cc
Go to the documentation of this file.
1
#include "
Geometry/GEMGeometry/interface/GEMEtaPartitionSpecs.h
"
2
#include "
Geometry/CommonTopologies/interface/RectangularStripTopology.h
"
3
#include "
Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h
"
4
5
6
using namespace
GeomDetEnumerators
;
7
8
9
GEMEtaPartitionSpecs::GEMEtaPartitionSpecs
(
SubDetector
rss,
const
std::string
&
name
,
const
GEMSpecs
& pars)
10
:
GeomDetType
(name, rss), _p(pars), _n(name)
11
{
12
if
(rss ==
GEM
)
13
{
14
float
b
=
_p
[0];
15
float
B
=
_p
[1];
16
float
h
=
_p
[2];
17
float
r0 = h*(B +
b
)/(B - b);
18
float
striplength = h*2;
19
float
strips
=
_p
[3];
20
float
pitch = (b +
B
)/strips;
21
int
nstrip =
static_cast<
int
>
(
strips
);
22
_top
=
new
TrapezoidalStripTopology
(nstrip, pitch, striplength, r0);
23
24
float
pads =
_p
[4];
25
float
pad_pitch = (b +
B
)/pads;
26
int
npad
=
static_cast<
int
>
(pads);
27
_top_pad
=
new
TrapezoidalStripTopology
(npad, pad_pitch, striplength, r0);
28
}
else
{
29
_top
=
nullptr
;
30
_top_pad
=
nullptr
;
31
}
32
}
33
34
35
GEMEtaPartitionSpecs::~GEMEtaPartitionSpecs
()
36
{
37
if
(
_top
)
delete
_top
;
38
if
(
_top_pad
)
delete
_top_pad
;
39
}
40
41
42
const
Topology
&
43
GEMEtaPartitionSpecs::topology
()
const
44
{
45
return
*
_top
;
46
}
47
48
const
StripTopology
&
49
GEMEtaPartitionSpecs::specificTopology
()
const
50
{
51
return
*
_top
;
52
}
53
54
55
const
Topology
&
56
GEMEtaPartitionSpecs::padTopology
()
const
57
{
58
return
*
_top_pad
;
59
}
60
61
const
StripTopology
&
62
GEMEtaPartitionSpecs::specificPadTopology
()
const
63
{
64
return
*
_top_pad
;
65
}
66
67
68
const
std::string
&
69
GEMEtaPartitionSpecs::detName
()
const
70
{
71
return
_n
;
72
}
73
74
75
const
std::vector<float>&
76
GEMEtaPartitionSpecs::parameters
()
const
77
{
78
return
_p
;
79
}
GEMEtaPartitionSpecs::padTopology
const Topology & padTopology() const
Definition:
GEMEtaPartitionSpecs.cc:56
RecoTauPiZeroBuilderPlugins_cfi.strips
strips
Definition:
RecoTauPiZeroBuilderPlugins_cfi.py:34
B
double_binary B
Definition:
DDStreamer.cc:248
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
h
Definition:
CSCDQM_HistoNames.h:23
GEMEtaPartitionSpecs::specificPadTopology
const StripTopology & specificPadTopology() const
Definition:
GEMEtaPartitionSpecs.cc:62
GEMEtaPartitionSpecs::parameters
const GEMSpecs & parameters() const
Definition:
GEMEtaPartitionSpecs.cc:76
StripTopology
Definition:
StripTopology.h:11
RectangularStripTopology.h
GEMEtaPartitionSpecs.h
TrapezoidalStripTopology.h
GEMEtaPartitionSpecs::_top_pad
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a "fat" strip)
Definition:
GEMEtaPartitionSpecs.h:47
GEMEtaPartitionSpecs::~GEMEtaPartitionSpecs
~GEMEtaPartitionSpecs()
Definition:
GEMEtaPartitionSpecs.cc:35
double_binary
Definition:
DDStreamer.cc:241
GEMEtaPartitionSpecs::specificTopology
const StripTopology & specificTopology() const
Definition:
GEMEtaPartitionSpecs.cc:49
GEMEtaPartitionSpecs::topology
const Topology & topology() const
Definition:
GEMEtaPartitionSpecs.cc:43
GeomDetEnumerators::GEM
Definition:
GeomDetEnumerators.h:11
TrapezoidalStripTopology
Definition:
TrapezoidalStripTopology.h:22
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:11
GeomDetEnumerators
Definition:
GeomDetEnumerators.h:9
GEMEtaPartitionSpecs::_p
std::vector< float > _p
Definition:
GEMEtaPartitionSpecs.h:49
Topology
Definition:
Topology.h:42
GEMEtaPartitionSpecs::GEMSpecs
std::vector< float > GEMSpecs
Definition:
GEMEtaPartitionSpecs.h:23
GEMEtaPartitionSpecs::_n
std::string _n
Definition:
GEMEtaPartitionSpecs.h:50
GEMEtaPartitionSpecs::GEMEtaPartitionSpecs
GEMEtaPartitionSpecs(SubDetector rss, const std::string &name, const GEMSpecs &pars)
Definition:
GEMEtaPartitionSpecs.cc:9
b
double b
Definition:
hdecay.h:120
gen::npad
int npad
Definition:
Cascade2Hadronizer.cc:79
GEMEtaPartitionSpecs::_top
StripTopology * _top
topology of strips
Definition:
GEMEtaPartitionSpecs.h:44
dataset.name
name
Definition:
dataset.py:45
GeomDetType
Definition:
GeomDetType.h:10
GEMEtaPartitionSpecs::detName
const std::string & detName() const
Definition:
GEMEtaPartitionSpecs.cc:69
Generated for CMSSW Reference Manual by
1.8.11