#include <DTHitPairForFit.h>
Public Member Functions | |
float | digiTime () const |
Returns the time of the corresponding digi. More... | |
DTHitPairForFit (const DTRecHit1DPair &pair, const DTSuperLayer &sl, const edm::ESHandle< DTGeometry > &dtGeom) | |
Constructor. More... | |
const DTWireId & | id () const |
Returns the Id of the wire on which the rechit rely. More... | |
std::pair< bool, bool > | isCompatible (const LocalPoint &posIni, const LocalVector &dirIni) const |
LocalPoint | leftPos () const |
Returns the position in the layer r.f. of the left rechit. More... | |
LocalPoint | localPosition (DTEnums::DTCellSide s) const |
Returns the local position in the layer. More... | |
LocalError | localPositionError () const |
bool | operator< (const DTHitPairForFit &hit) const |
define the order by increasing z More... | |
bool | operator== (const DTHitPairForFit &hit) const |
LocalPoint | rightPos () const |
Returns the position in the layer r.f. of the right rechit. More... | |
~DTHitPairForFit () | |
Destructor. More... | |
Private Attributes | |
float | theDigiTime |
LocalError | theError |
LocalPoint | theLeftPos |
LocalPoint | theRightPos |
DTWireId | theWireId |
Hit pair used for the segments fit
This class is useful for segment fitting, which is done in SL or Chamber reference frame, while the DT hits live on the layer.
Definition at line 31 of file DTHitPairForFit.h.
DTHitPairForFit::DTHitPairForFit | ( | const DTRecHit1DPair & | pair, |
const DTSuperLayer & | sl, | ||
const edm::ESHandle< DTGeometry > & | dtGeom | ||
) |
Constructor.
Definition at line 20 of file DTHitPairForFit.cc.
References DTRecHit1DPair::componentRecHit(), DTRecHit1DPair::digiTime(), DTEnums::Left, DTRecHit1D::localPosition(), DTRecHit1D::localPositionError(), DTEnums::Right, GeomDet::toGlobal(), GeomDet::toLocal(), and DTRecHit1DPair::wireId().
DTHitPairForFit::~DTHitPairForFit | ( | ) |
|
inline |
Returns the time of the corresponding digi.
Definition at line 61 of file DTHitPairForFit.h.
References theDigiTime.
Referenced by operator==().
|
inline |
Returns the Id of the wire on which the rechit rely.
Definition at line 58 of file DTHitPairForFit.h.
References theWireId.
Referenced by operator<(), and operator==().
pair< bool, bool > DTHitPairForFit::isCompatible | ( | const LocalPoint & | posIni, |
const LocalVector & | dirIni | ||
) | const |
check for compatibility of the hit pair with a given position and direction: the first bool of the returned pair is for the left hit, the second for the right one
Definition at line 57 of file DTHitPairForFit.cc.
References bookConverter::max, min(), run_regression::ret, mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::z().
|
inline |
Returns the position in the layer r.f. of the left rechit.
Definition at line 49 of file DTHitPairForFit.h.
References theLeftPos.
Referenced by operator<<().
LocalPoint DTHitPairForFit::localPosition | ( | DTEnums::DTCellSide | s | ) | const |
Returns the local position in the layer.
Definition at line 47 of file DTHitPairForFit.cc.
References edm::hlt::Exception, DTEnums::Left, and DTEnums::Right.
Referenced by operator<().
|
inline |
bool DTHitPairForFit::operator< | ( | const DTHitPairForFit & | hit | ) | const |
define the order by increasing z
Definition at line 82 of file DTHitPairForFit.cc.
References id(), DTEnums::Left, localPosition(), and PV3DBase< T, PVType, FrameType >::x().
bool DTHitPairForFit::operator== | ( | const DTHitPairForFit & | hit | ) | const |
Definition at line 89 of file DTHitPairForFit.cc.
References digiTime(), and id().
|
inline |
Returns the position in the layer r.f. of the right rechit.
Definition at line 52 of file DTHitPairForFit.h.
References theRightPos.
Referenced by operator<<().
|
private |
Definition at line 80 of file DTHitPairForFit.h.
Referenced by digiTime().
|
private |
Definition at line 78 of file DTHitPairForFit.h.
Referenced by localPositionError().
|
private |
Definition at line 76 of file DTHitPairForFit.h.
Referenced by leftPos().
|
private |
Definition at line 77 of file DTHitPairForFit.h.
Referenced by rightPos().
|
private |
Definition at line 79 of file DTHitPairForFit.h.
Referenced by id().