CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPCRollSpecs.cc
Go to the documentation of this file.
4 
5 using namespace GeomDetEnumerators;
6 
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 
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; }
std::string _n
Definition: RPCRollSpecs.h:35
Definition: APVGainStruct.h:7
~RPCRollSpecs() override
Definition: RPCRollSpecs.cc:30
RPCRollSpecs(SubDetector rss, const std::string &name, const RPCSpecs &pars)
Definition: RPCRollSpecs.cc:7
StripTopology * _top
Definition: RPCRollSpecs.h:33
const StripTopology & specificTopology() const
Definition: RPCRollSpecs.cc:38
tuple strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
Definition: DigiDM_cff.py:32
const Topology & topology() const override
Definition: RPCRollSpecs.cc:36
const std::string & detName() const
Definition: RPCRollSpecs.cc:40
double b
Definition: hdecay.h:118
std::vector< float > RPCSpecs
Definition: RPCRollSpecs.h:20
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::vector< float > _p
Definition: RPCRollSpecs.h:34