CMS 3D CMS Logo

GEMEtaPartitionSpecs.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 == GEM) {
10  float b = _p[0];
11  float B = _p[1];
12  float h = _p[2];
13  float r0 = h * (B + b) / (B - b);
14  float striplength = h * 2;
15  float strips = _p[3];
16  float pitch = (b + B) / strips;
17  int nstrip = static_cast<int>(strips);
18  _top = new TrapezoidalStripTopology(nstrip, pitch, striplength, r0);
19 
20  float pads = _p[4];
21  float pad_pitch = (b + B) / pads;
22  int npad = static_cast<int>(pads);
23  _top_pad = new TrapezoidalStripTopology(npad, pad_pitch, striplength, r0);
24  } else {
25  _top = nullptr;
26  _top_pad = nullptr;
27  }
28 }
29 
31  if (_top)
32  delete _top;
33  if (_top_pad)
34  delete _top_pad;
35 }
36 
37 const Topology& GEMEtaPartitionSpecs::topology() const { return *_top; }
38 
40 
42 
44 
45 const std::string& GEMEtaPartitionSpecs::detName() const { return _n; }
46 
47 const std::vector<float>& GEMEtaPartitionSpecs::parameters() const { return _p; }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
const Topology & padTopology() const
const StripTopology & specificPadTopology() const
const GEMSpecs & parameters() const
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a "fat" strip)
const StripTopology & specificTopology() const
std::vector< float > _p
std::vector< float > GEMSpecs
static const std::string B
const Topology & topology() const override
GEMEtaPartitionSpecs(SubDetector rss, const std::string &name, const GEMSpecs &pars)
double b
Definition: hdecay.h:118
StripTopology * _top
topology of strips
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 std::string & detName() const