CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

RPCRoll Class Reference

#include <RPCRoll.h>

Inheritance diagram for RPCRoll:
GeomDetUnit GeomDet

List of all members.

Public Member Functions

LocalPoint centreOfStrip (int strip) const
LocalPoint centreOfStrip (float strip) const
const RPCChamberchamber () const
 Return the chamber this roll belongs to.
RPCDetId id () const
bool isBarrel () const
bool isForward () const
LocalError localError (float strip) const
float localPitch (const LocalPoint &lp) const
int nstrips () const
float pitch () const
 RPCRoll (RPCDetId id, BoundPlane::BoundPlanePointer bp, RPCRollSpecs *rrs)
const StripTopologyspecificTopology () const
const RPCRollSpecsspecs () const
float strip (const LocalPoint &lp) const
const Topologytopology () const
const GeomDetTypetype () const
 ~RPCRoll ()

Private Member Functions

void setChamber (const RPCChamber *ch)

Private Attributes

RPCDetId _id
RPCRollSpecs_rrs
const RPCChambertheCh

Detailed Description

Definition at line 12 of file RPCRoll.h.


Constructor & Destructor Documentation

RPCRoll::RPCRoll ( RPCDetId  id,
BoundPlane::BoundPlanePointer  bp,
RPCRollSpecs rrs 
)

Definition at line 6 of file RPCRoll.cc.

References GeomDet::setDetId().

                                                                               :
  GeomDetUnit(bp), _id(id),_rrs(rrs)
{
  setDetId(id);
}
RPCRoll::~RPCRoll ( )

Definition at line 12 of file RPCRoll.cc.

References _rrs.

{
  delete _rrs; //Assume the roll owns it specs (specs are not shared)
}

Member Function Documentation

LocalPoint RPCRoll::centreOfStrip ( int  strip) const
LocalPoint RPCRoll::centreOfStrip ( float  strip) const

Definition at line 59 of file RPCRoll.cc.

References StripTopology::localPosition(), and specificTopology().

{
  return this->specificTopology().localPosition(strip);
}
const RPCChamber * RPCRoll::chamber ( ) const

Return the chamber this roll belongs to.

Definition at line 41 of file RPCRoll.cc.

References theCh.

                                         {
  return theCh;
}
RPCDetId RPCRoll::id ( void  ) const
bool RPCRoll::isBarrel ( ) const

Definition at line 92 of file RPCRoll.cc.

Referenced by isForward(), and TracktoRPC::ValidRPCSurface().

{
  return ((this->id()).region()==0);
}  
bool RPCRoll::isForward ( ) const
LocalError RPCRoll::localError ( float  strip) const

Definition at line 65 of file RPCRoll.cc.

References StripTopology::localError(), specificTopology(), and mathSSE::sqrt().

Referenced by RPCRecHitStandardAlgo::compute().

{
  return this->specificTopology().localError(strip,1./sqrt(12.));
}
float RPCRoll::localPitch ( const LocalPoint lp) const

Definition at line 78 of file RPCRoll.cc.

References StripTopology::localPitch(), and specificTopology().

{ 
  return this->specificTopology().localPitch(lp);

}
int RPCRoll::nstrips ( ) const
float RPCRoll::pitch ( ) const

Definition at line 85 of file RPCRoll.cc.

References StripTopology::pitch(), and specificTopology().

{ 
  return this->specificTopology().pitch();

}
void RPCRoll::setChamber ( const RPCChamber ch) [private]

Definition at line 116 of file RPCRoll.cc.

References theCh.

{
  theCh = ch; 
}
const StripTopology & RPCRoll::specificTopology ( ) const
const RPCRollSpecs * RPCRoll::specs ( ) const
float RPCRoll::strip ( const LocalPoint lp) const
const Topology & RPCRoll::topology ( ) const [virtual]
const GeomDetType & RPCRoll::type ( ) const [virtual]

Implements GeomDetUnit.

Definition at line 36 of file RPCRoll.cc.

References _rrs.

Referenced by RPCGeometry::add().

{
  return (*_rrs);
}

Member Data Documentation

Definition at line 43 of file RPCRoll.h.

Referenced by id().

Definition at line 44 of file RPCRoll.h.

Referenced by specificTopology(), specs(), topology(), type(), and ~RPCRoll().

const RPCChamber* RPCRoll::theCh [private]

Definition at line 45 of file RPCRoll.h.

Referenced by chamber(), and setChamber().