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 }
GeomDet::setDetId
void setDetId(DetId id)
Definition: GeomDet.h:99
ME0EtaPartition::localPadPitch
float localPadPitch(const LocalPoint &lp) const
pad pitch at a particular point
Definition: ME0EtaPartition.cc:54
GeomDet
Definition: GeomDet.h:27
ME0EtaPartition::type
const GeomDetType & type() const override
Definition: ME0EtaPartition.cc:22
StripTopology::localPosition
virtual LocalPoint localPosition(float strip) const =0
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
GeomDetType
Definition: GeomDetType.h:9
ME0EtaPartition::npads
int npads() const
number of ME0-CSC trigger readout pads in partition
Definition: ME0EtaPartition.cc:43
ME0EtaPartitionSpecs.h
ReferenceCountingPointer< Plane >
ME0EtaPartition::~ME0EtaPartition
~ME0EtaPartition() override
Definition: ME0EtaPartition.cc:10
ME0EtaPartition::specificPadTopology
const StripTopology & specificPadTopology() const
Definition: ME0EtaPartition.cc:20
ME0EtaPartition::pitch
float pitch() const
Definition: ME0EtaPartition.cc:41
StripTopology::localPitch
virtual float localPitch(const LocalPoint &) const =0
ME0EtaPartition::specificTopology
const StripTopology & specificTopology() const
Definition: ME0EtaPartition.cc:16
StripTopology::pitch
virtual float pitch() const =0
ME0EtaPartitionSpecs::specificTopology
const StripTopology & specificTopology() const
Definition: ME0EtaPartitionSpecs.cc:39
alignCSCRings.s
s
Definition: alignCSCRings.py:92
ME0EtaPartition::topology
const Topology & topology() const override
Definition: ME0EtaPartition.cc:14
ME0EtaPartition::centreOfStrip
LocalPoint centreOfStrip(int strip) const
Definition: ME0EtaPartition.cc:26
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
ME0EtaPartition::padOfStrip
float padOfStrip(int strip) const
returns FRACTIONAL pad number [0.,npads] for an integer strip [1,nstrip]
Definition: ME0EtaPartition.cc:58
ME0EtaPartition::localError
LocalError localError(float strip, float cluster_size=1.) const
Definition: ME0EtaPartition.cc:33
ME0EtaPartition::padTopology
const Topology & padTopology() const
Definition: ME0EtaPartition.cc:18
ME0EtaPartitionSpecs::specificPadTopology
const StripTopology & specificPadTopology() const
Definition: ME0EtaPartitionSpecs.cc:43
ME0EtaPartition::specs_
ME0EtaPartitionSpecs * specs_
Definition: ME0EtaPartition.h:87
ME0EtaPartition::pad
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads] for a point
Definition: ME0EtaPartition.cc:52
ME0EtaPartition::padPitch
float padPitch() const
pad pitch in a center
Definition: ME0EtaPartition.cc:56
ME0EtaPartitionSpecs
Definition: ME0EtaPartitionSpecs.h:18
Point3DBase< float, LocalTag >
StripTopology::strip
virtual float strip(const LocalPoint &) const =0
ME0EtaPartition::nstrips
int nstrips() const
Return the chamber this roll belongs to.
Definition: ME0EtaPartition.cc:24
ME0EtaPartitionSpecs::topology
const Topology & topology() const override
Definition: ME0EtaPartitionSpecs.cc:37
LocalError
Definition: LocalError.h:12
ME0EtaPartition::localPitch
float localPitch(const LocalPoint &lp) const
Definition: ME0EtaPartition.cc:39
ME0DetId
Definition: ME0DetId.h:16
StripTopology::nstrips
virtual int nstrips() const =0
ME0EtaPartition::lastStripInPad
int lastStripInPad(int pad) const
returns last strip (INT number [1,nstrip]) for pad (an integer [1,npads])
Definition: ME0EtaPartition.cc:69
TrapezoidalStripTopology.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ME0EtaPartition.h
ME0EtaPartition::ME0EtaPartition
ME0EtaPartition(ME0DetId id, const BoundPlane::BoundPlanePointer &bp, ME0EtaPartitionSpecs *rrs)
Definition: ME0EtaPartition.cc:5
ME0EtaPartition::centreOfPad
LocalPoint centreOfPad(int pad) const
Definition: ME0EtaPartition.cc:45
ME0EtaPartition::strip
float strip(const LocalPoint &lp) const
Definition: ME0EtaPartition.cc:37
Topology
Definition: Topology.h:39
StripTopology::localError
virtual LocalError localError(float strip, float stripErr2) const =0
StripTopology
Definition: StripTopology.h:11
ME0EtaPartitionSpecs::padTopology
const Topology & padTopology() const
Definition: ME0EtaPartitionSpecs.cc:41
ME0EtaPartition::firstStripInPad
int firstStripInPad(int pad) const
returns first strip (INT number [1,nstrip]) for pad (an integer [1,npads])
Definition: ME0EtaPartition.cc:63