CMS 3D CMS Logo

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 
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 }
int npads() const
number of ME0-CSC trigger readout pads in partition
virtual int nstrips() const =0
float padPitch() const
pad pitch in a center
void setDetId(DetId id)
Definition: GeomDet.h:99
const StripTopology & specificTopology() const
int lastStripInPad(int pad) const
returns last strip (INT number [1,nstrip]) for pad (an integer [1,npads])
ME0EtaPartition(ME0DetId id, const BoundPlane::BoundPlanePointer &bp, ME0EtaPartitionSpecs *rrs)
LocalError localError(float strip, float cluster_size=1.) const
virtual float strip(const LocalPoint &) const =0
const GeomDetType & type() const override
virtual float localPitch(const LocalPoint &) const =0
int firstStripInPad(int pad) const
returns first strip (INT number [1,nstrip]) for pad (an integer [1,npads])
float localPadPitch(const LocalPoint &lp) const
pad pitch at a particular point
const StripTopology & specificPadTopology() const
T sqrt(T t)
Definition: SSEVec.h:19
LocalPoint centreOfPad(int pad) const
LocalPoint centreOfStrip(int strip) const
const Topology & padTopology() const
float pitch() const
float strip(const LocalPoint &lp) const
const StripTopology & specificPadTopology() const
float localPitch(const LocalPoint &lp) const
ME0EtaPartitionSpecs * specs_
virtual LocalError localError(float strip, float stripErr2) const =0
const Topology & padTopology() const
const Topology & topology() const override
const Topology & topology() const override
~ME0EtaPartition() override
const StripTopology & specificTopology() const
virtual float pitch() const =0
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads] for a point
virtual LocalPoint localPosition(float strip) const =0
float padOfStrip(int strip) const
returns FRACTIONAL pad number [0.,npads] for an integer strip [1,nstrip]
int nstrips() const
Return the chamber this roll belongs to.