CMS 3D CMS Logo

RPCRoll.cc
Go to the documentation of this file.
4 
6  : GeomDetUnit(bp), _id(id), _rrs(rrs) {
7  setDetId(id);
8 }
9 
11  delete _rrs; //Assume the roll owns it specs (specs are not shared)
12 }
13 
14 const RPCRollSpecs* RPCRoll::specs() const { return _rrs; }
15 
16 RPCDetId RPCRoll::id() const { return _id; }
17 
18 const Topology& RPCRoll::topology() const { return _rrs->topology(); }
19 
20 const GeomDetType& RPCRoll::type() const { return (*_rrs); }
21 
22 const RPCChamber* RPCRoll::chamber() const { return theCh; }
23 
24 int RPCRoll::nstrips() const { return this->specificTopology().nstrips(); }
25 
27  float s = static_cast<float>(strip) - 0.5;
28  return this->specificTopology().localPosition(s);
29 }
30 
31 LocalPoint RPCRoll::centreOfStrip(float strip) const { return this->specificTopology().localPosition(strip); }
32 
33 LocalError RPCRoll::localError(float strip) const { return this->specificTopology().localError(strip, 1. / sqrt(12.)); }
34 
35 float RPCRoll::strip(const LocalPoint& lp) const { return this->specificTopology().strip(lp); }
36 
37 float RPCRoll::localPitch(const LocalPoint& lp) const { return this->specificTopology().localPitch(lp); }
38 
39 float RPCRoll::pitch() const { return this->specificTopology().pitch(); }
40 
41 bool RPCRoll::isBarrel() const { return ((this->id()).region() == 0); }
42 
43 bool RPCRoll::isForward() const
44 
45 {
46  return (!this->isBarrel());
47 }
48 
50 
51 void RPCRoll::setChamber(const RPCChamber* ch) { theCh = ch; }
GeomDet::setDetId
void setDetId(DetId id)
Definition: GeomDet.h:99
RPCRoll::setChamber
void setChamber(const RPCChamber *ch)
Definition: RPCRoll.cc:51
RPCRoll::type
const GeomDetType & type() const override
Definition: RPCRoll.cc:20
GeomDet
Definition: GeomDet.h:27
RPCRollSpecs
Definition: RPCRollSpecs.h:18
RPCRoll::chamber
const RPCChamber * chamber() const
Return the chamber this roll belongs to.
Definition: RPCRoll.cc:22
StripTopology::localPosition
virtual LocalPoint localPosition(float strip) const =0
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
RPCDetId
Definition: RPCDetId.h:16
RPCRollSpecs::specificTopology
const StripTopology & specificTopology() const
Definition: RPCRollSpecs.cc:38
GeomDetType
Definition: GeomDetType.h:9
RPCRoll.h
ReferenceCountingPointer< Plane >
RPCRoll::isForward
bool isForward() const
Definition: RPCRoll.cc:43
StripTopology::localPitch
virtual float localPitch(const LocalPoint &) const =0
RPCChamber
Definition: RPCChamber.h:19
RPCRoll::pitch
float pitch() const
Definition: RPCRoll.cc:39
RPCRoll::localPitch
float localPitch(const LocalPoint &lp) const
Definition: RPCRoll.cc:37
RPCRoll::topology
const Topology & topology() const override
Definition: RPCRoll.cc:18
RPCRoll::isBarrel
bool isBarrel() const
Definition: RPCRoll.cc:41
StripTopology::pitch
virtual float pitch() const =0
RPCRoll::id
RPCDetId id() const
Definition: RPCRoll.cc:16
alignCSCRings.s
s
Definition: alignCSCRings.py:92
RPCRoll::_rrs
RPCRollSpecs * _rrs
Definition: RPCRoll.h:46
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
RPCRoll::_id
RPCDetId _id
Definition: RPCRoll.h:45
RPCRollSpecs::topology
const Topology & topology() const override
Definition: RPCRollSpecs.cc:36
Point3DBase< float, LocalTag >
StripTopology::strip
virtual float strip(const LocalPoint &) const =0
RPCRoll::specificTopology
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:49
RPCRoll::strip
float strip(const LocalPoint &lp) const
Definition: RPCRoll.cc:35
RPCRoll::theCh
const RPCChamber * theCh
Definition: RPCRoll.h:47
RPCRoll::centreOfStrip
LocalPoint centreOfStrip(int strip) const
Definition: RPCRoll.cc:26
RPCRollSpecs.h
LocalError
Definition: LocalError.h:12
RPCRoll::nstrips
int nstrips() const
Definition: RPCRoll.cc:24
RPCRoll::RPCRoll
RPCRoll(RPCDetId id, const BoundPlane::BoundPlanePointer &bp, RPCRollSpecs *rrs)
Definition: RPCRoll.cc:5
StripTopology::nstrips
virtual int nstrips() const =0
RPCRoll::~RPCRoll
~RPCRoll() override
Definition: RPCRoll.cc:10
TrapezoidalStripTopology.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
RPCRoll::specs
const RPCRollSpecs * specs() const
Definition: RPCRoll.cc:14
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
Topology
Definition: Topology.h:39
StripTopology::localError
virtual LocalError localError(float strip, float stripErr2) const =0
RPCRoll::localError
LocalError localError(float strip) const
Definition: RPCRoll.cc:33
StripTopology
Definition: StripTopology.h:11