CMS 3D CMS Logo

ME0EtaPartitionSpecs.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 == ME0) {
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& ME0EtaPartitionSpecs::topology() const { return *_top; }
38 
40 
42 
44 
45 const std::string& ME0EtaPartitionSpecs::detName() const { return _n; }
46 
47 const std::vector<float>& ME0EtaPartitionSpecs::parameters() const { return _p; }
std::vector< float > ME0Specs
Definition: APVGainStruct.h:7
ME0EtaPartitionSpecs(SubDetector rss, const std::string &name, const ME0Specs &pars)
const StripTopology & specificTopology() const
std::vector< float > _p
const ME0Specs & parameters() const
StripTopology * _top
topology of strips
StripTopology * _top_pad
topology of trigger pads (pad = bundle of strips, basically, a "fat" strip)
const StripTopology & specificPadTopology() const
double b
Definition: hdecay.h:120
ME0 Data Record : block->header().getID() = 6.
Definition: Block.h:23
const Topology & padTopology() const
const Topology & topology() const override
const std::string & detName() const
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
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4