![]() |
![]() |
#include <GEMRecHit.h>
Public Member Functions | |
int | BunchX () const |
virtual GEMRecHit * | clone () const |
int | clusterSize () const |
int | firstClusterStrip () const |
GEMDetId | gemId () const |
Return the gemId. | |
GEMRecHit (const GEMDetId &gemId, int bx) | |
GEMRecHit () | |
Default constructor. | |
GEMRecHit (const GEMDetId &gemId, int bx, const LocalPoint &pos, const LocalError &err) | |
Constructor from a local position and error, gemId and bx. | |
GEMRecHit (const GEMDetId &gemId, int bx, int firstStrip, int clustSize, const LocalPoint &pos, const LocalError &err) | |
Constructor from a local position and error, gemId, bx, frist strip of cluster and cluster size. | |
GEMRecHit (const GEMDetId &gemId, int bx, const LocalPoint &pos) | |
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 GEMRecHit &hit) const |
Comparison operator, based on the gemId and the digi time. | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
virtual std::vector < TrackingRecHit * > | recHits () |
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 | ~GEMRecHit () |
Destructor. | |
Private Attributes | |
int | theBx |
int | theClusterSize |
int | theFirstStrip |
GEMDetId | theGEMId |
LocalError | theLocalError |
LocalPoint | theLocalPosition |
GEMRecHit::GEMRecHit | ( | const GEMDetId & | gemId, |
int | bx | ||
) |
Definition at line 13 of file GEMRecHit.cc.
: RecHit2DLocalPos(gemId), theGEMId(gemId), theBx(bx),theFirstStrip(99),theClusterSize(99), theLocalPosition(), theLocalError() { }
GEMRecHit::GEMRecHit | ( | ) |
Default constructor.
Definition at line 18 of file GEMRecHit.cc.
Referenced by clone().
: RecHit2DLocalPos(), theGEMId(), theBx(99),theFirstStrip(99),theClusterSize(99), theLocalPosition(), theLocalError() { }
GEMRecHit::GEMRecHit | ( | const GEMDetId & | gemId, |
int | bx, | ||
const LocalPoint & | pos | ||
) |
Constructor from a local position, gemId 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 GEMRecHit.cc.
References theLocalError.
: RecHit2DLocalPos(gemId), theGEMId(gemId), 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? }
GEMRecHit::GEMRecHit | ( | const GEMDetId & | gemId, |
int | bx, | ||
const LocalPoint & | pos, | ||
const LocalError & | err | ||
) |
Constructor from a local position and error, gemId and bx.
Definition at line 36 of file GEMRecHit.cc.
: RecHit2DLocalPos(gemId), theGEMId(gemId), theBx(bx),theFirstStrip(99), theClusterSize(99), theLocalPosition(pos), theLocalError(err) { }
GEMRecHit::GEMRecHit | ( | const GEMDetId & | gemId, |
int | bx, | ||
int | firstStrip, | ||
int | clustSize, | ||
const LocalPoint & | pos, | ||
const LocalError & | err | ||
) |
Constructor from a local position and error, gemId, bx, frist strip of cluster and cluster size.
Definition at line 46 of file GEMRecHit.cc.
: RecHit2DLocalPos(gemId), theGEMId(gemId), theBx(bx),theFirstStrip(firstStrip), theClusterSize(clustSize), theLocalPosition(pos), theLocalError(err) { }
GEMRecHit::~GEMRecHit | ( | ) | [virtual] |
int GEMRecHit::BunchX | ( | ) | const [inline] |
GEMRecHit * GEMRecHit::clone | ( | void | ) | const [virtual] |
Implements RecHit2DLocalPos.
Definition at line 66 of file GEMRecHit.cc.
References GEMRecHit().
{ return new GEMRecHit(*this); }
int GEMRecHit::clusterSize | ( | ) | const [inline] |
int GEMRecHit::firstClusterStrip | ( | ) | const [inline] |
GEMDetId GEMRecHit::gemId | ( | ) | const [inline] |
Return the gemId.
Definition at line 99 of file GEMRecHit.h.
References theGEMId.
{ return theGEMId; }
virtual LocalPoint GEMRecHit::localPosition | ( | ) | const [inline, virtual] |
Return the 3-dimensional local position.
Implements RecHit2DLocalPos.
Definition at line 55 of file GEMRecHit.h.
References theLocalPosition.
Referenced by operator<<().
{ return theLocalPosition; }
virtual LocalError GEMRecHit::localPositionError | ( | ) | const [inline, virtual] |
Return the 3-dimensional error on the local position.
Implements RecHit2DLocalPos.
Definition at line 61 of file GEMRecHit.h.
References theLocalError.
Referenced by operator<<().
{ return theLocalError; }
bool GEMRecHit::operator== | ( | const GEMRecHit & | hit | ) | const |
Comparison operator, based on the gemId and the digi time.
Definition at line 89 of file GEMRecHit.cc.
References TrackingRecHit::geographicalId().
{ return this->geographicalId() == hit.geographicalId(); }
std::vector< TrackingRecHit * > GEMRecHit::recHits | ( | ) | [virtual] |
Non-const access to component RecHits. No components rechits: it returns a null vector
Reimplemented from RecHit2DLocalPos.
Definition at line 82 of file GEMRecHit.cc.
{
std::vector<TrackingRecHit*> nullvector;
return nullvector;
}
std::vector< const TrackingRecHit * > GEMRecHit::recHits | ( | ) | const [virtual] |
Access to component RecHits. No components rechits: it returns a null vector
Reimplemented from RecHit2DLocalPos.
Definition at line 73 of file GEMRecHit.cc.
{
std::vector<const TrackingRecHit*> nullvector;
return nullvector;
}
void GEMRecHit::setError | ( | LocalError | err | ) | [inline] |
Set local position error.
Definition at line 86 of file GEMRecHit.h.
References theLocalError.
{ theLocalError = err; }
void GEMRecHit::setPosition | ( | LocalPoint | pos | ) | [inline] |
Set local position.
Definition at line 80 of file GEMRecHit.h.
References pos, and theLocalPosition.
{ theLocalPosition = pos; }
void GEMRecHit::setPositionAndError | ( | LocalPoint | pos, |
LocalError | err | ||
) | [inline] |
Set the local position and its error.
Definition at line 92 of file GEMRecHit.h.
References pos, theLocalError, and theLocalPosition.
{ theLocalPosition = pos; theLocalError = err; }
int GEMRecHit::theBx [private] |
Definition at line 120 of file GEMRecHit.h.
Referenced by BunchX().
int GEMRecHit::theClusterSize [private] |
Definition at line 122 of file GEMRecHit.h.
Referenced by clusterSize().
int GEMRecHit::theFirstStrip [private] |
Definition at line 121 of file GEMRecHit.h.
Referenced by firstClusterStrip().
GEMDetId GEMRecHit::theGEMId [private] |
Definition at line 119 of file GEMRecHit.h.
Referenced by gemId().
LocalError GEMRecHit::theLocalError [private] |
Definition at line 125 of file GEMRecHit.h.
Referenced by GEMRecHit(), localPositionError(), setError(), and setPositionAndError().
LocalPoint GEMRecHit::theLocalPosition [private] |
Definition at line 124 of file GEMRecHit.h.
Referenced by localPosition(), setPosition(), and setPositionAndError().