#include <DTRecSegment2D.h>
Public Member Functions | |
virtual double | chi2 () const |
the chi2 of the fit More... | |
virtual DTRecSegment2D * | clone () const |
AlgebraicSymMatrix | covMatrix () const |
the Covariance Matrix More... | |
virtual int | degreesOfFreedom () const |
return the DOF of the segment More... | |
virtual int | dimension () const |
return 2. The dimension of the matrix More... | |
DTRecSegment2D () | |
DTRecSegment2D (DetId id, const std::vector< DTRecHit1D > &hits) | |
c'tor from hits More... | |
DTRecSegment2D (DetId id, LocalPoint &position, LocalVector &direction, AlgebraicSymMatrix &covMatrix, double chi2, std::vector< DTRecHit1D > &hits1D) | |
complete constructor More... | |
bool | ist0Valid () const |
virtual LocalVector | localDirection () const |
the local direction in SL frame More... | |
virtual LocalError | localDirectionError () const |
the local direction error (xx,xy,yy) in SL frame: only xx is not 0. More... | |
virtual LocalPoint | localPosition () const |
local position in SL frame More... | |
virtual LocalError | localPositionError () const |
local position error in SL frame More... | |
virtual AlgebraicVector | parameters () const |
the vector of parameters (dx/dz,x) More... | |
virtual AlgebraicSymMatrix | parametersError () const |
virtual AlgebraicMatrix | projectionMatrix () const |
virtual std::vector< const TrackingRecHit * > | recHits () const |
Access to component RecHits (if any) More... | |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any) More... | |
std::vector< DTRecHit1D > | specificRecHits () const |
Access to specific components. More... | |
double | t0 () const |
Get the segment t0 (if recomputed, 0 is returned otherwise) More... | |
double | vDrift () const |
virtual | ~DTRecSegment2D () |
Destructor. More... | |
Public Member Functions inherited from RecSegment | |
RecSegment (DetId id) | |
RecSegment (TrackingRecHit::id_type id=0) | |
virtual | ~RecSegment () |
Destructor. More... | |
Public Member Functions inherited from TrackingRecHit | |
DetId | geographicalId () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
Type | getType () const |
bool | isValid () const |
virtual void | recHitsV (std::vector< const TrackingRecHit * > &) const |
virtual void | recHitsV (std::vector< TrackingRecHit * > &) |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
TrackingRecHit (DetId id, Type type=valid) | |
TrackingRecHit (id_type id=0, Type type=valid) | |
Type | type () const |
virtual float | weight () const |
virtual | ~TrackingRecHit () |
Protected Member Functions | |
void | setChi2 (const double &chi2) |
void | setCovMatrix (const AlgebraicSymMatrix &cov) |
void | setDirection (const LocalVector &dir) |
void | setPosition (const LocalPoint &pos) |
void | setT0 (const double &t0) |
void | setVdrift (const double &vdrift) |
void | update (std::vector< DTRecHit1D > &updatedRecHits) |
Protected Member Functions inherited from TrackingRecHit | |
void | setId (id_type iid) |
void | setType (Type ttype) |
Protected Attributes | |
double | theChi2 |
AlgebraicSymMatrix | theCovMatrix |
LocalVector | theDirection |
std::vector< DTRecHit1D > | theHits |
LocalPoint | thePosition |
double | theT0 |
double | theVdrift |
Private Member Functions | |
void | initialize () const |
AlgebraicVector | param (const LocalPoint &lp, const LocalVector &lv) const |
Static Private Attributes | |
static bool | isInitialized |
static AlgebraicMatrix | theProjectionMatrix |
Friends | |
class | DTSegmentUpdator |
Additional Inherited Members | |
Public Types inherited from TrackingRecHit | |
typedef unsigned int | id_type |
enum | SharedInputType { all, some } |
definition of equality via shared input More... | |
enum | Type { valid = 0, missing = 1, inactive = 2, bad = 3 } |
Base class for 2-parameters segments measuring position and direction in X projection.
Implements the AbstractDetMeasurement part of the interface for 2D RecHits in terms of localPosition() and localPositionError() and Direction. This segment is measuring the position and the direction in just one projection, the "X". Typical use case is a segment reconstructed only in X projection. To be used as base class for all 2D positional-directional segments. The coordinate measured is assumend to be the local "x" and "dx/dz"
2D Segments for the muon barrel system. 2D means that this segment has information about position and direction in one projection (r-phi or r-theta/zeta).
Definition at line 47 of file DTRecSegment2D.h.
|
inline |
Constructor empty c'tor needed by POOL (I guess)
Definition at line 53 of file DTRecSegment2D.h.
Referenced by clone().
DTRecSegment2D::DTRecSegment2D | ( | DetId | id, |
const std::vector< DTRecHit1D > & | hits | ||
) |
DTRecSegment2D::DTRecSegment2D | ( | DetId | id, |
LocalPoint & | position, | ||
LocalVector & | direction, | ||
AlgebraicSymMatrix & | covMatrix, | ||
double | chi2, | ||
std::vector< DTRecHit1D > & | hits1D | ||
) |
complete constructor
Definition at line 56 of file DTRecSegment2D.cc.
|
inlinevirtual |
|
inlinevirtual |
the chi2 of the fit
Implements RecSegment.
Definition at line 104 of file DTRecSegment2D.h.
References theChi2.
Referenced by DTRecSegment4D::chi2(), operator<<(), DTRefitAndCombineReco4D::refitSuperSegments(), DTCombinatorialPatternReco4D::segmentSpecialZed(), and setChi2().
|
inlinevirtual |
Implements TrackingRecHit.
Reimplemented in DTChamberRecSegment2D, and DTSLRecSegment2D.
Definition at line 69 of file DTRecSegment2D.h.
References DTRecSegment2D().
|
inline |
the Covariance Matrix
Definition at line 119 of file DTRecSegment2D.h.
References theCovMatrix.
Referenced by DTRecSegment4D::DTRecSegment4D(), and DTCombinatorialPatternReco4D::segmentSpecialZed().
|
virtual |
return the DOF of the segment
Implements RecSegment.
Definition at line 72 of file DTRecSegment2D.cc.
References dimension(), and theHits.
Referenced by DTLocalTriggerSynchTask::analyze(), DTRecSegment4D::degreesOfFreedom(), operator<<(), and DTLocalTriggerTask::runSegmentAnalysis().
|
inlinevirtual |
return 2. The dimension of the matrix
Implements RecSegment.
Definition at line 89 of file DTRecSegment2D.h.
Referenced by degreesOfFreedom().
|
inlineprivate |
Definition at line 159 of file DTRecSegment2D.h.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
|
inline |
Definition at line 123 of file DTRecSegment2D.h.
References theT0.
Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), DTLocalTriggerSynchTask::analyze(), DTTimingExtractor::fillTiming(), CosmicMuonTrajectoryBuilder::t0(), and DTSegmentUpdator::updateHits().
|
inlinevirtual |
the local direction in SL frame
Implements RecSegment.
Definition at line 98 of file DTRecSegment2D.h.
References theDirection.
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), DTSegment4DQuality::analyze(), DTVDriftCalibration::analyze(), DTRecSegment4D::DTRecSegment4D(), DTSegmentUpdator::fit(), operator<<(), parameters(), DTCombinatorialPatternReco4D::segmentSpecialZed(), and DTSegmentUpdator::update().
|
virtual |
the local direction error (xx,xy,yy) in SL frame: only xx is not 0.
Implements RecSegment.
Definition at line 68 of file DTRecSegment2D.cc.
References theCovMatrix.
Referenced by DTSegment2DQuality::analyze(), DTSegment4DQuality::analyze(), and DTSegment2DSLPhiQuality::analyze().
|
inlinevirtual |
local position in SL frame
Implements TrackingRecHit.
Definition at line 92 of file DTRecSegment2D.h.
References thePosition.
Referenced by DTSegment2DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), DTSegment4DQuality::analyze(), DTVDriftCalibration::analyze(), DTRecSegment4D::DTRecSegment4D(), DTSegmentUpdator::fit(), operator<<(), parameters(), DTCombinatorialPatternReco4D::segmentSpecialZed(), and DTSegmentUpdator::update().
|
virtual |
local position error in SL frame
Implements TrackingRecHit.
Definition at line 64 of file DTRecSegment2D.cc.
References theCovMatrix.
Referenced by DTSegment2DQuality::analyze(), DTSegment4DQuality::analyze(), DTSegment2DSLPhiQuality::analyze(), and DTCombinatorialPatternReco4D::segmentSpecialZed().
|
inlineprivate |
Definition at line 166 of file DTRecSegment2D.h.
References query::result, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by parameters().
|
inlinevirtual |
the vector of parameters (dx/dz,x)
Implements TrackingRecHit.
Definition at line 73 of file DTRecSegment2D.h.
References localDirection(), localPosition(), and param().
Referenced by python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().
|
virtual |
mat[0][0]=sigma (dx/dz) mat[1][1]=sigma (x) mat[0][1]=cov(dx/dz,x)
Implements TrackingRecHit.
Definition at line 26 of file DTRecSegment2D.cc.
References m.
Referenced by DTSegmentUpdator::fit(), and DTRecSegment4D::setCovMatrixForZed().
|
inlinevirtual |
return the projection matrix, which must project a parameter vector, whose components are (q/p, dx/dz, dy/dz, x, y), into the vector returned by parameters()
Implements TrackingRecHit.
Definition at line 83 of file DTRecSegment2D.h.
References initialize(), isInitialized, and theProjectionMatrix.
|
virtual |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 83 of file DTRecSegment2D.cc.
References theHits.
Referenced by DTChamberEfficiencyTask::getBestSegment(), MuonAssociatorByHits::getMatchedIds(), TrackerMuonHitExtractor::getMuonHits(), DTChamberEfficiencyTask::isGoodSegment(), MuonSegmentMatcher::matchDT(), operator<<(), and MuonTrackProducer::produce().
|
virtual |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 94 of file DTRecSegment2D.cc.
References theHits.
|
protected |
Definition at line 125 of file DTRecSegment2D.cc.
References chi2(), and theChi2.
Referenced by DTSegmentUpdator::fit().
|
protected |
Definition at line 121 of file DTRecSegment2D.cc.
References theCovMatrix.
Referenced by DTSegmentUpdator::fit().
|
protected |
Definition at line 117 of file DTRecSegment2D.cc.
References dir, and theDirection.
Referenced by DTSegmentUpdator::fit().
|
protected |
Definition at line 113 of file DTRecSegment2D.cc.
References pos, and thePosition.
Referenced by DTSegmentUpdator::fit().
|
protected |
Definition at line 129 of file DTRecSegment2D.cc.
Referenced by DTSegmentUpdator::calculateT0corr().
|
protected |
Definition at line 133 of file DTRecSegment2D.cc.
References theVdrift.
Referenced by DTSegmentUpdator::calculateT0corr().
std::vector< DTRecHit1D > DTRecSegment2D::specificRecHits | ( | ) | const |
Access to specific components.
Definition at line 105 of file DTRecSegment2D.cc.
References theHits.
Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), DTSegmentsTask::analyze(), DTResidualCalibration::analyze(), SegmentTrackAnalyzer::analyze(), DTVDriftCalibration::analyze(), DTEfficiencyTask::analyze(), DTResolutionAnalysisTask::analyze(), DTSegmentAnalysisTask::analyze(), DTSegmentUpdator::calculateT0corr(), DTCalibValidation::compute(), DTTimingExtractor::fillTiming(), DTSegmentUpdator::fit(), ChamberSegmentUtility::getDTRHmap(), MuonSegmentMatcher::matchDT(), DTSegmentSelector::operator()(), DTCombinatorialPatternReco4D::segmentSpecialZed(), CosmicMuonTrajectoryBuilder::t0(), and DTSegmentUpdator::updateHits().
|
inline |
Get the segment t0 (if recomputed, 0 is returned otherwise)
Definition at line 122 of file DTRecSegment2D.h.
References theT0.
Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), DTTimingExtractor::fillTiming(), setT0(), CosmicMuonTrajectoryBuilder::t0(), and DTSegmentUpdator::updateHits().
|
protected |
Definition at line 109 of file DTRecSegment2D.cc.
References theHits.
Referenced by python.Vispa.Gui.VispaWidget.VispaWidget::autosize(), python.Vispa.Views.LineDecayView.LineDecayContainer::createObject(), python.Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), python.Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), python.Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), python.Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), python.Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), python.Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), python.Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), python.Vispa.Gui.FindDialog.FindDialog::reset(), python.Vispa.Gui.PortConnection.PointToPointConnection::select(), python.Vispa.Gui.VispaWidget.VispaWidget::select(), python.Vispa.Views.LineDecayView.LineDecayContainer::select(), python.Vispa.Gui.VispaWidget.VispaWidget::setText(), python.Vispa.Gui.VispaWidget.VispaWidget::setTitle(), python.Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), python.Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), python.Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and DTSegmentUpdator::updateHits().
|
inline |
Get the vDirft as computed by the algo for the computation of the segment t0 (if recomputed, 0 is returned otherwise)
Definition at line 127 of file DTRecSegment2D.h.
References theVdrift.
Referenced by DTSegmentUpdator::updateHits().
|
friend |
Definition at line 130 of file DTRecSegment2D.h.
|
staticprivate |
Definition at line 156 of file DTRecSegment2D.h.
Referenced by initialize(), and projectionMatrix().
|
protected |
Definition at line 147 of file DTRecSegment2D.h.
|
protected |
mat[0][0]=sigma (dx/dz) mat[1][1]=sigma (x) mat[0][1]=cov(dx/dz,x)
Definition at line 145 of file DTRecSegment2D.h.
Referenced by covMatrix(), localDirectionError(), localPositionError(), and setCovMatrix().
|
protected |
Definition at line 140 of file DTRecSegment2D.h.
Referenced by localDirection(), and setDirection().
|
protected |
Definition at line 151 of file DTRecSegment2D.h.
Referenced by degreesOfFreedom(), recHits(), specificRecHits(), and update().
|
protected |
Definition at line 139 of file DTRecSegment2D.h.
Referenced by localPosition(), and setPosition().
|
staticprivate |
Definition at line 157 of file DTRecSegment2D.h.
Referenced by initialize(), and projectionMatrix().
|
protected |
Definition at line 148 of file DTRecSegment2D.h.
Referenced by ist0Valid(), setT0(), and t0().
|
protected |
Definition at line 149 of file DTRecSegment2D.h.
Referenced by setVdrift(), and vDrift().