#include <RPCRoll.h>
Public Member Functions | |
LocalPoint | centreOfStrip (int strip) const |
LocalPoint | centreOfStrip (float strip) const |
const RPCChamber * | chamber () 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 StripTopology & | specificTopology () const |
const RPCRollSpecs * | specs () const |
float | strip (const LocalPoint &lp) const |
const Topology & | topology () const |
const GeomDetType & | type () const |
~RPCRoll () | |
Private Member Functions | |
void | setChamber (const RPCChamber *ch) |
Private Attributes | |
RPCDetId | _id |
RPCRollSpecs * | _rrs |
const RPCChamber * | theCh |
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) }
LocalPoint RPCRoll::centreOfStrip | ( | int | strip | ) | const |
Definition at line 52 of file RPCRoll.cc.
References StripTopology::localPosition(), alignCSCRings::s, specificTopology(), and strip().
Referenced by RPCStripsRing::addRoll(), RPCDigiValid::analyze(), RPCRecHitStandardAlgo::compute(), GlobalDigisAnalyzer::fillMuon(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimAverageNoiseEffCls::simulate(), RPCSimAverage::simulate(), and ValidateGeometry::validateRPCGeometry().
{ float s = static_cast<float>(strip)-0.5; return this->specificTopology().localPosition(s); }
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 |
Definition at line 24 of file RPCRoll.cc.
References _id.
Referenced by RPCStripsRing::addRoll(), RPCEfficiency::analyze(), RPCRecHitValid::analyze(), RPCPointVsRecHit::analyze(), RPCStripsRing::calculateHwPlane(), CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), RPCStripsRing::getRingId(), RBCProcessRPCSimDigis::next(), RBCProcessRPCDigis::next(), RPCStripsRing::RPCStripsRing(), RPCSimAverageNoise::simulate(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoiseEffCls::simulate(), RPCSimParam::simulate(), RPCSimTriv::simulate(), RPCSimSimple::simulate(), RPCSimAverage::simulate(), RPCSimAverageNoise::simulateNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimAverageNoiseEff::simulateNoise(), RPCSimAverageNoiseEffCls::simulateNoise(), RPCSimParam::simulateNoise(), TracktoRPC::TracktoRPC(), and ValidateGeometry::validateRPCGeometry().
{ return _id; }
bool RPCRoll::isBarrel | ( | ) | const |
Definition at line 92 of file RPCRoll.cc.
Referenced by RPCRecHitValid::beginRun(), isForward(), and TracktoRPC::ValidRPCSurface().
{ return ((this->id()).region()==0); }
bool RPCRoll::isForward | ( | ) | const |
Definition at line 98 of file RPCRoll.cc.
References isBarrel().
Referenced by GlobalRecHitsProducer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), RBCProcessRPCSimDigis::next(), RBCProcessRPCDigis::next(), and TracktoRPC::ValidRPCSurface().
{ return (!this->isBarrel()); }
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 |
Definition at line 46 of file RPCRoll.cc.
References StripTopology::nstrips(), and specificTopology().
Referenced by RPCStripsRing::addRoll(), FWTGeoRecoGeometryESProducer::addRPCGeometry(), RPCMon_SS_Dbx_Global::analyze(), RPCEfficiency::analyze(), CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimAverageNoiseEffCls::simulate(), RPCSimAverage::simulate(), RPCSimAverageNoise::simulateNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimAverageNoiseEff::simulateNoise(), RPCSimParam::simulateNoise(), RPCSimAverageNoiseEffCls::simulateNoise(), RPCMonitorDigi::stripsInRoll(), TracktoRPC::TracktoRPC(), and ValidateGeometry::validateRPCGeometry().
{ return this->specificTopology().nstrips(); }
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] |
const StripTopology & RPCRoll::specificTopology | ( | ) | const |
Definition at line 107 of file RPCRoll.cc.
References _rrs, and RPCRollSpecs::specificTopology().
Referenced by FWTGeoRecoGeometryESProducer::addRPCGeometry(), FWRecoGeometryESProducer::addRPCGeometry(), centreOfStrip(), RPCRecHitValid::endRun(), localError(), localPitch(), nstrips(), pitch(), strip(), and ValidateGeometry::validateRPCGeometry().
{ return _rrs->specificTopology(); }
const RPCRollSpecs * RPCRoll::specs | ( | ) | const |
Definition at line 18 of file RPCRoll.cc.
References _rrs.
Referenced by RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoise::simulate(), RPCSimParam::simulate(), RPCSimAverageNoiseEffCls::simulate(), RPCSimTriv::simulate(), RPCSimSimple::simulate(), and RPCSimAverage::simulate().
{ return _rrs; }
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(), RPCSimAverageNoise::simulate(), RPCSimAverageNoiseEff::simulate(), RPCSimAverageNoiseEffCls::simulate(), and RPCSimAverage::simulate().
{ return this->specificTopology().strip(lp); }
const Topology & RPCRoll::topology | ( | ) | const [virtual] |
Implements GeomDetUnit.
Definition at line 30 of file RPCRoll.cc.
References _rrs, and RPCRollSpecs::topology().
Referenced by RPCEfficiency::analyze(), CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), RPCSimAverageNoise::simulateNoise(), RPCSimTriv::simulateNoise(), RPCSimAverage::simulateNoise(), RPCSimSimple::simulateNoise(), RPCSimAverageNoiseEff::simulateNoise(), RPCSimAverageNoiseEffCls::simulateNoise(), RPCSimParam::simulateNoise(), and TracktoRPC::TracktoRPC().
const GeomDetType & RPCRoll::type | ( | ) | const [virtual] |
Implements GeomDetUnit.
Definition at line 36 of file RPCRoll.cc.
References _rrs.
Referenced by RPCGeometry::add().
{ return (*_rrs); }
RPCDetId RPCRoll::_id [private] |
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().