#include <CSCSegment.h>
Public Member Functions | |
double | chi2 () const override |
Chi2 of the segment fit. More... | |
CSCSegment * | clone () const override |
CSCDetId | cscDetId () const |
CSCSegment () | |
Default constructor. More... | |
CSCSegment (const std::vector< const CSCRecHit2D * > &proto_segment, LocalPoint origin, LocalVector direction, const AlgebraicSymMatrix &errors, double chi2) | |
Constructor. More... | |
int | degreesOfFreedom () const override |
Degrees of freedom of the segment fit. More... | |
int | dimension () const override |
Dimension (in parameter space) More... | |
const std::vector< CSCSegment > & | duplicateSegments () const |
bool | isME11a_duplicate () const |
LocalVector | localDirection () const override |
Local direction. More... | |
LocalError | localDirectionError () const override |
Error on the local direction. More... | |
LocalPoint | localPosition () const override |
LocalError | localPositionError () const override |
int | nRecHits () const |
AlgebraicVector | parameters () const override |
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y ) More... | |
AlgebraicSymMatrix | parametersError () const override |
Covariance matrix of parameters() More... | |
void | print () const |
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 | setDuplicateSegments (std::vector< CSCSegment * > &duplicates) |
bool | sharesRecHits (const CSCSegment &anotherSegment, CSCRecHit2D::SharedInputType sharesInput) const |
bool | sharesRecHits (const CSCSegment &anotherSegment) const |
const std::vector< CSCRecHit2D > & | specificRecHits () const |
bool | testSharesAllInSpecificRecHits (const std::vector< CSCRecHit2D > &specificRecHits_1, const std::vector< CSCRecHit2D > &specificRecHits_2, CSCRecHit2D::SharedInputType) const |
float | time () const |
~CSCSegment () 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 Attributes | |
bool | aME11a_duplicate |
double | theChi2 |
AlgebraicSymMatrix | theCovMatrix |
std::vector< CSCRecHit2D > | theCSCRecHits |
std::vector< CSCSegment > | theDuplicateSegments |
LocalVector | theLocalDirection |
LocalPoint | theOrigin |
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) |
Describes a reconstructed track segment in the 6 layers of a CSC chamber. This is 4-dimensional since it has an origin (x,y) and a direction (x,y) in the local coordinate system of the chamber.
Definition at line 21 of file CSCSegment.h.
|
inline |
Default constructor.
Definition at line 26 of file CSCSegment.h.
References chi2(), and ~CSCSegment().
Referenced by clone().
CSCSegment::CSCSegment | ( | const std::vector< const CSCRecHit2D * > & | proto_segment, |
LocalPoint | origin, | ||
LocalVector | direction, | ||
const AlgebraicSymMatrix & | errors, | ||
double | chi2 | ||
) |
Constructor.
Definition at line 18 of file CSCSegment.cc.
References mps_fire::i, and theCSCRecHits.
|
override |
|
inlineoverridevirtual |
Chi2 of the segment fit.
Implements RecSegment.
Definition at line 57 of file CSCSegment.h.
References theChi2.
Referenced by CSCSegAlgoST::buildSegments(), GEMCSCSegAlgoRR::buildSegments(), CSCSegment(), CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), operator<<(), and MuonTrackCSCChamberResidual::setSegmentResidual().
|
inlineoverridevirtual |
|
inline |
Definition at line 69 of file CSCSegment.h.
References TrackingRecHit::geographicalId(), and setDuplicateSegments().
Referenced by FWCSCSegmentProxyBuilder::build(), GEMCSCSegAlgoRR::buildSegments(), DynamicTruncation::chooseLayers(), DynamicTruncation::fillDYTInfos(), GEMCSCSegment::GEMCSCSegment(), and DynamicTruncation::preliminaryFit().
|
inlineoverridevirtual |
Degrees of freedom of the segment fit.
Implements RecSegment.
Definition at line 61 of file CSCSegment.h.
References nRecHits().
Referenced by CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), operator<<(), and MuonTrackCSCChamberResidual::setSegmentResidual().
|
inlineoverridevirtual |
|
inline |
Definition at line 75 of file CSCSegment.h.
References print(), TrackingRecHit::sharesInput(), sharesRecHits(), testSharesAllInSpecificRecHits(), theDuplicateSegments, and time().
Referenced by operator<<().
|
inline |
Definition at line 73 of file CSCSegment.h.
References theDuplicateSegments.
|
inlineoverridevirtual |
Local direction.
Implements RecSegment.
Definition at line 41 of file CSCSegment.h.
References localDirectionError(), parameters(), and theLocalDirection.
Referenced by FWCSCSegmentProxyBuilder::build(), GEMCSCSegAlgoRR::chainHitsToSegm(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), operator<<(), and CSCSegmentValidation::plotResolution().
|
overridevirtual |
Error on the local direction.
Implements RecSegment.
Definition at line 51 of file CSCSegment.cc.
References theCovMatrix.
Referenced by CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), localDirection(), operator<<(), and CSCSegmentValidation::plotResolution().
|
inlineoverridevirtual |
Implements TrackingRecHit.
Definition at line 38 of file CSCSegment.h.
References localPositionError(), and theOrigin.
Referenced by L1MuonRecoTreeProducer::analyze(), FWCSCSegmentProxyBuilder::build(), GEMCSCSegAlgoRR::chainHitsToSegm(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), operator<<(), and CSCSegmentValidation::plotResolution().
|
overridevirtual |
Implements TrackingRecHit.
Definition at line 47 of file CSCSegment.cc.
References theCovMatrix.
Referenced by CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), localPosition(), operator<<(), and CSCSegmentValidation::plotResolution().
|
inline |
Definition at line 67 of file CSCSegment.h.
References theCSCRecHits.
Referenced by CSCSegAlgoST::buildSegments(), CSCSegAlgoDF::buildSegments(), degreesOfFreedom(), and MuonTrackCSCChamberResidual::setSegmentResidual().
|
overridevirtual |
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
Implements TrackingRecHit.
Definition at line 56 of file CSCSegment.cc.
References mps_fire::result, theLocalDirection, theOrigin, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), localDirection(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties(), and StateSegmentMatcher::StateSegmentMatcher().
|
inlineoverridevirtual |
Covariance matrix of parameters()
Implements TrackingRecHit.
Definition at line 48 of file CSCSegment.h.
References projectionMatrix(), recHits(), and theCovMatrix.
Referenced by CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), and StateSegmentMatcher::StateSegmentMatcher().
void CSCSegment::print | ( | void | ) | const |
Definition at line 186 of file CSCSegment.cc.
References gather_cfg::cout.
Referenced by duplicateSegments().
|
overridevirtual |
The projection matrix relates the trajectory state parameters to the segment parameters().
Implements TrackingRecHit.
Definition at line 82 of file CSCSegment.cc.
References theProjectionMatrix.
Referenced by parametersError().
|
overridevirtual |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 30 of file CSCSegment.cc.
References theCSCRecHits.
Referenced by MuonAssociatorByHitsHelper::getMatchedIds(), TrackerMuonHitExtractor::getMuonHits(), parametersError(), and MuonTrackProducer::produce().
|
overridevirtual |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 38 of file CSCSegment.cc.
References theCSCRecHits.
void CSCSegment::setDuplicateSegments | ( | std::vector< CSCSegment * > & | duplicates | ) |
Definition at line 86 of file CSCSegment.cc.
References mps_fire::i, and theDuplicateSegments.
Referenced by cscDetId().
bool CSCSegment::sharesRecHits | ( | const CSCSegment & | anotherSegment, |
CSCRecHit2D::SharedInputType | sharesInput | ||
) | const |
Definition at line 133 of file CSCSegment.cc.
References TrackingRecHit::sharesInput(), specificRecHits(), testSharesAllInSpecificRecHits(), and theCSCRecHits.
Referenced by duplicateSegments().
bool CSCSegment::sharesRecHits | ( | const CSCSegment & | anotherSegment | ) | const |
Definition at line 138 of file CSCSegment.cc.
References CSCRecHit2D::someStrips, CSCRecHit2D::someWires, specificRecHits(), testSharesAllInSpecificRecHits(), and theCSCRecHits.
|
inline |
Definition at line 65 of file CSCSegment.h.
References theCSCRecHits.
Referenced by GEMCSCSegAlgoRR::buildSegments(), GEMCSCSegAlgoRR::chainHitsToSegm(), GEMCSCSegment::cscRecHits(), CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), GEMCSCSegment::GEMCSCSegment(), GEMCSCSegment::nRecHits(), operator<<(), GEMCSCSegment::recHits(), sharesRecHits(), and DynamicTruncation::updateWithCSChits().
bool CSCSegment::testSharesAllInSpecificRecHits | ( | const std::vector< CSCRecHit2D > & | specificRecHits_1, |
const std::vector< CSCRecHit2D > & | specificRecHits_2, | ||
CSCRecHit2D::SharedInputType | sharesInput | ||
) | const |
Definition at line 95 of file CSCSegment.cc.
Referenced by duplicateSegments(), and sharesRecHits().
float CSCSegment::time | ( | ) | const |
Definition at line 149 of file CSCSegment.cc.
References diffTreeTool::diff, reco::castor::maxDiff(), MTVHistoProducerAlgoForTrackerBlock_cfi::maxHit, N, rpcPointValidation_cfi::recHit, theCSCRecHits, CSCRecHit2D::tpeak(), and CSCRecHit2D::wireTime().
Referenced by CSCSegAlgoST::dumpSegment(), CSCSegAlgoDF::dumpSegment(), CSCSegAlgoSK::dumpSegment(), CSCSegAlgoTC::dumpSegment(), and duplicateSegments().
|
private |
Definition at line 98 of file CSCSegment.h.
|
private |
Definition at line 97 of file CSCSegment.h.
Referenced by chi2().
|
private |
Definition at line 96 of file CSCSegment.h.
Referenced by localDirectionError(), localPositionError(), and parametersError().
|
private |
Definition at line 93 of file CSCSegment.h.
Referenced by CSCSegment(), nRecHits(), recHits(), sharesRecHits(), specificRecHits(), and time().
|
private |
Definition at line 99 of file CSCSegment.h.
Referenced by duplicateSegments(), isME11a_duplicate(), and setDuplicateSegments().
|
private |
Definition at line 95 of file CSCSegment.h.
Referenced by localDirection(), and parameters().
|
private |
Definition at line 94 of file CSCSegment.h.
Referenced by localPosition(), and parameters().