CMS 3D CMS Logo

RPCRoll.h
Go to the documentation of this file.
1 #ifndef Geometry_RPCSimAlgo_RPCRoll_H
2 #define Geometry_RPCSimAlgo_RPCRoll_H
3 
8 
9 class StripTopology;
10 class RPCRollSpecs;
11 class RPCChamber;
12 class RPCRoll : public GeomDetUnit{
13 
14  public:
15 
17  ~RPCRoll() override;
18  const RPCRollSpecs* specs() const;
19  RPCDetId id() const;
20  const Topology& topology() const override;
21  const StripTopology& specificTopology() const;
22  const GeomDetType& type() const override;
23 
25  const RPCChamber* chamber() const;
26 
27  int nstrips() const;
28 
29  LocalPoint centreOfStrip(int strip) const;
30  LocalPoint centreOfStrip(float strip) const;
31  LocalError localError(float strip) const;
32 
33  float strip(const LocalPoint& lp) const;
34  float pitch() const;
35  float localPitch(const LocalPoint& lp) const;
36  bool isBarrel() const;
37  bool isForward() const;
38  bool isIRPC() const {return (((this->id()).region()!=0) && (((this->id()).station()==3)||((this->id()).station()==4))&&((this->id()).ring()==1));}
39  private:
40  void setChamber(const RPCChamber* ch);
41 
42  private:
45  const RPCChamber* theCh; // NOT owned
46 };
47 
48 #endif
float strip(const LocalPoint &lp) const
Definition: RPCRoll.cc:71
LocalPoint centreOfStrip(int strip) const
Definition: RPCRoll.cc:52
void setChamber(const RPCChamber *ch)
Definition: RPCRoll.cc:116
int nstrips() const
Definition: RPCRoll.cc:46
const RPCRollSpecs * specs() const
Definition: RPCRoll.cc:18
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:107
const Topology & topology() const override
Definition: RPCRoll.cc:30
bool isBarrel() const
Definition: RPCRoll.cc:92
bool isIRPC() const
Definition: RPCRoll.h:38
RPCDetId id() const
Definition: RPCRoll.cc:24
LocalError localError(float strip) const
Definition: RPCRoll.cc:65
const RPCChamber * chamber() const
Return the chamber this roll belongs to.
Definition: RPCRoll.cc:41
RPCRollSpecs * _rrs
Definition: RPCRoll.h:44
float localPitch(const LocalPoint &lp) const
Definition: RPCRoll.cc:78
float pitch() const
Definition: RPCRoll.cc:85
~RPCRoll() override
Definition: RPCRoll.cc:12
bool isForward() const
Definition: RPCRoll.cc:98
RPCRoll(RPCDetId id, const BoundPlane::BoundPlanePointer &bp, RPCRollSpecs *rrs)
Definition: RPCRoll.cc:6
RPCDetId _id
Definition: RPCRoll.h:43
const RPCChamber * theCh
Definition: RPCRoll.h:45
const GeomDetType & type() const override
Definition: RPCRoll.cc:36