#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(), DTGeometry::layer(), DTEnums::Left, DTRecHit1D::localPosition(), DTRecHit1D::localPositionError(), DTEnums::Right, GeomDet::toLocal(), and DTRecHit1DPair::wireId().
DTHitPairForFit::~DTHitPairForFit | ( | ) |
|
inline |
Returns the time of the corresponding digi.
Definition at line 57 of file DTHitPairForFit.h.
References theDigiTime.
|
inline |
Returns the Id of the wire on which the rechit rely.
Definition at line 54 of file DTHitPairForFit.h.
References theWireId.
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 53 of file DTHitPairForFit.cc.
References SiStripPI::max, SiStripPI::min, runTheMatrix::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 45 of file DTHitPairForFit.h.
References theLeftPos.
LocalPoint DTHitPairForFit::localPosition | ( | DTEnums::DTCellSide | s | ) | const |
Returns the local position in the layer.
Definition at line 42 of file DTHitPairForFit.cc.
References Exception, DTEnums::Left, DTEnums::Right, and alignCSCRings::s.
|
inline |
bool DTHitPairForFit::operator< | ( | const DTHitPairForFit & | hit | ) | const |
define the order by increasing z
Definition at line 75 of file DTHitPairForFit.cc.
References hit::id, DTEnums::Left, and hit::x.
bool DTHitPairForFit::operator== | ( | const DTHitPairForFit & | hit | ) | const |
Definition at line 82 of file DTHitPairForFit.cc.
References hit::id.
|
inline |
Returns the position in the layer r.f. of the right rechit.
Definition at line 48 of file DTHitPairForFit.h.
References theRightPos.
|
private |
Definition at line 75 of file DTHitPairForFit.h.
Referenced by digiTime().
|
private |
Definition at line 73 of file DTHitPairForFit.h.
Referenced by localPositionError().
|
private |
Definition at line 71 of file DTHitPairForFit.h.
Referenced by leftPos().
|
private |
Definition at line 72 of file DTHitPairForFit.h.
Referenced by rightPos().
|
private |
Definition at line 74 of file DTHitPairForFit.h.
Referenced by id().