CMS 3D CMS Logo

RPCRoll Class Reference

#include <Geometry/RPCGeometry/interface/RPCRoll.h>

Inheritance diagram for RPCRoll:

GeomDetUnit GeomDet

List of all members.

Public Member Functions

LocalPoint centreOfStrip (float strip) const
LocalPoint centreOfStrip (int strip) const
const RPCChamberchamber () const
 Return the chamber this roll belongs to.
DetId geographicalId () const
 The label of this GeomDet.
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.

00006                                                                                :
00007   GeomDetUnit(bp), _id(id),_rrs(rrs)
00008 {}

RPCRoll::~RPCRoll (  ) 

Definition at line 10 of file RPCRoll.cc.

References _rrs.

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


Member Function Documentation

LocalPoint RPCRoll::centreOfStrip ( float  strip  )  const

Definition at line 63 of file RPCRoll.cc.

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

00064 {
00065   return this->specificTopology().localPosition(strip);
00066 }

LocalPoint RPCRoll::centreOfStrip ( int  strip  )  const

Definition at line 56 of file RPCRoll.cc.

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

Referenced by RPCStripsRing::addRoll(), RPCDigiValid::analyze(), RPCRecHitStandardAlgo::compute(), GlobalDigisAnalyzer::fillMuon(), RPCDetInfo::RPCDetInfo(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), and RPCSimAverage::simulate().

00057 {
00058   float s = static_cast<float>(strip)-0.5;
00059   return this->specificTopology().localPosition(s);
00060 }

const RPCChamber * RPCRoll::chamber (  )  const

Return the chamber this roll belongs to.

Definition at line 45 of file RPCRoll.cc.

References theCh.

00045                                          {
00046   return theCh;
00047 }

DetId RPCRoll::geographicalId (  )  const [virtual]

The label of this GeomDet.

Implements GeomDet.

Definition at line 22 of file RPCRoll.cc.

References _id.

Referenced by RPCGeometry::add().

00023 {
00024   return _id;
00025 }

RPCDetId RPCRoll::id ( void   )  const

Definition at line 28 of file RPCRoll.cc.

References _id.

Referenced by RPCStripsRing::addRoll(), RPCMonitorEfficiency::analyze(), RPCEfficiency::analyze(), RPCRecHitValid::analyze(), RPCEfficiencyFromTrack::analyze(), VisEventSetupService::annotateRPCChambers(), VisEventSetup::buildRPC(), VisEventSetupService::buildRPCChambers(), RPCStripsRing::calculateHwPlane(), RPCStripsRing::getRingId(), RPCDetInfo::RPCDetInfo(), RPCStripsRing::RPCStripsRing(), VisEventSetupService::rpcTextRep(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimTriv::simulate(), RPCSimSimple::simulate(), RPCSimAverage::simulate(), RPCSimAverageNoise::simulateNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimAverageNoiseEff::simulateNoise(), and RPCSimParam::simulateNoise().

00029 {
00030   return _id;
00031 }

bool RPCRoll::isBarrel (  )  const

Definition at line 96 of file RPCRoll.cc.

00097 {
00098   return ((this->id()).region()==0);
00099 }  

bool RPCRoll::isForward (  )  const

Definition at line 102 of file RPCRoll.cc.

Referenced by RPCRecHitValid::analyze(), GlobalRecHitsProducer::fillMuon(), and GlobalRecHitsAnalyzer::fillMuon().

00104 {
00105   return (!this->isBarrel());
00106 } 

LocalError RPCRoll::localError ( float  strip  )  const

Definition at line 69 of file RPCRoll.cc.

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

Referenced by RPCRecHitStandardAlgo::compute().

00070 {
00071   return this->specificTopology().localError(strip,1./sqrt(12.));
00072 }

float RPCRoll::localPitch ( const LocalPoint lp  )  const

Definition at line 82 of file RPCRoll.cc.

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

00083 { 
00084   return this->specificTopology().localPitch(lp);
00085 
00086 }

int RPCRoll::nstrips (  )  const

Definition at line 50 of file RPCRoll.cc.

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

Referenced by RPCStripsRing::addRoll(), RPCMonitorEfficiency::analyze(), RPCMon_SS_Dbx_Global::analyze(), RPCEfficiency::analyze(), RPCEfficiencyFromTrack::bookDetUnitTrackEff(), RPCDetInfo::RPCDetInfo(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimAverage::simulate(), RPCSimAverageNoise::simulateNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimAverageNoiseEff::simulateNoise(), RPCSimParam::simulateNoise(), and RPCMonitorDigi::stripsInRoll().

00051 {
00052   return this->specificTopology().nstrips();
00053 }

float RPCRoll::pitch (  )  const

Definition at line 89 of file RPCRoll.cc.

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

00090 { 
00091   return this->specificTopology().pitch();
00092 
00093 }

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

Definition at line 120 of file RPCRoll.cc.

References theCh.

00121 {
00122   theCh = ch; 
00123 }

const StripTopology & RPCRoll::specificTopology (  )  const

Definition at line 111 of file RPCRoll.cc.

References _rrs, and RPCRollSpecs::specificTopology().

Referenced by centreOfStrip(), localError(), localPitch(), nstrips(), pitch(), and strip().

00112 {
00113   return _rrs->specificTopology();
00114 }

const RPCRollSpecs * RPCRoll::specs (  )  const

Definition at line 16 of file RPCRoll.cc.

References _rrs.

Referenced by RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimTriv::simulate(), RPCSimSimple::simulate(), and RPCSimAverage::simulate().

00017 {
00018   return _rrs;
00019 }

float RPCRoll::strip ( const LocalPoint lp  )  const

Definition at line 75 of file RPCRoll.cc.

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

Referenced by RPCMonitorEfficiency::analyze(), RPCEfficiency::analyze(), RPCEfficiencyFromTrack::analyze(), RPCSimAverageNoise::simulate(), RPCSimAverageNoiseEff::simulate(), and RPCSimAverage::simulate().

00076 { 
00077   return this->specificTopology().strip(lp);
00078 
00079 }

const Topology & RPCRoll::topology (  )  const [virtual]

Implements GeomDetUnit.

Definition at line 34 of file RPCRoll.cc.

References _rrs, and RPCRollSpecs::topology().

Referenced by RPCMonitorEfficiency::analyze(), RPCEfficiency::analyze(), RPCDetInfo::RPCDetInfo(), RPCSimAverageNoise::simulateNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimAverageNoiseEff::simulateNoise(), RPCSimParam::simulateNoise(), and VisRPCDigiTwig::update().

00035 {
00036   return _rrs->topology();
00037 }

const GeomDetType & RPCRoll::type (  )  const [virtual]

Implements GeomDetUnit.

Definition at line 40 of file RPCRoll.cc.

References _rrs.

Referenced by RPCGeometry::add().

00041 {
00042   return (*_rrs);
00043 }


Member Data Documentation

RPCDetId RPCRoll::_id [private]

Definition at line 44 of file RPCRoll.h.

Referenced by geographicalId(), and id().

RPCRollSpecs* RPCRoll::_rrs [private]

Definition at line 45 of file RPCRoll.h.

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

const RPCChamber* RPCRoll::theCh [private]

Definition at line 46 of file RPCRoll.h.

Referenced by chamber(), and setChamber().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:07 2009 for CMSSW by  doxygen 1.5.4