#include <DataFormats/DTRecHit/interface/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, 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) | |
Constructor from a local position, wireId and digi time. | |
DTRecHit1D () | |
Default constructor. | |
DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime) | |
Constructor from wireId and digi time only. | |
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 < TrackingRecHit * > | recHits () |
No components rechits: it returns a null vector. | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
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 |
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.
00019 : 00020 RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer). 00021 theWireId(wireId), 00022 theLRSide(lr), 00023 theDigiTime(digiTime), 00024 theLocalPosition(), 00025 theLocalError() {}
DTRecHit1D::DTRecHit1D | ( | ) |
Default constructor.
Definition at line 29 of file DTRecHit1D.cc.
Referenced by clone().
00029 : theWireId(), 00030 theLRSide(undefLR), 00031 theDigiTime(-1), 00032 theLocalPosition(), 00033 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.
00042 : 00043 RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer). 00044 theWireId(wireId), 00045 theLRSide(lr), 00046 theDigiTime(digiTime), 00047 theLocalPosition(pos) { 00048 float cellResolution = 0.02 ; //cm cell resolution = 200 um = 0.02 cm 00049 theLocalError = 00050 LocalError(cellResolution*cellResolution, 0., 0.); //FIXME: is it really needed? 00051 }
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.
00060 : 00061 RecHit1D(wireId.layerId()), 00062 theWireId(wireId), 00063 theLRSide(lr), 00064 theDigiTime(digiTime), 00065 theLocalPosition(pos), 00066 theLocalError(err) {}
DTRecHit1D::~DTRecHit1D | ( | ) | [virtual] |
DTRecHit1D * DTRecHit1D::clone | ( | void | ) | const [virtual] |
Implements TrackingRecHit.
Definition at line 76 of file DTRecHit1D.cc.
References DTRecHit1D().
00076 { 00077 return new DTRecHit1D(*this); 00078 }
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(), DTParametrizedDriftAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTRecHit1DPair::digiTime(), DTTMax::InfoLayer::InfoLayer(), and operator==().
00115 { 00116 return theDigiTime; 00117 }
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 VisDTRecHit::analyze(), DTLinearDriftFromDBAlgo::compute(), DTParametrizedDriftAlgo::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 VisDTRecHitsTwig::update().
00062 { 00063 return theLocalPosition; 00064 }
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().
00068 { 00069 return theLocalError; 00070 }
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(), DTParametrizedDriftAlgo::compute(), DTNoDriftAlgo::compute(), and DTLinearDriftAlgo::compute().
00084 { 00085 return theLRSide; 00086 }
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< TrackingRecHit * > DTRecHit1D::recHits | ( | ) | [virtual] |
No components rechits: it returns a null vector.
Implements TrackingRecHit.
Definition at line 92 of file DTRecHit1D.cc.
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.
void DTRecHit1D::setError | ( | LocalError | err | ) | [inline] |
Set local position error.
Definition at line 96 of file DTRecHit1D.h.
References theLocalError.
00096 { 00097 theLocalError = err; 00098 }
void DTRecHit1D::setPosition | ( | LocalPoint | pos | ) | [inline] |
Set local position.
Definition at line 90 of file DTRecHit1D.h.
References theLocalPosition.
00090 { 00091 theLocalPosition = pos; 00092 }
void DTRecHit1D::setPositionAndError | ( | LocalPoint | pos, | |
LocalError | err | |||
) | [inline] |
Set the local position and its error.
Definition at line 102 of file DTRecHit1D.h.
References theLocalError, and theLocalPosition.
Referenced by DTLinearDriftFromDBAlgo::compute(), DTParametrizedDriftAlgo::compute(), DTNoDriftAlgo::compute(), and DTLinearDriftAlgo::compute().
00102 { 00103 theLocalPosition = pos; 00104 theLocalError = err; 00105 }
DTWireId DTRecHit1D::wireId | ( | ) | const [inline] |
Return the wireId.
Definition at line 109 of file DTRecHit1D.h.
References theWireId.
Referenced by DTHitAssociator::associateDTHitId(), DTHitAssociator::associateHit(), DTLinearDriftFromDBAlgo::compute(), DTParametrizedDriftAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), MuonAssociatorByHits::getMatchedIds(), DTRecHitQuality::map1DRecHitsPerWire(), DTCalibValidation::map1DRecHitsPerWire(), operator==(), DTRecHitQuality::recHitDistFromWire(), GlobalRecHitsProducer::recHitDistFromWire(), GlobalRecHitsAnalyzer::recHitDistFromWire(), DTCalibValidation::recHitDistFromWire(), and DTRecHit1DPair::wireId().
00109 { 00110 return theWireId; 00111 }
float DTRecHit1D::theDigiTime [private] |
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] |
DTWireId DTRecHit1D::theWireId [private] |