#include <DTSegmentCand.h>
Classes | |
struct | AssPointLessZ |
Public Types | |
typedef std::pair < DTHitPairForFit *, DTEnums::DTCellSide > | AssPoint |
typedef std::set< AssPoint, AssPointLessZ > | AssPointCont |
Public Member Functions | |
virtual void | add (DTHitPairForFit *hit, DTEnums::DTCellSide code) |
add hits to the hit list. More... | |
virtual double | chi2 () const |
the chi2 (NOT chi2/NDOF) of the fit More... | |
virtual double | chi2ndof () const |
the chi2/NDOF of the fit More... | |
virtual AssPointCont | conflictingHitPairs (const DTSegmentCand &seg) const |
virtual AlgebraicSymMatrix | covMatrix () const |
the covariance matrix More... | |
virtual LocalVector | direction () const |
DTSegmentCand (AssPointCont &hits, const DTSuperLayer *sl) | |
Constructor. More... | |
DTSegmentCand (const AssPointCont &hits, LocalPoint &position, LocalVector &direction, double chi2, const AlgebraicSymMatrix &covMat, const DTSuperLayer *sl) | |
virtual bool | good () const |
virtual AssPointCont | hits () const |
the used hits More... | |
virtual bool | hitsShareLayer () const |
virtual unsigned int | NDOF () const |
virtual unsigned int | nHits () const |
virtual int | nLayers () const |
number of different layers with hits More... | |
virtual int | nSharedHitPairs (const DTSegmentCand &seg) const |
number of shared hit pair with other segment candidate More... | |
operator DTChamberRecSegment2D * () const | |
convert this DTSegmentCand into a DTChamberRecSegment2D More... | |
operator DTSLRecSegment2D * () const | |
convert this DTSegmentCand into a DTRecSegment2D More... | |
virtual bool | operator< (const DTSegmentCand &seg) |
less operator based on nHits and chi2 More... | |
virtual bool | operator== (const DTSegmentCand &seg) |
equality operator based on position, direction, chi2 and nHits More... | |
virtual LocalPoint | position () const |
virtual void | removeHit (AssPoint hit) |
remove hit from the candidate More... | |
virtual void | setChi2 (double &chi2) |
set chi2 More... | |
virtual void | setCovMatrix (AlgebraicSymMatrix &cov) |
set the cov matrix More... | |
virtual void | setDirection (LocalVector &dir) |
set direction More... | |
virtual void | setPosition (LocalPoint &pos) |
set position More... | |
const DTSuperLayer * | superLayer () const |
the super layer on which relies More... | |
virtual | ~DTSegmentCand () |
Destructor. More... | |
Static Protected Attributes | |
static const double | chi2max =20. |
static const unsigned int | nHitsMin =3 |
Private Attributes | |
double | theChi2 |
AlgebraicSymMatrix | theCovMatrix |
LocalVector | theDirection |
AssPointCont | theHits |
LocalPoint | thePosition |
const DTSuperLayer * | theSL |
A Candidate for a DT segment. It's used by the algorithm to build segments and store relative information. It must be transformed into a DTSegment for further use.
Definition at line 34 of file DTSegmentCand.h.
typedef std::pair<DTHitPairForFit*, DTEnums::DTCellSide> DTSegmentCand::AssPoint |
Definition at line 37 of file DTSegmentCand.h.
typedef std::set<AssPoint, AssPointLessZ> DTSegmentCand::AssPointCont |
Definition at line 39 of file DTSegmentCand.h.
DTSegmentCand::DTSegmentCand | ( | AssPointCont & | hits, |
const DTSuperLayer * | sl | ||
) |
DTSegmentCand::DTSegmentCand | ( | const AssPointCont & | hits, |
LocalPoint & | position, | ||
LocalVector & | direction, | ||
double | chi2, | ||
const AlgebraicSymMatrix & | covMat, | ||
const DTSuperLayer * | sl | ||
) |
Definition at line 28 of file DTSegmentCand.cc.
|
virtual |
|
virtual |
add hits to the hit list.
Definition at line 61 of file DTSegmentCand.cc.
References theHits.
|
inlinevirtual |
the chi2 (NOT chi2/NDOF) of the fit
Definition at line 63 of file DTSegmentCand.h.
References theChi2.
Referenced by good(), operator<(), operator<<(), operator==(), and setChi2().
|
inlinevirtual |
the chi2/NDOF of the fit
Definition at line 66 of file DTSegmentCand.h.
References nHits(), and theChi2.
Referenced by DTMeantimerPatternReco::checkDoubleCandidates().
|
virtual |
return the hits shared with other segment and with confliction L/R assignment
Definition at line 88 of file DTSegmentCand.cc.
References query::result, and theHits.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 81 of file DTSegmentCand.h.
References theDirection.
Referenced by operator<<(), and operator==().
|
virtual |
Reimplemented in DTSegmentExtendedCand.
Definition at line 108 of file DTSegmentCand.cc.
References chi2(), chi2max, edm::false, hitsShareLayer(), NDOF(), nHits(), and nHitsMin.
Referenced by DTCombinatorialPatternReco::buildSegments(), and DTSegmentUpdator::fit().
|
inlinevirtual |
the used hits
Definition at line 117 of file DTSegmentCand.h.
References theHits.
Referenced by DTSegmentUpdator::fit(), and nSharedHitPairs().
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DTSegmentExtendedCand.
Definition at line 60 of file DTSegmentCand.h.
References theHits.
Referenced by DTMeantimerPatternReco::checkDoubleCandidates(), chi2ndof(), good(), DTSegmentExtendedCand::good(), NDOF(), DTSegmentExtendedCand::nHits(), operator<(), operator<<(), and operator==().
|
virtual |
number of different layers with hits
Definition at line 138 of file DTSegmentCand.cc.
|
virtual |
number of shared hit pair with other segment candidate
Definition at line 69 of file DTSegmentCand.cc.
References hits(), query::result, and theHits.
DTSegmentCand::operator DTChamberRecSegment2D * | ( | ) | const |
convert this DTSegmentCand into a DTChamberRecSegment2D
Definition at line 173 of file DTSegmentCand.cc.
References funct::cos(), position, PV3DBase< T, PVType, FrameType >::theta(), toLocal(), and PV3DBase< T, PVType, FrameType >::z().
DTSegmentCand::operator DTSLRecSegment2D * | ( | ) | const |
convert this DTSegmentCand into a DTRecSegment2D
Definition at line 143 of file DTSegmentCand.cc.
References position, and toLocal().
|
virtual |
less operator based on nHits and chi2
Definition at line 56 of file DTSegmentCand.cc.
References chi2(), and nHits().
|
virtual |
equality operator based on position, direction, chi2 and nHits
Definition at line 43 of file DTSegmentCand.cc.
References chi2(), direction(), epsilon, nHits(), position(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlinevirtual |
Definition at line 78 of file DTSegmentCand.h.
References thePosition.
Referenced by operator<<(), and operator==().
|
virtual |
remove hit from the candidate
Definition at line 65 of file DTSegmentCand.cc.
References theHits.
Referenced by DTSegmentCleaner::solveConflict().
|
inlinevirtual |
set chi2
Definition at line 101 of file DTSegmentCand.h.
References chi2(), and theChi2.
Referenced by DTMeantimerPatternReco::addHits(), and DTSegmentUpdator::fit().
|
inlinevirtual |
set the cov matrix
Definition at line 111 of file DTSegmentCand.h.
References theCovMatrix.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set direction
Definition at line 92 of file DTSegmentCand.h.
References dir, and theDirection.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set position
Definition at line 89 of file DTSegmentCand.h.
References thePosition.
Referenced by DTSegmentUpdator::fit().
|
inline |
the super layer on which relies
Definition at line 75 of file DTSegmentCand.h.
References theSL.
Referenced by DTCombinatorialExtendedPatternReco::extendCandidates().
|
staticprotected |
Definition at line 149 of file DTSegmentCand.h.
Referenced by good().
|
staticprotected |
Definition at line 150 of file DTSegmentCand.h.
Referenced by good().
|
private |
Definition at line 138 of file DTSegmentCand.h.
Referenced by chi2(), chi2ndof(), and setChi2().
|
private |
mat[1][1]=sigma (dx/dz) mat[2][2]=sigma (x) mat[1][2]=cov(dx/dz,x)
Definition at line 143 of file DTSegmentCand.h.
Referenced by covMatrix(), and setCovMatrix().
|
private |
Definition at line 137 of file DTSegmentCand.h.
Referenced by direction(), and setDirection().
|
private |
Definition at line 146 of file DTSegmentCand.h.
Referenced by add(), conflictingHitPairs(), hits(), hitsShareLayer(), nHits(), nSharedHitPairs(), and removeHit().
|
private |
Definition at line 136 of file DTSegmentCand.h.
Referenced by position(), and setPosition().
|
private |
Definition at line 135 of file DTSegmentCand.h.
Referenced by superLayer().