CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
RPCRoll Class Reference

#include <RPCRoll.h>

Inheritance diagram for RPCRoll:
GeomDet

Public Member Functions

LocalPoint centreOfStrip (int strip) const
 
LocalPoint centreOfStrip (float strip) const
 
const RPCChamberchamber () const
 Return the chamber this roll belongs to. More...
 
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 ()
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const
GeomDet * > 
components () const
 Returns direct components, if any. More...
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
int index () const
 
virtual bool isLeaf () const
 is a Unit More...
 
const Surface::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
GlobalPoint toGlobal (const Local2DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalPoint toGlobal (const Local3DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalVector toGlobal (const LocalVector &lv) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
LocalPoint toLocal (const GlobalPoint &gp) const
 Conversion to the R.F. of the GeomDet. More...
 
LocalVector toLocal (const GlobalVector &gv) const
 Conversion to the R.F. of the GeomDet. More...
 
virtual ~GeomDet ()
 

Private Member Functions

void setChamber (const RPCChamber *ch)
 

Private Attributes

RPCDetId _id
 
RPCRollSpecs_rrs
 
const RPCChambertheCh
 

Additional Inherited Members

- Public Types inherited from GeomDet
typedef
GeomDetEnumerators::SubDetector 
SubDetector
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError
 

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().

6  :
7  GeomDetUnit(bp), _id(id),_rrs(rrs)
8 {
9  setDetId(id);
10 }
void setDetId(DetId id)
Definition: GeomDet.h:114
GeomDet GeomDetUnit
Definition: GeomDet.h:161
RPCRollSpecs * _rrs
Definition: RPCRoll.h:44
RPCDetId _id
Definition: RPCRoll.h:43
RPCRoll::~RPCRoll ( )

Definition at line 12 of file RPCRoll.cc.

References _rrs.

13 {
14  delete _rrs; //Assume the roll owns it specs (specs are not shared)
15 }
RPCRollSpecs * _rrs
Definition: RPCRoll.h:44

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().

60 {
61  return this->specificTopology().localPosition(strip);
62 }
float strip(const LocalPoint &lp) const
Definition: RPCRoll.cc:71
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:107
virtual LocalPoint localPosition(float strip) const =0
const RPCChamber * RPCRoll::chamber ( ) const

Return the chamber this roll belongs to.

Definition at line 41 of file RPCRoll.cc.

References theCh.

Referenced by geometryXMLparser.CSCAlignable::index().

41  {
42  return theCh;
43 }
const RPCChamber * theCh
Definition: RPCRoll.h:45
RPCDetId RPCRoll::id ( void  ) const
bool RPCRoll::isBarrel ( ) const

Definition at line 92 of file RPCRoll.cc.

References HLT_25ns10e33_v2_cff::region.

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

93 {
94  return ((this->id()).region()==0);
95 }
bool RPCRoll::isForward ( ) const

Definition at line 98 of file RPCRoll.cc.

References isBarrel().

Referenced by GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), RBCProcessRPCSimDigis::next(), RBCProcessRPCDigis::next(), and TracktoRPC::ValidRPCSurface().

100 {
101  return (!this->isBarrel());
102 }
bool isBarrel() const
Definition: RPCRoll.cc:92
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().

66 {
67  return this->specificTopology().localError(strip,1./sqrt(12.));
68 }
float strip(const LocalPoint &lp) const
Definition: RPCRoll.cc:71
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:107
T sqrt(T t)
Definition: SSEVec.h:18
virtual LocalError localError(float strip, float stripErr2) const =0
float RPCRoll::localPitch ( const LocalPoint lp) const

Definition at line 78 of file RPCRoll.cc.

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

79 {
80  return this->specificTopology().localPitch(lp);
81 
82 }
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:107
virtual float localPitch(const LocalPoint &) const =0
int RPCRoll::nstrips ( ) const
float RPCRoll::pitch ( ) const

Definition at line 85 of file RPCRoll.cc.

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

86 {
87  return this->specificTopology().pitch();
88 
89 }
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:107
virtual float pitch() const =0
void RPCRoll::setChamber ( const RPCChamber ch)
private

Definition at line 116 of file RPCRoll.cc.

References theCh.

117 {
118  theCh = ch;
119 }
const RPCChamber * theCh
Definition: RPCRoll.h:45
const StripTopology & RPCRoll::specificTopology ( ) const
const RPCRollSpecs * RPCRoll::specs ( ) const
float RPCRoll::strip ( const LocalPoint lp) const

Definition at line 71 of file RPCRoll.cc.

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

Referenced by RPCEfficiency::analyze(), centreOfStrip(), RPCSimAverageNoiseEffCls::simulate(), RPCSimAverageNoise::simulate(), RPCSimAverage::simulate(), RPCSimAverageNoiseEff::simulate(), and RPCSimAsymmetricCls::simulate().

72 {
73  return this->specificTopology().strip(lp);
74 
75 }
const StripTopology & specificTopology() const
Definition: RPCRoll.cc:107
virtual float strip(const LocalPoint &) const =0
const Topology & RPCRoll::topology ( ) const
virtual
const GeomDetType & RPCRoll::type ( ) const
virtual

Reimplemented from GeomDet.

Definition at line 36 of file RPCRoll.cc.

References _rrs.

Referenced by cuy.ValElement::__init__(), and RPCGeometry::add().

37 {
38  return (*_rrs);
39 }
RPCRollSpecs * _rrs
Definition: RPCRoll.h:44

Member Data Documentation

RPCDetId RPCRoll::_id
private

Definition at line 43 of file RPCRoll.h.

Referenced by id().

RPCRollSpecs* RPCRoll::_rrs
private

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().