#include <DTRecSegment4D.h>
Public Member Functions | |
virtual DTChamberId | chamberId () const |
The (specific) DetId of the chamber on which the segment resides. More... | |
double | chi2 () const override |
Chi2 of the segment fit. More... | |
DTRecSegment4D * | clone () const override |
int | degreesOfFreedom () const override |
Degrees of freedom of the segment fit. More... | |
int | dimension () const override |
Dimension (in parameter space) More... | |
DTRecSegment4D () | |
Empty constructor. More... | |
DTRecSegment4D (const DTChamberRecSegment2D &phiSeg, const DTSLRecSegment2D &zedSeg, const LocalPoint &posZInCh, const LocalVector &dirZInCh) | |
Construct from phi and Z projections. More... | |
DTRecSegment4D (const DTChamberRecSegment2D &phiSeg) | |
Construct from phi projection. More... | |
DTRecSegment4D (const DTSLRecSegment2D &zedSeg, const LocalPoint &posZInCh, const LocalVector &dirZInCh) | |
Construct from Z projection. More... | |
bool | hasPhi () const |
Does it have the Phi projection? More... | |
bool | hasZed () const |
Does it have the Z projection? More... | |
LocalVector | localDirection () const override |
Local direction in Chamber frame. More... | |
LocalError | localDirectionError () const override |
Local direction error in the Chamber frame. More... | |
LocalPoint | localPosition () const override |
Local position in Chamber frame. More... | |
LocalError | localPositionError () const override |
Local position error in Chamber frame. More... | |
AlgebraicVector | parameters () const override |
AlgebraicSymMatrix | parametersError () const override |
Covariance matrix fo parameters() More... | |
const DTChamberRecSegment2D * | phiSegment () const |
The superPhi segment: 0 if no phi projection available. More... | |
AlgebraicMatrix | projectionMatrix () const override |
The projection matrix relates the trajectory state parameters to the segment parameters(). More... | |
std::vector< const TrackingRecHit * > | recHits () const override |
Access to component RecHits (if any) More... | |
std::vector< TrackingRecHit * > | recHits () override |
Non-const access to component RecHits (if any) More... | |
void | setCovMatrix (const AlgebraicSymMatrix &mat) |
Set covariance matrix. More... | |
void | setDirection (LocalVector dir) |
Set direction. More... | |
void | setPosition (LocalPoint pos) |
Set position. More... | |
const DTSLRecSegment2D * | zSegment () const |
The Z segment: 0 if not zed projection available. More... | |
~DTRecSegment4D () override | |
Destructor. More... | |
Public Member Functions inherited from RecSegment | |
RecSegment (DetId id) | |
RecSegment (TrackingRecHit::id_type id=0) | |
~RecSegment () override | |
Destructor. More... | |
Public Member Functions inherited from TrackingRecHit | |
virtual bool | canImproveWithTrack () const |
RecHitPointer | cloneForFit (const GeomDet &idet) const |
virtual TrackingRecHit * | cloneHit () const |
virtual RecHitPointer | cloneSH () const |
const GeomDet * | det () const |
virtual const GeomDetUnit * | detUnit () const |
virtual float | errorGlobalR () const |
virtual float | errorGlobalRPhi () const |
virtual float | errorGlobalZ () const |
DetId | geographicalId () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
unsigned int | getRTTI () const |
Type | getType () const |
virtual GlobalPoint | globalPosition () const |
virtual GlobalError | globalPositionError () const |
virtual bool | hasPositionAndError () const |
to be redefined by daughter class More... | |
virtual TrackingRecHit const * | hit () const |
bool | isValid () const |
id_type | rawId () const |
virtual void | recHitsV (std::vector< const TrackingRecHit * > &) const |
virtual void | recHitsV (std::vector< TrackingRecHit * > &) |
virtual void | setDet (const GeomDet &idet) |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
virtual const Surface * | surface () const |
TrackingRecHit (DetId id, Type type=valid) | |
TrackingRecHit (id_type id=0, Type type=valid) | |
TrackingRecHit (DetId id, unsigned int rt, Type type=valid) | |
TrackingRecHit (const GeomDet &idet, Type type=valid) | |
TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid) | |
TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh) | |
virtual ConstRecHitContainer | transientHits () const |
Type | type () const |
virtual float | weight () const |
virtual | ~TrackingRecHit () |
Private Types | |
enum | Projection { full, phi, Z, none } |
Which projections are actually there. More... | |
Private Member Functions | |
DTChamberRecSegment2D * | phiSegment () |
the superPhi segment More... | |
void | setCovMatrixForZed (const LocalPoint &posZInCh) |
DTSLRecSegment2D * | zSegment () |
the Z segment More... | |
Private Attributes | |
AlgebraicSymMatrix | theCovMatrix |
int | theDimension |
LocalVector | theDirection |
DTChamberRecSegment2D | thePhiSeg |
LocalPoint | thePosition |
Projection | theProjection |
DTSLRecSegment2D | theZedSeg |
Friends | |
class | DTSegmentUpdator |
Additional Inherited Members | |
Public Types inherited from TrackingRecHit | |
typedef std::vector< ConstRecHitPointer > | ConstRecHitContainer |
using | ConstRecHitPointer = std::shared_ptr< TrackingRecHit const > |
typedef unsigned int | id_type |
typedef std::vector< ConstRecHitPointer > | RecHitContainer |
using | RecHitPointer = std::shared_ptr< TrackingRecHit const > |
enum | SharedInputType { all, some } |
definition of equality via shared input More... | |
enum | Type { valid = 0, missing = 1, inactive = 2, bad = 3, missing_inner = 4, missing_outer = 5, inactive_inner = 6, inactive_outer = 7 } |
Static Public Attributes inherited from TrackingRecHit | |
static const int | rttiShift = 24 |
static const int | typeMask = 0xf |
Protected Member Functions inherited from TrackingRecHit | |
void | setId (id_type iid) |
void | setRTTI (unsigned int rt) |
void | setType (Type ttype) |
4-parameter RecHits for MuonBarrel DT (x,y, dx/dz, dy/dz)
Definition at line 23 of file DTRecSegment4D.h.
|
private |
Which projections are actually there.
Enumerator | |
---|---|
full | |
phi | |
Z | |
none |
Definition at line 119 of file DTRecSegment4D.h.
|
inline |
Empty constructor.
Definition at line 28 of file DTRecSegment4D.h.
References ~DTRecSegment4D().
Referenced by clone().
DTRecSegment4D::DTRecSegment4D | ( | const DTChamberRecSegment2D & | phiSeg, |
const DTSLRecSegment2D & | zedSeg, | ||
const LocalPoint & | posZInCh, | ||
const LocalVector & | dirZInCh | ||
) |
Construct from phi and Z projections.
Definition at line 17 of file DTRecSegment4D.cc.
References funct::cos(), DTRecSegment2D::covMatrix(), Exception, TrackingRecHit::geographicalId(), DTRecSegment2D::localDirection(), DTRecSegment2D::localPosition(), DetId::rawId(), setCovMatrixForZed(), theCovMatrix, theDirection, thePosition, PV3DBase< T, PVType, FrameType >::theta(), Vector3DBase< T, FrameTag >::unit(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
DTRecSegment4D::DTRecSegment4D | ( | const DTChamberRecSegment2D & | phiSeg | ) |
Construct from phi projection.
Definition at line 57 of file DTRecSegment4D.cc.
References DTRecSegment2D::covMatrix(), DTRecSegment2D::localDirection(), DTRecSegment2D::localPosition(), theCovMatrix, theDirection, thePhiSeg, and thePosition.
DTRecSegment4D::DTRecSegment4D | ( | const DTSLRecSegment2D & | zedSeg, |
const LocalPoint & | posZInCh, | ||
const LocalVector & | dirZInCh | ||
) |
Construct from Z projection.
Definition at line 76 of file DTRecSegment4D.cc.
References funct::cos(), setCovMatrixForZed(), theCovMatrix, theDirection, thePosition, PV3DBase< T, PVType, FrameType >::theta(), and PV3DBase< T, PVType, FrameType >::z().
|
override |
|
virtual |
The (specific) DetId of the chamber on which the segment resides.
Definition at line 282 of file DTRecSegment4D.cc.
References TrackingRecHit::geographicalId().
Referenced by FWDTSegmentProxyBuilder::buildViewType(), DynamicTruncation::chooseLayers(), DTTrigGeomUtils::computeSCCoordinates(), DynamicTruncation::fillDYTInfos(), DTSegmentUpdator::fit(), DTChamberEfficiencyTask::interpolate(), DTChamberEfficiencyTask::isGoodSegment(), DynamicTruncation::preliminaryFit(), and setCovMatrix().
|
overridevirtual |
Chi2 of the segment fit.
Implements RecSegment.
Definition at line 197 of file DTRecSegment4D.cc.
References DTRecSegment2D::chi2(), hasPhi(), hasZed(), mps_fire::result, thePhiSeg, and theZedSeg.
Referenced by DTChamberEfficiencyTask::getBestSegment(), DTChamberEfficiencyTask::isGoodSegment(), localDirection(), DTSegmentSelector::operator()(), and operator<<().
|
inlineoverridevirtual |
Implements TrackingRecHit.
Definition at line 44 of file DTRecSegment4D.h.
References DTRecSegment4D(), parameters(), parametersError(), and projectionMatrix().
Referenced by DTSegment4DT0Corrector::produce().
|
overridevirtual |
Degrees of freedom of the segment fit.
Implements RecSegment.
Definition at line 205 of file DTRecSegment4D.cc.
References DTRecSegment2D::degreesOfFreedom(), hasPhi(), hasZed(), mps_fire::result, thePhiSeg, and theZedSeg.
Referenced by DTChamberEfficiencyTask::getBestSegment(), DTChamberEfficiencyTask::isGoodSegment(), localDirection(), DTSegmentSelector::operator()(), and operator<<().
|
inlineoverridevirtual |
Dimension (in parameter space)
Implements RecSegment.
Definition at line 77 of file DTRecSegment4D.h.
References recHits(), and theDimension.
Referenced by DTCalibValidation::compute(), operator<<(), parameters(), parametersError(), and projectionMatrix().
|
inline |
Does it have the Phi projection?
Definition at line 90 of file DTRecSegment4D.h.
References full, phi, and theProjection.
Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), DTChamberEfficiencyTask::analyze(), DTSegmentUpdator::calculateT0corr(), chi2(), degreesOfFreedom(), DTSegmentUpdator::fit(), DTChamberEfficiencyTask::getBestSegment(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackerMuonHitExtractor::getMuonHits(), DTChamberEfficiencyTask::interpolate(), DTChamberEfficiencyTask::isGoodSegment(), MuonResidualsFromTrack::MuonResidualsFromTrack(), DTSegmentSelector::operator()(), operator<<(), phiSegment(), MuonTrackProducer::produce(), recHits(), MuonTrackDT13ChamberResidual::setSegmentResidual(), StateSegmentMatcher::StateSegmentMatcher(), CosmicMuonTrajectoryBuilder::t0(), and DTSegmentUpdator::update().
|
inline |
Does it have the Z projection?
Definition at line 93 of file DTRecSegment4D.h.
References full, theProjection, and Z.
Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), DTChamberEfficiencyTask::analyze(), DTSegmentUpdator::calculateT0corr(), chi2(), degreesOfFreedom(), DTSegmentUpdator::fit(), DTChamberEfficiencyTask::getBestSegment(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackerMuonHitExtractor::getMuonHits(), DTChamberEfficiencyTask::interpolate(), DTChamberEfficiencyTask::isGoodSegment(), MuonResidualsFromTrack::MuonResidualsFromTrack(), DTSegmentSelector::operator()(), operator<<(), MuonTrackProducer::produce(), recHits(), MuonTrackDT2ChamberResidual::setSegmentResidual(), StateSegmentMatcher::StateSegmentMatcher(), DTSegmentUpdator::update(), and zSegment().
|
inlineoverridevirtual |
Local direction in Chamber frame.
Implements RecSegment.
Definition at line 65 of file DTRecSegment4D.h.
References chi2(), degreesOfFreedom(), localDirectionError(), and theDirection.
Referenced by DTSegment4DQuality::analyze(), FWDTSegmentProxyBuilder::buildViewType(), DTRecHitSegmentResidual::compute(), DTCalibValidation::compute(), DTTrigGeomUtils::computeSCCoordinates(), DTSegmentSelector::operator()(), operator<<(), DTCombinatorialPatternReco4D::segmentSpecialZed(), DTResidualCalibration::segmentToWireDistance(), and DTSegmentUpdator::update().
|
overridevirtual |
Local direction error in the Chamber frame.
Implements RecSegment.
Definition at line 192 of file DTRecSegment4D.cc.
References theCovMatrix.
Referenced by DTSegment4DQuality::analyze(), and localDirection().
|
inlineoverridevirtual |
Local position in Chamber frame.
Implements TrackingRecHit.
Definition at line 59 of file DTRecSegment4D.h.
References localPositionError(), and thePosition.
Referenced by DTSegment4DQuality::analyze(), DTChamberEfficiencyTask::analyze(), FWDTSegmentProxyBuilder::buildViewType(), DTRecHitSegmentResidual::compute(), DTCalibValidation::compute(), DTTrigGeomUtils::computeSCCoordinates(), DTChamberEfficiencyTask::interpolate(), operator<<(), DTCombinatorialPatternReco4D::segmentSpecialZed(), DTResidualCalibration::segmentToWireDistance(), and DTSegmentUpdator::update().
|
overridevirtual |
Local position error in Chamber frame.
Implements TrackingRecHit.
Definition at line 187 of file DTRecSegment4D.cc.
References theCovMatrix.
Referenced by DTSegment4DQuality::analyze(), and localPosition().
|
overridevirtual |
Parameters of the segment, for the track fit. For a 4D segment: (dx/dy,dy/dz,x,y) For a 2D, phi-only segment: (dx/dz,x) For a 2D, Z-only segment: (dy/dz,y)
Implements TrackingRecHit.
Definition at line 101 of file DTRecSegment4D.cc.
References dimension(), phi, mps_fire::result, theDirection, thePosition, theProjection, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::z(), and Z.
Referenced by clone(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties(), and StateSegmentMatcher::StateSegmentMatcher().
|
overridevirtual |
Covariance matrix fo parameters()
Implements TrackingRecHit.
Definition at line 126 of file DTRecSegment4D.cc.
References dimension(), phi, mps_fire::result, theCovMatrix, theProjection, and Z.
Referenced by clone(), and StateSegmentMatcher::StateSegmentMatcher().
|
inline |
The superPhi segment: 0 if no phi projection available.
Definition at line 96 of file DTRecSegment4D.h.
References hasPhi(), and thePhiSeg.
Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), SegmentTrackAnalyzer::analyze(), DTSegment4DQuality::analyze(), FWDTSegmentProxyBuilder::buildViewType(), DTSegmentUpdator::calculateT0corr(), DTCalibValidation::compute(), DTSegmentUpdator::fit(), DTChamberEfficiencyTask::getBestSegment(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackerMuonHitExtractor::getMuonHits(), DTChamberEfficiencyTask::isGoodSegment(), DTSegmentSelector::operator()(), operator<<(), MuonTrackProducer::produce(), recHits(), DTCombinatorialPatternReco4D::segmentSpecialZed(), MuonTrackDT13ChamberResidual::setSegmentResidual(), CosmicMuonTrajectoryBuilder::t0(), and DTSegmentUpdator::update().
|
inlineprivate |
|
overridevirtual |
The projection matrix relates the trajectory state parameters to the segment parameters().
Implements TrackingRecHit.
Definition at line 174 of file DTRecSegment4D.cc.
References dimension(), phi, the2DPhiProjMatrix, the2DZProjMatrix, the4DProjectionMatrix, theProjection, and Z.
Referenced by clone().
|
overridevirtual |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 260 of file DTRecSegment4D.cc.
References hasPhi(), hasZed(), phiSegment(), and zSegment().
Referenced by dimension(), and DynamicTruncation::updateWithDThits().
|
overridevirtual |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 271 of file DTRecSegment4D.cc.
References hasPhi(), hasZed(), phiSegment(), and zSegment().
|
inline |
Set covariance matrix.
Definition at line 112 of file DTRecSegment4D.h.
References chamberId(), and theCovMatrix.
Referenced by DTSegmentUpdator::fit().
|
private |
Definition at line 213 of file DTRecSegment4D.cc.
References DTRecSegment2D::parametersError(), theCovMatrix, theZedSeg, and PV3DBase< T, PVType, FrameType >::z().
Referenced by DTRecSegment4D(), and DTSegmentUpdator::fit().
|
inline |
Set direction.
Definition at line 109 of file DTRecSegment4D.h.
References dir, and theDirection.
Referenced by DTSegmentUpdator::fit().
|
inline |
Set position.
Definition at line 106 of file DTRecSegment4D.h.
References thePosition.
Referenced by DTSegmentUpdator::fit().
|
inline |
The Z segment: 0 if not zed projection available.
Definition at line 101 of file DTRecSegment4D.h.
References hasZed(), and theZedSeg.
Referenced by DTSegment4DQuality::analyze(), FWDTSegmentProxyBuilder::buildViewType(), DTSegmentUpdator::calculateT0corr(), DTCalibValidation::compute(), DTSegmentUpdator::fit(), DTChamberEfficiencyTask::getBestSegment(), MuonAssociatorByHitsHelper::getMatchedIds(), DTChamberEfficiencyTask::isGoodSegment(), DTSegmentSelector::operator()(), operator<<(), recHits(), DTCombinatorialPatternReco4D::segmentSpecialZed(), and DTSegmentUpdator::update().
|
inlineprivate |
|
friend |
Definition at line 26 of file DTRecSegment4D.h.
|
private |
Definition at line 140 of file DTRecSegment4D.h.
Referenced by DTRecSegment4D(), localDirectionError(), localPositionError(), parametersError(), setCovMatrix(), and setCovMatrixForZed().
|
private |
Definition at line 145 of file DTRecSegment4D.h.
Referenced by dimension().
|
private |
Definition at line 129 of file DTRecSegment4D.h.
Referenced by DTRecSegment4D(), localDirection(), parameters(), and setDirection().
|
private |
Definition at line 142 of file DTRecSegment4D.h.
Referenced by chi2(), degreesOfFreedom(), DTRecSegment4D(), and phiSegment().
|
private |
Definition at line 128 of file DTRecSegment4D.h.
Referenced by DTRecSegment4D(), localPosition(), parameters(), and setPosition().
|
private |
Definition at line 120 of file DTRecSegment4D.h.
Referenced by hasPhi(), hasZed(), parameters(), parametersError(), and projectionMatrix().
|
private |
Definition at line 143 of file DTRecSegment4D.h.
Referenced by chi2(), degreesOfFreedom(), setCovMatrixForZed(), and zSegment().