#include <DTSegmentCand.h>
Classes | |
struct | AssPointLessZ |
Public Types | |
typedef std::pair < std::shared_ptr < DTHitPairForFit > , DTEnums::DTCellSide > | AssPoint |
typedef std::set< AssPoint, AssPointLessZ > | AssPointCont |
Public Member Functions | |
virtual void | add (AssPoint newHit) |
add hits to the hit list. More... | |
virtual void | add (std::shared_ptr< DTHitPairForFit > hit, DTEnums::DTCellSide code) |
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 const 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... | |
virtual void | sett0 (double &t0) |
set t0 More... | |
const DTSuperLayer * | superLayer () const |
the super layer on which relies More... | |
virtual double | t0 () const |
the t0 of the segment 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 |
double | thet0 |
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 35 of file DTSegmentCand.h.
typedef std::pair<std::shared_ptr<DTHitPairForFit>, DTEnums::DTCellSide> DTSegmentCand::AssPoint |
Definition at line 38 of file DTSegmentCand.h.
typedef std::set<AssPoint, AssPointLessZ> DTSegmentCand::AssPointCont |
Definition at line 40 of file DTSegmentCand.h.
DTSegmentCand::DTSegmentCand | ( | AssPointCont & | hits, |
const DTSuperLayer * | sl | ||
) |
Constructor.
Definition at line 23 of file DTSegmentCand.cc.
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.
Referenced by DTMeantimerPatternReco::addHits(), and counter.Counter::register().
|
virtual |
Definition at line 65 of file DTSegmentCand.cc.
References theHits.
Referenced by counter.Counter::register().
|
inlinevirtual |
the chi2 (NOT chi2/NDOF) of the fit
Definition at line 64 of file DTSegmentCand.h.
References theChi2.
Referenced by DTMeantimerPatternReco::addHits(), DTMeantimerPatternReco::fitWithT0(), good(), operator<(), operator<<(), operator==(), and setChi2().
|
inlinevirtual |
the chi2/NDOF of the fit
Definition at line 67 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 92 of file DTSegmentCand.cc.
References query::result, and theHits.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 85 of file DTSegmentCand.h.
References theDirection.
Referenced by operator<<(), and operator==().
|
virtual |
Reimplemented in DTSegmentExtendedCand.
Definition at line 112 of file DTSegmentCand.cc.
References chi2(), chi2max, edm::false, hitsShareLayer(), NDOF(), nHits(), and nHitsMin.
Referenced by DTMeantimerPatternReco::addHits(), and DTCombinatorialPatternReco::buildSegments().
|
inlinevirtual |
the used hits
Definition at line 125 of file DTSegmentCand.h.
References theHits.
Referenced by DTSegmentUpdator::fit(), and nSharedHitPairs().
|
virtual |
Definition at line 123 of file DTSegmentCand.cc.
Referenced by good().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DTSegmentExtendedCand.
Definition at line 61 of file DTSegmentCand.h.
References theHits.
Referenced by DTMeantimerPatternReco::addHits(), DTMeantimerPatternReco::checkDoubleCandidates(), chi2ndof(), DTMeantimerPatternReco::fitWithT0(), DTSegmentExtendedCand::good(), good(), NDOF(), DTSegmentExtendedCand::nHits(), operator<(), and operator==().
|
virtual |
number of different layers with hits
Definition at line 146 of file DTSegmentCand.cc.
|
virtual |
number of shared hit pair with other segment candidate
Definition at line 74 of file DTSegmentCand.cc.
References hits(), query::result, and theHits.
DTSegmentCand::operator DTChamberRecSegment2D * | ( | ) | const |
convert this DTSegmentCand into a DTChamberRecSegment2D
Definition at line 181 of file DTSegmentCand.cc.
References HLT_FULL_cff::chi2, 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 151 of file DTSegmentCand.cc.
References HLT_FULL_cff::chi2, 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(), geometryDiff::epsilon, nHits(), position(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlinevirtual |
Definition at line 82 of file DTSegmentCand.h.
References thePosition.
Referenced by operator<<(), and operator==().
|
virtual |
remove hit from the candidate
Definition at line 70 of file DTSegmentCand.cc.
References theHits.
Referenced by DTMeantimerPatternReco::addHits(), and DTSegmentCleaner::solveConflict().
|
inlinevirtual |
set chi2
Definition at line 106 of file DTSegmentCand.h.
References chi2(), and theChi2.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set the cov matrix
Definition at line 119 of file DTSegmentCand.h.
References theCovMatrix.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set direction
Definition at line 96 of file DTSegmentCand.h.
References dir, and theDirection.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set position
Definition at line 93 of file DTSegmentCand.h.
References thePosition.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
|
inline |
the super layer on which relies
Definition at line 79 of file DTSegmentCand.h.
References theSL.
Referenced by DTCombinatorialExtendedPatternReco::extendCandidates().
|
inlinevirtual |
the t0 of the segment
Definition at line 70 of file DTSegmentCand.h.
References thet0.
Referenced by DTMeantimerPatternReco::addHits(), DTMeantimerPatternReco::fitWithT0(), operator<<(), and sett0().
|
staticprotected |
Definition at line 157 of file DTSegmentCand.h.
Referenced by good().
|
staticprotected |
Definition at line 158 of file DTSegmentCand.h.
Referenced by good().
|
private |
Definition at line 146 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 152 of file DTSegmentCand.h.
Referenced by covMatrix(), and setCovMatrix().
|
private |
Definition at line 145 of file DTSegmentCand.h.
Referenced by direction(), and setDirection().
|
private |
Definition at line 154 of file DTSegmentCand.h.
Referenced by add(), conflictingHitPairs(), hits(), hitsShareLayer(), nHits(), nSharedHitPairs(), and removeHit().
|
private |
Definition at line 144 of file DTSegmentCand.h.
Referenced by position(), and setPosition().
|
private |
Definition at line 143 of file DTSegmentCand.h.
Referenced by superLayer().
|
private |
Definition at line 147 of file DTSegmentCand.h.