CMS 3D CMS Logo

ME0EtaPartition.cc
Go to the documentation of this file.
4 
5 
7  GeomDetUnit(bp), id_(id),specs_(rrs)
8 {
9  setDetId(id);
10 }
11 
13 {
14  delete specs_; //Assume the roll owns it specs (specs are not shared)
15 }
16 
17 const Topology&
19 {
20  return specs_->topology();
21 }
22 
23 const StripTopology&
25 {
26  return specs_->specificTopology();
27 }
28 
29 const Topology&
31 {
32  return specs_->padTopology();
33 }
34 
35 const StripTopology&
37 {
38  return specs_->specificPadTopology();
39 }
40 
41 const GeomDetType&
43 {
44  return (*specs_);
45 }
46 
47 int
49 {
50  return this->specificTopology().nstrips();
51 }
52 
55 {
56  float s = static_cast<float>(strip) - 0.5;
57  return this->specificTopology().localPosition(s);
58 }
59 
62 {
63  return this->specificTopology().localPosition(strip);
64 }
65 
68 {
69  return this->specificTopology().localError(strip, 1./sqrt(12.));
70 }
71 
72 float
74 {
75  return this->specificTopology().strip(lp);
76 }
77 
78 float
80 {
81  return this->specificTopology().localPitch(lp);
82 }
83 
84 float
86 {
87  return this->specificTopology().pitch();
88 }
89 
90 
91 int
93 {
94  return specificPadTopology().nstrips();
95 }
96 
99 {
100  float p = static_cast<float>(pad) - 0.5;
102 }
103 
106 {
107  return specificPadTopology().localPosition(pad);
108 }
109 
110 float
112 {
113  return specificPadTopology().strip(lp);
114 }
115 
116 float
118 {
119  return specificPadTopology().localPitch(lp);
120 }
121 
122 float
124 {
125  return specificPadTopology().pitch();
126 }
127 
128 
129 float
131 {
132  LocalPoint c_o_s = centreOfStrip(strip);
133  return pad(c_o_s);
134 }
135 
136 int
138 {
139  float p = static_cast<float>(pad) - 0.9999;
141  return static_cast<int>(strip(lp)) + 1;
142 }
143 
144 int
146 {
147  float p = static_cast<float>(pad) - 0.0001;
149  return static_cast<int>(strip(lp)) + 1;
150 }
151 
float localPitch(const LocalPoint &lp) const
int firstStripInPad(int pad) const
returns first strip (INT number [1,nstrip]) for pad (an integer [1,npads])
const StripTopology & specificTopology() const
const Topology & topology() const override
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads] for a point
void setDetId(DetId id)
Definition: GeomDet.h:120
virtual LocalError localError(float strip, float stripErr2) const =0
virtual float strip(const LocalPoint &) const =0
LocalPoint centreOfStrip(int strip) const
const Topology & padTopology() const
ME0EtaPartition(ME0DetId id, const BoundPlane::BoundPlanePointer &bp, ME0EtaPartitionSpecs *rrs)
const StripTopology & specificPadTopology() const
float strip(const LocalPoint &lp) const
float padOfStrip(int strip) const
returns FRACTIONAL pad number [0.,npads] for an integer strip [1,nstrip]
LocalPoint centreOfPad(int pad) const
float localPadPitch(const LocalPoint &lp) const
pad pitch at a particular point
const StripTopology & specificTopology() const
virtual LocalPoint localPosition(float strip) const =0
T sqrt(T t)
Definition: SSEVec.h:18
float pitch() const
LocalError localError(float strip) const
int nstrips() const
Return the chamber this roll belongs to.
const GeomDetType & type() const override
virtual int nstrips() const =0
const Topology & padTopology() const
int lastStripInPad(int pad) const
returns last strip (INT number [1,nstrip]) for pad (an integer [1,npads])
int npads() const
number of ME0-CSC trigger readout pads in partition
virtual float localPitch(const LocalPoint &) const =0
ME0EtaPartitionSpecs * specs_
~ME0EtaPartition() override
float padPitch() const
pad pitch in a center
virtual float pitch() const =0
const StripTopology & specificPadTopology() const
const Topology & topology() const override