#include <DTRecHit1D.h>
Public Member Functions | |
virtual DTRecHit1D * | clone () const |
float | digiTime () const |
Return the time (ns) of the digi used to build the rechit. | |
DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime) | |
Constructor from wireId and digi time only. | |
DTRecHit1D () | |
Default constructor. | |
DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime, const LocalPoint &pos, const LocalError &err) | |
Constructor from a local position and error, wireId and digi time. | |
DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime, 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. | |
DTEnums::DTCellSide | lrSide () const |
The side of the cell. | |
bool | operator== (const DTRecHit1D &hit) const |
Comparison operator, based on the wireId and the digi time. | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
No components rechits: it returns a null vector. | |
virtual std::vector < TrackingRecHit * > | recHits () |
No components rechits: it returns a null vector. | |
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. | |
DTWireId | wireId () const |
Return the wireId. | |
virtual | ~DTRecHit1D () |
Destructor. | |
Private Attributes | |
float | theDigiTime |
LocalError | theLocalError |
LocalPoint | theLocalPosition |
DTEnums::DTCellSide | theLRSide |
DTWireId | theWireId |
1D RecHit for Muon Barrel DT The main feature of muon Barrel RecHits is that they are created in pair, due to left/right ambiguity (the pair is described by
Definition at line 28 of file DTRecHit1D.h.
DTRecHit1D::DTRecHit1D | ( | const DTWireId & | wireId, |
DTEnums::DTCellSide | lr, | ||
float | digiTime | ||
) |
Constructor from wireId and digi time only.
Definition at line 17 of file DTRecHit1D.cc.
: RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer). theWireId(wireId), theLRSide(lr), theDigiTime(digiTime), theLocalPosition(), theLocalError() {}
DTRecHit1D::DTRecHit1D | ( | ) |
Default constructor.
Definition at line 29 of file DTRecHit1D.cc.
Referenced by clone().
: theWireId(), theLRSide(undefLR), theDigiTime(-1), theLocalPosition(), theLocalError() {}
DTRecHit1D::DTRecHit1D | ( | const DTWireId & | wireId, |
DTEnums::DTCellSide | lr, | ||
float | digiTime, | ||
const LocalPoint & | pos | ||
) |
Constructor from a local position, wireId 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 39 of file DTRecHit1D.cc.
References theLocalError.
: RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer). theWireId(wireId), theLRSide(lr), theDigiTime(digiTime), theLocalPosition(pos) { float cellResolution = 0.02 ; //cm cell resolution = 200 um = 0.02 cm theLocalError = LocalError(cellResolution*cellResolution, 0., 0.); //FIXME: is it really needed? }
DTRecHit1D::DTRecHit1D | ( | const DTWireId & | wireId, |
DTEnums::DTCellSide | lr, | ||
float | digiTime, | ||
const LocalPoint & | pos, | ||
const LocalError & | err | ||
) |
Constructor from a local position and error, wireId and digi time.
Definition at line 56 of file DTRecHit1D.cc.
: RecHit1D(wireId.layerId()), theWireId(wireId), theLRSide(lr), theDigiTime(digiTime), theLocalPosition(pos), theLocalError(err) {}
DTRecHit1D::~DTRecHit1D | ( | ) | [virtual] |
DTRecHit1D * DTRecHit1D::clone | ( | void | ) | const [virtual] |
Implements TrackingRecHit.
Definition at line 76 of file DTRecHit1D.cc.
References DTRecHit1D().
{ return new DTRecHit1D(*this); }
float DTRecHit1D::digiTime | ( | ) | const [inline] |
Return the time (ns) of the digi used to build the rechit.
Definition at line 115 of file DTRecHit1D.h.
References theDigiTime.
Referenced by DTHitAssociator::associateDTHitId(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTRecHit1DPair::digiTime(), DTTMax::InfoLayer::InfoLayer(), operator==(), and DTCombinatorialPatternReco4D::segmentSpecialZed().
{ return theDigiTime; }
virtual LocalPoint DTRecHit1D::localPosition | ( | ) | const [inline, virtual] |
Return the 3-dimensional local position.
Implements RecHit1D.
Definition at line 62 of file DTRecHit1D.h.
References theLocalPosition.
Referenced by FWDTRecHitProxyBuilder::buildViewType(), DTRecHitSegmentResidual::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTHitPairForFit::DTHitPairForFit(), DTTMax::InfoLayer::InfoLayer(), DTRecHit1DPair::localPosition(), DTRecHit1DPair::localPositionError(), operator<<(), DTRecHitQuality::recHitDistFromWire(), GlobalRecHitsProducer::recHitDistFromWire(), GlobalRecHitsAnalyzer::recHitDistFromWire(), DTCalibValidation::recHitDistFromWire(), DTCalibValidation::recHitPosition(), and DTResidualCalibration::segmentToWireDistance().
{ return theLocalPosition; }
virtual LocalError DTRecHit1D::localPositionError | ( | ) | const [inline, virtual] |
Return the 3-dimensional error on the local position.
Implements RecHit1D.
Definition at line 68 of file DTRecHit1D.h.
References theLocalError.
Referenced by DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTHitPairForFit::DTHitPairForFit(), operator<<(), and DTRecHitQuality::recHitPositionError().
{ return theLocalError; }
DTEnums::DTCellSide DTRecHit1D::lrSide | ( | ) | const [inline] |
The side of the cell.
Definition at line 84 of file DTRecHit1D.h.
References theLRSide.
Referenced by DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), and DTCombinatorialPatternReco4D::segmentSpecialZed().
{ return theLRSide; }
bool DTRecHit1D::operator== | ( | const DTRecHit1D & | hit | ) | const |
Comparison operator, based on the wireId and the digi time.
Definition at line 99 of file DTRecHit1D.cc.
References digiTime(), and wireId().
vector< const TrackingRecHit * > DTRecHit1D::recHits | ( | ) | const [virtual] |
No components rechits: it returns a null vector.
Implements TrackingRecHit.
Definition at line 83 of file DTRecHit1D.cc.
{ vector<const TrackingRecHit*> nullvector; return nullvector; }
vector< TrackingRecHit * > DTRecHit1D::recHits | ( | ) | [virtual] |
No components rechits: it returns a null vector.
Implements TrackingRecHit.
Definition at line 92 of file DTRecHit1D.cc.
{ vector<TrackingRecHit*> nullvector; return nullvector; }
void DTRecHit1D::setError | ( | LocalError | err | ) | [inline] |
Set local position error.
Definition at line 96 of file DTRecHit1D.h.
References theLocalError.
{ theLocalError = err; }
void DTRecHit1D::setPosition | ( | LocalPoint | pos | ) | [inline] |
Set local position.
Definition at line 90 of file DTRecHit1D.h.
References pos, and theLocalPosition.
{ theLocalPosition = pos; }
void DTRecHit1D::setPositionAndError | ( | LocalPoint | pos, |
LocalError | err | ||
) | [inline] |
Set the local position and its error.
Definition at line 102 of file DTRecHit1D.h.
References pos, theLocalError, and theLocalPosition.
Referenced by DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), and DTLinearDriftAlgo::compute().
{ theLocalPosition = pos; theLocalError = err; }
DTWireId DTRecHit1D::wireId | ( | ) | const [inline] |
Return the wireId.
Definition at line 109 of file DTRecHit1D.h.
References theWireId.
Referenced by DTHitAssociator::associateDTHitId(), DTHitAssociator::associateHit(), DTRecHitSegmentResidual::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), MuonAssociatorByHits::getMatchedIds(), DTRecHitQuality::map1DRecHitsPerWire(), DTCalibValidation::map1DRecHitsPerWire(), operator==(), DTRecHitQuality::recHitDistFromWire(), GlobalRecHitsProducer::recHitDistFromWire(), GlobalRecHitsAnalyzer::recHitDistFromWire(), DTCalibValidation::recHitDistFromWire(), DTCombinatorialPatternReco4D::segmentSpecialZed(), DTResidualCalibration::segmentToWireDistance(), and DTRecHit1DPair::wireId().
{ return theWireId; }
float DTRecHit1D::theDigiTime [private] |
Definition at line 131 of file DTRecHit1D.h.
Referenced by digiTime().
LocalError DTRecHit1D::theLocalError [private] |
Definition at line 135 of file DTRecHit1D.h.
Referenced by DTRecHit1D(), localPositionError(), setError(), and setPositionAndError().
LocalPoint DTRecHit1D::theLocalPosition [private] |
Definition at line 134 of file DTRecHit1D.h.
Referenced by localPosition(), setPosition(), and setPositionAndError().
DTEnums::DTCellSide DTRecHit1D::theLRSide [private] |
Definition at line 128 of file DTRecHit1D.h.
Referenced by lrSide().
DTWireId DTRecHit1D::theWireId [private] |
Definition at line 125 of file DTRecHit1D.h.
Referenced by wireId().