#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) const |
less operator based on nHits and chi2 More... | |
virtual bool | operator== (const DTSegmentCand &seg) const |
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 34 of file DTSegmentCand.h.
typedef std::pair<std::shared_ptr<DTHitPairForFit>, DTEnums::DTCellSide> DTSegmentCand::AssPoint |
Definition at line 36 of file DTSegmentCand.h.
typedef std::set<AssPoint, AssPointLessZ> DTSegmentCand::AssPointCont |
Definition at line 38 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 25 of file DTSegmentCand.cc.
|
virtual |
|
virtual |
add hits to the hit list.
Definition at line 58 of file DTSegmentCand.cc.
References theHits.
Referenced by DTMeantimerPatternReco::addHits(), and counter.Counter::register().
|
virtual |
Definition at line 60 of file DTSegmentCand.cc.
References theHits.
Referenced by counter.Counter::register().
|
inlinevirtual |
the chi2 (NOT chi2/NDOF) of the fit
Definition at line 61 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 64 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 82 of file DTSegmentCand.cc.
References mps_fire::result, and theHits.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 82 of file DTSegmentCand.h.
References theDirection.
Referenced by operator<<(), and operator==().
|
virtual |
Reimplemented in DTSegmentExtendedCand.
Definition at line 100 of file DTSegmentCand.cc.
References chi2(), chi2max, hitsShareLayer(), NDOF(), nHits(), and nHitsMin.
Referenced by DTMeantimerPatternReco::addHits(), and DTCombinatorialPatternReco::buildSegments().
|
inlinevirtual |
the used hits
Definition at line 122 of file DTSegmentCand.h.
References theHits.
Referenced by DTSegmentUpdator::fit(), and nSharedHitPairs().
|
virtual |
Definition at line 113 of file DTSegmentCand.cc.
References mps_fire::i, dqmiolumiharvest::j, and theHits.
Referenced by good().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in DTSegmentExtendedCand.
Definition at line 58 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 133 of file DTSegmentCand.cc.
|
virtual |
number of shared hit pair with other segment candidate
Definition at line 67 of file DTSegmentCand.cc.
References hits(), mps_fire::result, and theHits.
DTSegmentCand::operator DTChamberRecSegment2D * | ( | ) | const |
convert this DTSegmentCand into a DTChamberRecSegment2D
Definition at line 161 of file DTSegmentCand.cc.
References isoTrack_cff::chi2, funct::cos(), validationMuonRPCDigis_cfi::digiTime, nano_mu_digi_cff::layer, position, bscTrigger_cfi::theHits, 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 138 of file DTSegmentCand.cc.
References isoTrack_cff::chi2, validationMuonRPCDigis_cfi::digiTime, position, bscTrigger_cfi::theHits, and toLocal().
|
virtual |
less operator based on nHits and chi2
Definition at line 52 of file DTSegmentCand.cc.
References chi2(), and nHits().
|
virtual |
equality operator based on position, direction, chi2 and nHits
Definition at line 37 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 79 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 DTMeantimerPatternReco::addHits(), and DTSegmentCleaner::solveConflict().
|
inlinevirtual |
set chi2
Definition at line 103 of file DTSegmentCand.h.
References chi2(), and theChi2.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set the cov matrix
Definition at line 116 of file DTSegmentCand.h.
References theCovMatrix.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set direction
Definition at line 93 of file DTSegmentCand.h.
References DeadROC_duringRun::dir, and theDirection.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
set position
Definition at line 90 of file DTSegmentCand.h.
References thePosition.
Referenced by DTSegmentUpdator::fit().
|
inlinevirtual |
|
inline |
the super layer on which relies
Definition at line 76 of file DTSegmentCand.h.
References theSL.
Referenced by DTCombinatorialExtendedPatternReco::extendCandidates().
|
inlinevirtual |
the t0 of the segment
Definition at line 67 of file DTSegmentCand.h.
References thet0.
Referenced by DTMeantimerPatternReco::addHits(), DTMeantimerPatternReco::fitWithT0(), operator<<(), and sett0().
|
staticprotected |
Definition at line 151 of file DTSegmentCand.h.
Referenced by good().
|
staticprotected |
Definition at line 152 of file DTSegmentCand.h.
Referenced by good().
|
private |
Definition at line 140 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 146 of file DTSegmentCand.h.
Referenced by covMatrix(), and setCovMatrix().
|
private |
Definition at line 139 of file DTSegmentCand.h.
Referenced by direction(), and setDirection().
|
private |
Definition at line 148 of file DTSegmentCand.h.
Referenced by add(), conflictingHitPairs(), hits(), hitsShareLayer(), nHits(), nSharedHitPairs(), and removeHit().
|
private |
Definition at line 138 of file DTSegmentCand.h.
Referenced by position(), and setPosition().
|
private |
Definition at line 137 of file DTSegmentCand.h.
Referenced by superLayer().
|
private |
Definition at line 141 of file DTSegmentCand.h.