CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ME0EtaPartition.cc
Go to the documentation of this file.
4 
6  : GeomDet(bp), id_(id), specs_(rrs) {
7  setDetId(id);
8 }
9 
11  delete specs_; //Assume the roll owns it specs (specs are not shared)
12 }
13 
14 const Topology& ME0EtaPartition::topology() const { return specs_->topology(); }
15 
17 
19 
21 
22 const GeomDetType& ME0EtaPartition::type() const { return (*specs_); }
23 
24 int ME0EtaPartition::nstrips() const { return this->specificTopology().nstrips(); }
25 
27  float s = static_cast<float>(strip) - 0.5;
28  return this->specificTopology().localPosition(s);
29 }
30 
32 
33 LocalError ME0EtaPartition::localError(float strip, float cluster_size) const {
34  return this->specificTopology().localError(strip, cluster_size * cluster_size / sqrt(12.));
35 }
36 
37 float ME0EtaPartition::strip(const LocalPoint& lp) const { return this->specificTopology().strip(lp); }
38 
39 float ME0EtaPartition::localPitch(const LocalPoint& lp) const { return this->specificTopology().localPitch(lp); }
40 
41 float ME0EtaPartition::pitch() const { return this->specificTopology().pitch(); }
42 
44 
46  float p = static_cast<float>(pad) - 0.5;
48 }
49 
51 
52 float ME0EtaPartition::pad(const LocalPoint& lp) const { return specificPadTopology().strip(lp); }
53 
55 
57 
59  LocalPoint c_o_s = centreOfStrip(strip);
60  return pad(c_o_s);
61 }
62 
64  float p = static_cast<float>(pad) - 0.9999;
66  return static_cast<int>(strip(lp)) + 1;
67 }
68 
69 int ME0EtaPartition::lastStripInPad(int pad) const {
70  float p = static_cast<float>(pad) - 0.0001;
72  return static_cast<int>(strip(lp)) + 1;
73 }
virtual int nstrips() const =0
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
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads] for a point
void setDetId(DetId id)
Definition: GeomDet.h:99
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
virtual float strip(const LocalPoint &) const =0
const GeomDetType & type() const override
virtual float localPitch(const LocalPoint &) const =0
float localPadPitch(const LocalPoint &lp) const
pad pitch at a particular point
const StripTopology & specificTopology() const
LocalError localError(float strip, float cluster_size=1.) const
T sqrt(T t)
Definition: SSEVec.h:19
float pitch() const
int nstrips() const
Return the chamber this roll belongs to.
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
ME0EtaPartitionSpecs * specs_
virtual LocalError localError(float strip, float stripErr2) const =0
const Topology & topology() const override
const Topology & topology() const override
~ME0EtaPartition() override
float padPitch() const
pad pitch in a center
virtual float pitch() const =0
virtual LocalPoint localPosition(float strip) const =0
const StripTopology & specificPadTopology() const