Geometry
RPCGeometry
src
RPCRollSpecs.cc
Go to the documentation of this file.
1
#include "
Geometry/RPCGeometry/interface/RPCRollSpecs.h
"
2
#include "
Geometry/CommonTopologies/interface/RectangularStripTopology.h
"
3
#include "
Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h
"
4
5
using namespace
GeomDetEnumerators
;
6
7
RPCRollSpecs::RPCRollSpecs
(
SubDetector
rss,
const
std::string
&
name
,
const
RPCSpecs
& pars)
8
:
GeomDetType
(
name
, rss), _p(pars), _n(
name
) {
9
if
(rss ==
RPCBarrel
) {
10
int
nstrip = static_cast<int>(
_p
[2]);
11
float
pitch =
_p
[0] * 2 /
_p
[2];
12
float
striplength =
_p
[1] * 2;
13
_top
=
new
RectangularStripTopology
(nstrip, pitch, striplength);
14
}
else
if
(rss ==
RPCEndcap
) {
15
float
b
=
_p
[0];
16
float
B
=
_p
[1];
17
float
h
=
_p
[2];
18
float
r0 =
h
* (
B
+
b
) / (
B
-
b
);
19
float
striplength =
h
* 2;
20
float
strips
=
_p
[3];
21
float
pitch = (
b
+
B
) /
strips
;
22
int
nstrip = static_cast<int>(
strips
);
23
24
_top
=
new
TrapezoidalStripTopology
(nstrip, pitch, striplength, r0);
25
}
else
{
26
_top
=
nullptr
;
27
}
28
}
29
30
RPCRollSpecs::~RPCRollSpecs
() {
31
if
(
_top
)
32
delete
_top
;
33
_top
=
nullptr
;
34
}
35
36
const
Topology
&
RPCRollSpecs::topology
()
const
{
return
*(
_top
); }
37
38
const
StripTopology
&
RPCRollSpecs::specificTopology
()
const
{
return
*(
_top
); }
39
40
const
std::string
&
RPCRollSpecs::detName
()
const
{
return
_n
; }
GeomDetEnumerators::SubDetector
SubDetector
Definition:
GeomDetEnumerators.h:10
RPCRollSpecs::RPCRollSpecs
RPCRollSpecs(SubDetector rss, const std::string &name, const RPCSpecs &pars)
Definition:
RPCRollSpecs.cc:7
RPCRollSpecs::RPCSpecs
std::vector< float > RPCSpecs
Definition:
RPCRollSpecs.h:20
GeomDetEnumerators::RPCEndcap
Definition:
GeomDetEnumerators.h:20
RPCRollSpecs::_top
StripTopology * _top
Definition:
RPCRollSpecs.h:33
RPCRollSpecs::specificTopology
const StripTopology & specificTopology() const
Definition:
RPCRollSpecs.cc:38
GeomDetType
Definition:
GeomDetType.h:9
RPCRollSpecs::_n
std::string _n
Definition:
RPCRollSpecs.h:35
RectangularStripTopology.h
h
RectangularStripTopology
Definition:
RectangularStripTopology.h:11
TrapezoidalStripTopology
Definition:
TrapezoidalStripTopology.h:21
RPCRollSpecs::topology
const Topology & topology() const override
Definition:
RPCRollSpecs.cc:36
b
double b
Definition:
hdecay.h:118
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RPCRollSpecs.h
GeomDetEnumerators
Definition:
GeomDetEnumerators.h:8
TtFullHadDaughter::B
static const std::string B
Definition:
TtFullHadronicEvent.h:9
TrapezoidalStripTopology.h
RPCRollSpecs::_p
std::vector< float > _p
Definition:
RPCRollSpecs.h:34
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
GeomDetEnumerators::RPCBarrel
Definition:
GeomDetEnumerators.h:19
Topology
Definition:
Topology.h:39
StripTopology
Definition:
StripTopology.h:11
DigiDM_cff.strips
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers....
Definition:
DigiDM_cff.py:32
RPCRollSpecs::~RPCRollSpecs
~RPCRollSpecs() override
Definition:
RPCRollSpecs.cc:30
RPCRollSpecs::detName
const std::string & detName() const
Definition:
RPCRollSpecs.cc:40
Generated for CMSSW Reference Manual by
1.8.16