#include <RPCRecHit.h>
Public Member Functions | |
int | BunchX () const |
virtual RPCRecHit * | clone () const |
int | clusterSize () const |
int | firstClusterStrip () const |
virtual LocalPoint | localPosition () const |
Return the 3-dimensional local position. | |
virtual LocalError | localPositionError () const |
Return the 3-dimensional error on the local position. | |
bool | operator== (const RPCRecHit &hit) const |
Comparison operator, based on the rpcId and the digi time. | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
virtual std::vector < TrackingRecHit * > | recHits () |
RPCDetId | rpcId () const |
Return the rpcId. | |
RPCRecHit (const RPCDetId &rpcId, int bx, const LocalPoint &pos) | |
RPCRecHit () | |
Default constructor. | |
RPCRecHit (const RPCDetId &rpcId, int bx, const LocalPoint &pos, const LocalError &err) | |
Constructor from a local position and error, rpcId and bx. | |
RPCRecHit (const RPCDetId &rpcId, int bx, int firstStrip, int clustSize, const LocalPoint &pos, const LocalError &err) | |
Constructor from a local position and error, rpcId, bx, frist strip of cluster and cluster size. | |
RPCRecHit (const RPCDetId &rpcId, int bx) | |
void | setError (LocalError err) |
Set local position error. | |
void | setPosition (LocalPoint pos) |
Set local position. | |
void | setPositionAndError (LocalPoint pos, LocalError err) |
Set the local position and its error. | |
virtual | ~RPCRecHit () |
Destructor. | |
Private Attributes | |
int | theBx |
int | theClusterSize |
int | theFirstStrip |
LocalError | theLocalError |
LocalPoint | theLocalPosition |
RPCDetId | theRPCId |
RPCRecHit::RPCRecHit | ( | const RPCDetId & | rpcId, |
int | bx | ||
) |
Definition at line 13 of file RPCRecHit.cc.
: RecHit2DLocalPos(rpcId), theRPCId(rpcId), theBx(bx),theFirstStrip(99),theClusterSize(99), theLocalPosition(), theLocalError() { }
RPCRecHit::RPCRecHit | ( | ) |
Default constructor.
Definition at line 18 of file RPCRecHit.cc.
Referenced by clone().
: RecHit2DLocalPos(), theRPCId(), theBx(99),theFirstStrip(99),theClusterSize(99), theLocalPosition(), theLocalError() { }
RPCRecHit::RPCRecHit | ( | const RPCDetId & | rpcId, |
int | bx, | ||
const LocalPoint & | pos | ||
) |
Constructor from a local position, rpcId and digi time. The 3-dimensional local error is defined as resolution (the cell resolution) for the coordinate being measured and 0 for the two other coordinates
Definition at line 24 of file RPCRecHit.cc.
References theLocalError.
: RecHit2DLocalPos(rpcId), theRPCId(rpcId), theBx(bx), theFirstStrip(99),theClusterSize(99), theLocalPosition(pos) { float stripResolution = 3.0 ; //cm this sould be taken from trimmed cluster size times strip size // taken out from geometry service i.e. topology theLocalError = LocalError(stripResolution*stripResolution, 0., 0.); //FIXME: is it really needed? }
RPCRecHit::RPCRecHit | ( | const RPCDetId & | rpcId, |
int | bx, | ||
const LocalPoint & | pos, | ||
const LocalError & | err | ||
) |
Constructor from a local position and error, rpcId and bx.
Definition at line 36 of file RPCRecHit.cc.
: RecHit2DLocalPos(rpcId), theRPCId(rpcId), theBx(bx),theFirstStrip(99), theClusterSize(99), theLocalPosition(pos), theLocalError(err) { }
RPCRecHit::RPCRecHit | ( | const RPCDetId & | rpcId, |
int | bx, | ||
int | firstStrip, | ||
int | clustSize, | ||
const LocalPoint & | pos, | ||
const LocalError & | err | ||
) |
Constructor from a local position and error, rpcId, bx, frist strip of cluster and cluster size.
Definition at line 46 of file RPCRecHit.cc.
: RecHit2DLocalPos(rpcId), theRPCId(rpcId), theBx(bx),theFirstStrip(firstStrip), theClusterSize(clustSize), theLocalPosition(pos), theLocalError(err) { }
RPCRecHit::~RPCRecHit | ( | ) | [virtual] |
int RPCRecHit::BunchX | ( | ) | const [inline] |
Definition at line 103 of file RPCRecHit.h.
References theBx.
Referenced by RPCHitAssociator::associateRecHit(), RPCSeedrecHitFinder::complete(), RPCCosmicSeedrecHitFinder::complete(), and RPCMonitorDigi::performSourceOperation().
{ return theBx; }
RPCRecHit * RPCRecHit::clone | ( | void | ) | const [virtual] |
Implements RecHit2DLocalPos.
Definition at line 66 of file RPCRecHit.cc.
References RPCRecHit().
{ return new RPCRecHit(*this); }
int RPCRecHit::clusterSize | ( | ) | const [inline] |
Definition at line 111 of file RPCRecHit.h.
References theClusterSize.
Referenced by RPCHitAssociator::associateRecHit(), RPCSeedrecHitFinder::complete(), RPCCosmicSeedrecHitFinder::complete(), and RPCMonitorDigi::performSourceOperation().
{ return theClusterSize; }
int RPCRecHit::firstClusterStrip | ( | ) | const [inline] |
Definition at line 107 of file RPCRecHit.h.
References theFirstStrip.
Referenced by RPCHitAssociator::associateRecHit(), and RPCMonitorDigi::performSourceOperation().
{ return theFirstStrip; }
virtual LocalPoint RPCRecHit::localPosition | ( | ) | const [inline, virtual] |
Return the 3-dimensional local position.
Implements RecHit2DLocalPos.
Definition at line 55 of file RPCRecHit.h.
References theLocalPosition.
Referenced by FWRPCRecHitProxyBuilder::buildViewType(), reco::helper::JetMuonHitsIDHelper::calculate(), and operator<<().
{ return theLocalPosition; }
virtual LocalError RPCRecHit::localPositionError | ( | ) | const [inline, virtual] |
Return the 3-dimensional error on the local position.
Implements RecHit2DLocalPos.
Definition at line 61 of file RPCRecHit.h.
References theLocalError.
Referenced by FWRPCRecHitProxyBuilder::buildViewType(), and operator<<().
{ return theLocalError; }
bool RPCRecHit::operator== | ( | const RPCRecHit & | hit | ) | const |
Comparison operator, based on the rpcId and the digi time.
Definition at line 89 of file RPCRecHit.cc.
References TrackingRecHit::geographicalId().
{ return this->geographicalId() == hit.geographicalId(); }
std::vector< const TrackingRecHit * > RPCRecHit::recHits | ( | void | ) | const [virtual] |
Access to component RecHits. No components rechits: it returns a null vector
Reimplemented from RecHit2DLocalPos.
Definition at line 73 of file RPCRecHit.cc.
{
std::vector<const TrackingRecHit*> nullvector;
return nullvector;
}
std::vector< TrackingRecHit * > RPCRecHit::recHits | ( | void | ) | [virtual] |
Non-const access to component RecHits. No components rechits: it returns a null vector
Reimplemented from RecHit2DLocalPos.
Definition at line 82 of file RPCRecHit.cc.
{
std::vector<TrackingRecHit*> nullvector;
return nullvector;
}
RPCDetId RPCRecHit::rpcId | ( | ) | const [inline] |
Return the rpcId.
Definition at line 99 of file RPCRecHit.h.
References theRPCId.
Referenced by RPCMonitorDigi::analyze(), RPCHitAssociator::associateRecHit(), and FWRPCRecHitProxyBuilder::buildViewType().
{ return theRPCId; }
void RPCRecHit::setError | ( | LocalError | err | ) | [inline] |
Set local position error.
Definition at line 86 of file RPCRecHit.h.
References theLocalError.
{ theLocalError = err; }
void RPCRecHit::setPosition | ( | LocalPoint | pos | ) | [inline] |
Set local position.
Definition at line 80 of file RPCRecHit.h.
References pos, and theLocalPosition.
{ theLocalPosition = pos; }
void DTRecHit1DPair::setPositionAndError | ( | LocalPoint | pos, |
LocalError | err | ||
) | [inline] |
Set the local position and its error.
Definition at line 92 of file RPCRecHit.h.
References pos, theLocalError, and theLocalPosition.
{ theLocalPosition = pos; theLocalError = err; }
int RPCRecHit::theBx [private] |
Definition at line 120 of file RPCRecHit.h.
Referenced by BunchX().
int RPCRecHit::theClusterSize [private] |
Definition at line 122 of file RPCRecHit.h.
Referenced by clusterSize().
int RPCRecHit::theFirstStrip [private] |
Definition at line 121 of file RPCRecHit.h.
Referenced by firstClusterStrip().
LocalError RPCRecHit::theLocalError [private] |
Definition at line 125 of file RPCRecHit.h.
Referenced by localPositionError(), RPCRecHit(), setError(), and setPositionAndError().
LocalPoint RPCRecHit::theLocalPosition [private] |
Definition at line 124 of file RPCRecHit.h.
Referenced by localPosition(), setPosition(), and setPositionAndError().
RPCDetId RPCRecHit::theRPCId [private] |
Definition at line 119 of file RPCRecHit.h.
Referenced by rpcId().