CMS 3D CMS Logo

GEMEtaPartition.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& GEMEtaPartition::topology() const { return specs_->topology(); }
15 
17 
19 
21 
22 const GeomDetType& GEMEtaPartition::type() const { return (*specs_); }
23 
24 int GEMEtaPartition::nstrips() const { return this->specificTopology().nstrips(); }
25 
27  float s = static_cast<float>(strip) + 0.5f;
28  return this->specificTopology().localPosition(s);
29 }
30 
32 
33 LocalError GEMEtaPartition::localError(float strip, float cluster_size) const {
34  return this->specificTopology().localError(strip, cluster_size * cluster_size / 12.);
35 }
36 
37 float GEMEtaPartition::strip(const LocalPoint& lp) const { return this->specificTopology().strip(lp); }
38 
39 float GEMEtaPartition::localPitch(const LocalPoint& lp) const { return this->specificTopology().localPitch(lp); }
40 
41 float GEMEtaPartition::pitch() const { return this->specificTopology().pitch(); }
42 
44 
46  float p = static_cast<float>(pad) + 0.5f;
48 }
49 
51 
52 float GEMEtaPartition::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.9999f;
66  return static_cast<int>(strip(lp));
67 }
68 
69 int GEMEtaPartition::lastStripInPad(int pad) const {
70  float p = static_cast<float>(pad) - 0.0001f;
72  return static_cast<int>(strip(lp));
73 }
74 
76 
77 bool GEMEtaPartition::isGE11() const { return id_.isGE11(); }
78 
79 bool GEMEtaPartition::isGE21() const { return id_.isGE21(); }
80 
81 bool GEMEtaPartition::isME0() const { return id_.isME0(); }
GeomDet::setDetId
void setDetId(DetId id)
Definition: GeomDet.h:99
GEMDetId::isGE21
bool isGE21() const
Definition: GEMDetId.cc:11
GEMEtaPartition::firstStripInPad
int firstStripInPad(int pad) const
returns first strip (INT number [0,nstrip-1]) for pad (an integer [0,npads-1])
Definition: GEMEtaPartition.cc:63
GEMEtaPartition::nstrips
int nstrips() const
number of readout strips in partition
Definition: GEMEtaPartition.cc:24
GeomDet
Definition: GeomDet.h:27
GEMEtaPartition::type
const GeomDetType & type() const override
Definition: GEMEtaPartition.cc:22
StripTopology::localPosition
virtual LocalPoint localPosition(float strip) const =0
GEMDetId::subsystem
GEMSubDetId::Station subsystem() const
Definition: GEMDetId.cc:7
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
GEMStripTopology.h
GEMEtaPartition::id_
GEMDetId id_
Definition: GEMEtaPartition.h:88
GeomDetType
Definition: GeomDetType.h:9
GEMEtaPartition::isGE11
bool isGE11() const
Definition: GEMEtaPartition.cc:77
GEMEtaPartition::lastStripInPad
int lastStripInPad(int pad) const
returns last strip (INT number [0,nstrip-1]) for pad (an integer [0,npads-1])
Definition: GEMEtaPartition.cc:69
GEMEtaPartitionSpecs::padTopology
const Topology & padTopology() const
Definition: GEMEtaPartitionSpecs.cc:44
ReferenceCountingPointer< Plane >
GEMEtaPartition::specificTopology
const StripTopology & specificTopology() const
Definition: GEMEtaPartition.cc:16
GEMEtaPartition::padTopology
const Topology & padTopology() const
Definition: GEMEtaPartition.cc:18
StripTopology::localPitch
virtual float localPitch(const LocalPoint &) const =0
StripTopology::pitch
virtual float pitch() const =0
GEMEtaPartitionSpecs::topology
const Topology & topology() const override
Definition: GEMEtaPartitionSpecs.cc:40
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GEMEtaPartition::localPadPitch
float localPadPitch(const LocalPoint &lp) const
pad pitch at a particular point
Definition: GEMEtaPartition.cc:54
GEMEtaPartition.h
GEMEtaPartition::isME0
bool isME0() const
Definition: GEMEtaPartition.cc:81
GEMEtaPartition::pad
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads) for a point
Definition: GEMEtaPartition.cc:52
GEMDetId::isME0
bool isME0() const
Definition: GEMDetId.cc:13
Point3DBase< float, LocalTag >
GEMEtaPartition::specs_
GEMEtaPartitionSpecs * specs_
Definition: GEMEtaPartition.h:89
StripTopology::strip
virtual float strip(const LocalPoint &) const =0
GEMSubDetId::Station
Station
Definition: GEMSubDetId.h:12
GEMEtaPartitionSpecs.h
GEMEtaPartition::localError
LocalError localError(float strip, float cluster_size=1.) const
Definition: GEMEtaPartition.cc:33
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
LocalError
Definition: LocalError.h:12
GEMDetId
Definition: GEMDetId.h:18
GEMEtaPartition::topology
const Topology & topology() const override
Definition: GEMEtaPartition.cc:14
GEMEtaPartition::subsystem
GEMSubDetId::Station subsystem() const
Definition: GEMEtaPartition.cc:75
GEMEtaPartitionSpecs::specificPadTopology
const StripTopology & specificPadTopology() const
Definition: GEMEtaPartitionSpecs.cc:46
GEMEtaPartition::centreOfStrip
LocalPoint centreOfStrip(int strip) const
Definition: GEMEtaPartition.cc:26
GEMEtaPartition::isGE21
bool isGE21() const
Definition: GEMEtaPartition.cc:79
GEMEtaPartition::specificPadTopology
const StripTopology & specificPadTopology() const
Definition: GEMEtaPartition.cc:20
GEMEtaPartition::strip
float strip(const LocalPoint &lp) const
Definition: GEMEtaPartition.cc:37
StripTopology::nstrips
virtual int nstrips() const =0
GEMEtaPartition::centreOfPad
LocalPoint centreOfPad(int pad) const
Definition: GEMEtaPartition.cc:45
GEMEtaPartition::pitch
float pitch() const
Definition: GEMEtaPartition.cc:41
GEMEtaPartition::padPitch
float padPitch() const
pad pitch in a center
Definition: GEMEtaPartition.cc:56
GEMEtaPartition::npads
int npads() const
number of GEM-CSC trigger readout pads in partition
Definition: GEMEtaPartition.cc:43
GEMEtaPartition::localPitch
float localPitch(const LocalPoint &lp) const
Definition: GEMEtaPartition.cc:39
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
GEMDetId::isGE11
bool isGE11() const
Definition: GEMDetId.cc:9
GEMEtaPartitionSpecs::specificTopology
const StripTopology & specificTopology() const
Definition: GEMEtaPartitionSpecs.cc:42
Topology
Definition: Topology.h:39
GEMEtaPartition::padOfStrip
float padOfStrip(int strip) const
returns FRACTIONAL pad number [0.,npads) for an integer strip [0,nstrip-1]
Definition: GEMEtaPartition.cc:58
StripTopology::localError
virtual LocalError localError(float strip, float stripErr2) const =0
StripTopology
Definition: StripTopology.h:11
GEMEtaPartition::~GEMEtaPartition
~GEMEtaPartition() override
Definition: GEMEtaPartition.cc:10
GEMEtaPartitionSpecs
Definition: GEMEtaPartitionSpecs.h:18
GEMEtaPartition::GEMEtaPartition
GEMEtaPartition(GEMDetId id, const BoundPlane::BoundPlanePointer &bp, GEMEtaPartitionSpecs *rrs)
Definition: GEMEtaPartition.cc:5