#include <VectorHit.h>
Public Types | |
typedef OmniClusterRef::Phase2Cluster1DRef | ClusterRef |
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 } |
Public Member Functions | |
float | chi2 () const |
VectorHit * | clone () const override |
RecHitPointer | cloneSH () const override |
ClusterRef | cluster () const |
const AlgebraicSymMatrix44 & | covMatrix () const |
float | curvature () const |
float | curvatureError () const |
int | dimension () const override |
OmniClusterRef const & | firstClusterRef () const override |
void | getKfComponents (KfComponentsHolder &holder) const override |
void | getKfComponents4D (KfComponentsHolder &holder) const |
Global3DVector | globalDirection () const |
Global3DVector | globalDirectionVH () const |
bool | hasPositionAndError () const override |
to be redefined by daughter class More... | |
bool | isPhase2 () const override |
virtual LocalVector | localDirection () const |
LocalError | localDirectionError () const |
LocalPoint | localPosition () const override |
LocalError | localPositionError () const override |
ClusterRef | lowerCluster () const |
"lower" is logical, not geometrically lower; in pixel-strip modules the "lower" is always a pixel More... | |
const OmniClusterRef | lowerClusterRef () const |
Global3DPoint | lowerGlobalPos () const |
GlobalError | lowerGlobalPosErr () const |
float | momentum (float magField) const |
float | phi () const |
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... | |
bool | sharesClusters (VectorHit const &other, SharedInputType what) const |
bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const override |
float | theta () const |
float | transverseMomentum (float magField) const |
ClusterRef | upperCluster () const |
const OmniClusterRef | upperClusterRef () const |
Global3DPoint | upperGlobalPos () const |
GlobalError | upperGlobalPosErr () const |
VectorHit () | |
VectorHit (const GeomDet &idet, const LocalPoint &posInner, const LocalVector &dir, const AlgebraicSymMatrix44 &covMatrix, const float chi2, OmniClusterRef const &lower, OmniClusterRef const &upper, const float curvature, const float curvatureError, const float phi) | |
VectorHit (const GeomDet &idet, const VectorHit2D &vh2Dzx, const VectorHit2D &vh2Dzy, OmniClusterRef const &lower, OmniClusterRef const &upper, const float curvature, const float curvatureError, const float phi) | |
~VectorHit () override=default | |
Public Member Functions inherited from BaseTrackerRecHit | |
BaseTrackerRecHit () | |
BaseTrackerRecHit (const GeomDet &idet, trackerHitRTTI::RTTI rt) | |
BaseTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt) | |
BaseTrackerRecHit (DetId id, trackerHitRTTI::RTTI rt) | |
virtual float | clusterProbability () const |
cluster probability, overloaded by pixel rechits. More... | |
float | errorGlobalR () const final |
float | errorGlobalRPhi () const final |
float | errorGlobalZ () const final |
void | getKfComponents1D (KfComponentsHolder &holder) const |
void | getKfComponents2D (KfComponentsHolder &holder) const |
GlobalPoint | globalPosition () const final |
GlobalError | globalPositionError () const final |
TrackingRecHitGlobalState | globalState () const |
BaseTrackerRecHit const * | hit () const final |
bool | isMatched () const |
bool | isMulti () const |
virtual bool | isPixel () const |
bool | isProjected () const |
bool | isProjMono () const |
bool | isProjStereo () const |
bool | isSingle () const |
const LocalError & | localPositionErrorFast () const |
const LocalPoint & | localPositionFast () const |
AlgebraicVector | parameters () const override |
AlgebraicSymMatrix | parametersError () const override |
AlgebraicMatrix | projectionMatrix () const override |
trackerHitRTTI::RTTI | rtti () const |
bool | sameDetModule (TrackingRecHit const &hit) const |
const Surface * | surface () const final |
~BaseTrackerRecHit () override | |
Public Member Functions inherited from TrackingRecHit | |
virtual bool | canImproveWithTrack () const |
RecHitPointer | cloneForFit (const GeomDet &idet) const |
virtual TrackingRecHit * | cloneHit () const |
const GeomDet * | det () const |
virtual const GeomDetUnit * | detUnit () const |
DetId | geographicalId () const |
unsigned int | getRTTI () const |
Type | getType () 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) |
TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh) | |
TrackingRecHit (const GeomDet &idet, Type type=valid) | |
TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid) | |
TrackingRecHit (DetId id, Type type=valid) | |
TrackingRecHit (DetId id, unsigned int rt, Type type=valid) | |
TrackingRecHit (id_type id=0, Type type=valid) | |
virtual ConstRecHitContainer | transientHits () const |
Type | type () const |
virtual float | weight () const |
virtual | ~TrackingRecHit () |
Static Public Member Functions | |
static Global3DPoint | phase2clusterGlobalPos (const PixelGeomDetUnit *geomDet, ClusterRef cluster) |
static GlobalError | phase2clusterGlobalPosErr (const PixelGeomDetUnit *geomDet) |
Private Member Functions | |
VectorHit * | clone_ (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override |
RecHitPointer | cloneSH_ (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override |
Private Attributes | |
float | theChi2 |
AlgebraicSymMatrix44 | theCovMatrix |
float | theCurvature |
float | theCurvatureError |
LocalVector | theDirection |
OmniClusterRef | theLowerCluster |
float | thePhi |
LocalPoint | thePosition |
OmniClusterRef | theUpperCluster |
Static Private Attributes | |
static constexpr int | theDimension = 4 |
Additional Inherited Members | |
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) |
Protected Attributes inherited from BaseTrackerRecHit | |
LocalError | err_ |
LocalPoint | pos_ |
unsigned int | qualWord_ |
4-parameter RecHits for Phase2 Tracker (x,y, dx/dz, dy/dz)
Definition at line 28 of file VectorHit.h.
Definition at line 30 of file VectorHit.h.
|
inline |
Definition at line 32 of file VectorHit.h.
References TrackingRecHit::bad, and TrackingRecHit::setType().
Referenced by clone().
VectorHit::VectorHit | ( | const GeomDet & | idet, |
const LocalPoint & | posInner, | ||
const LocalVector & | dir, | ||
const AlgebraicSymMatrix44 & | covMatrix, | ||
const float | chi2, | ||
OmniClusterRef const & | lower, | ||
OmniClusterRef const & | upper, | ||
const float | curvature, | ||
const float | curvatureError, | ||
const float | phi | ||
) |
Definition at line 5 of file VectorHit.cc.
VectorHit::VectorHit | ( | const GeomDet & | idet, |
const VectorHit2D & | vh2Dzx, | ||
const VectorHit2D & | vh2Dzy, | ||
OmniClusterRef const & | lower, | ||
OmniClusterRef const & | upper, | ||
const float | curvature, | ||
const float | curvatureError, | ||
const float | phi | ||
) |
Definition at line 26 of file VectorHit.cc.
References VectorHit2D::chi2(), VectorHit2D::covMatrix(), theChi2, and theCovMatrix.
|
overridedefault |
|
inline |
|
inlineoverridevirtual |
|
inlineoverrideprivatevirtual |
Reimplemented from TrackingRecHit.
Definition at line 120 of file VectorHit.h.
|
inlineoverridevirtual |
Reimplemented from TrackingRecHit.
Definition at line 57 of file VectorHit.h.
|
inlineoverrideprivatevirtual |
Reimplemented from TrackingRecHit.
Definition at line 123 of file VectorHit.h.
References TkCloner::makeShared().
|
inline |
Definition at line 108 of file VectorHit.h.
References OmniClusterRef::cluster_phase2OT(), and theLowerCluster.
Referenced by track_associator::hitsToClusterRefs(), and phase2clusterGlobalPos().
const AlgebraicSymMatrix44 & VectorHit::covMatrix | ( | ) | const |
Definition at line 171 of file VectorHit.cc.
References theCovMatrix.
Referenced by SeedingOTEDProducer::buildInitialTSOS().
|
inline |
|
inline |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements BaseTrackerRecHit.
Definition at line 107 of file VectorHit.h.
References theLowerCluster.
Referenced by track_associator::hitsToClusterRefs().
|
inlineoverridevirtual |
Implements BaseTrackerRecHit.
Definition at line 70 of file VectorHit.h.
References getKfComponents4D().
void VectorHit::getKfComponents4D | ( | KfComponentsHolder & | holder | ) | const |
Definition at line 85 of file VectorHit.cc.
References KfComponentsHolder::errors(), mps_fire::i, KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), packedPFCandidateRefMixer_cfi::pf, KfComponentsHolder::projFunc(), theCovMatrix, theDimension, theDirection, thePosition, KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by getKfComponents().
Global3DVector VectorHit::globalDirection | ( | ) | const |
Definition at line 152 of file VectorHit.cc.
References TrackingRecHit::det(), localDirection(), and BaseTrackerRecHit::surface().
Referenced by operator<<(), and theta().
Global3DVector VectorHit::globalDirectionVH | ( | ) | const |
Definition at line 145 of file VectorHit.cc.
References TrackingRecHit::det(), g, GeomDet::surface(), theDirection, Surface::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
inlineoverridevirtual |
to be redefined by daughter class
Reimplemented from BaseTrackerRecHit.
Definition at line 64 of file VectorHit.h.
References TrackingRecHit::det().
|
inlineoverridevirtual |
Reimplemented from BaseTrackerRecHit.
Definition at line 104 of file VectorHit.h.
|
inlinevirtual |
Definition at line 75 of file VectorHit.h.
References theDirection.
Referenced by SeedingOTEDProducer::buildInitialTSOS(), globalDirection(), and operator<<().
LocalError VectorHit::localDirectionError | ( | ) | const |
Definition at line 167 of file VectorHit.cc.
References theCovMatrix.
|
inlineoverridevirtual |
Reimplemented from BaseTrackerRecHit.
Definition at line 74 of file VectorHit.h.
References thePosition.
Referenced by SeedingOTEDProducer::buildInitialTSOS(), and operator<<().
|
overridevirtual |
Reimplemented from BaseTrackerRecHit.
Definition at line 163 of file VectorHit.cc.
References theCovMatrix.
|
inline |
"lower" is logical, not geometrically lower; in pixel-strip modules the "lower" is always a pixel
Definition at line 91 of file VectorHit.h.
References OmniClusterRef::cluster_phase2OT(), and theLowerCluster.
Referenced by lowerGlobalPos(), and SeedClusterRemoverPhase2::process().
|
inline |
Definition at line 93 of file VectorHit.h.
References theLowerCluster.
Referenced by ctfseeding::HitExtractorSTRP::cleanedOfClusters(), sharesClusters(), and sharesInput().
Global3DPoint VectorHit::lowerGlobalPos | ( | ) | const |
Definition at line 102 of file VectorHit.cc.
References TrackingRecHit::det(), lowerCluster(), StackGeomDet::lowerDet(), and phase2clusterGlobalPos().
Referenced by operator<<().
GlobalError VectorHit::lowerGlobalPosErr | ( | ) | const |
Definition at line 123 of file VectorHit.cc.
References TrackingRecHit::det(), StackGeomDet::lowerDet(), and phase2clusterGlobalPosErr().
Referenced by SeedingOTEDProducer::computeGlobalThetaError().
float VectorHit::momentum | ( | float | magField | ) | const |
Definition at line 161 of file VectorHit.cc.
References funct::sin(), theta(), and transverseMomentum().
Referenced by SeedingOTEDProducer::buildInitialTSOS().
|
static |
Definition at line 114 of file VectorHit.cc.
References cluster(), runTauDisplay::gp, PixelTopology::localX(), PixelTopology::localY(), PixelGeomDetUnit::specificTopology(), GeomDet::surface(), and Surface::toGlobal().
Referenced by VectorHitBuilderAlgorithm::buildVectorHit(), lowerGlobalPos(), and upperGlobalPos().
|
static |
Definition at line 135 of file VectorHit.cc.
References PixelTopology::pitch(), funct::pow(), PixelGeomDetUnit::specificTopology(), GeomDet::surface(), and HcalDetIdTransform::transform().
Referenced by VectorHitBuilderAlgorithm::buildVectorHit(), lowerGlobalPosErr(), and upperGlobalPosErr().
|
inline |
Definition at line 85 of file VectorHit.h.
References thePhi.
Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().
|
overridevirtual |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 185 of file VectorHit.cc.
|
overridevirtual |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 188 of file VectorHit.cc.
bool VectorHit::sharesClusters | ( | VectorHit const & | other, |
SharedInputType | what | ||
) | const |
Definition at line 78 of file VectorHit.cc.
References TrackingRecHit::all, lowerClusterRef(), pileupCalc::upper, and upperClusterRef().
Referenced by sharesInput().
|
overridevirtual |
Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.
Reimplemented from TrackingRecHit.
Definition at line 58 of file VectorHit.cc.
References TrackingRecHit::all, TrackingRecHit::geographicalId(), trackerHitRTTI::isVector(), lowerClusterRef(), trackingPlots::other, BaseTrackerRecHit::sameDetModule(), sharesClusters(), and upperClusterRef().
float VectorHit::theta | ( | ) | const |
Definition at line 154 of file VectorHit.cc.
References globalDirection(), and PV3DBase< T, PVType, FrameType >::theta().
Referenced by momentum(), and Tau.Tau::zImpact().
float VectorHit::transverseMomentum | ( | float | magField | ) | const |
Definition at line 156 of file VectorHit.cc.
References MillePedeFileConverter_cfg::e, F(), and theCurvature.
Referenced by SeedingOTEDProducer::buildInitialTSOS(), and momentum().
|
inline |
Definition at line 92 of file VectorHit.h.
References OmniClusterRef::cluster_phase2OT(), and theUpperCluster.
Referenced by SeedClusterRemoverPhase2::process(), and upperGlobalPos().
|
inline |
Definition at line 94 of file VectorHit.h.
References theUpperCluster.
Referenced by ctfseeding::HitExtractorSTRP::cleanedOfClusters(), sharesClusters(), and sharesInput().
Global3DPoint VectorHit::upperGlobalPos | ( | ) | const |
Definition at line 108 of file VectorHit.cc.
References TrackingRecHit::det(), phase2clusterGlobalPos(), upperCluster(), and StackGeomDet::upperDet().
Referenced by operator<<().
GlobalError VectorHit::upperGlobalPosErr | ( | ) | const |
Definition at line 129 of file VectorHit.cc.
References TrackingRecHit::det(), phase2clusterGlobalPosErr(), and StackGeomDet::upperDet().
|
private |
Definition at line 138 of file VectorHit.h.
Referenced by chi2(), and VectorHit().
|
private |
Definition at line 137 of file VectorHit.h.
Referenced by covMatrix(), getKfComponents4D(), localDirectionError(), localPositionError(), and VectorHit().
|
private |
Definition at line 142 of file VectorHit.h.
Referenced by curvature(), and transverseMomentum().
|
private |
Definition at line 143 of file VectorHit.h.
Referenced by curvatureError().
|
staticconstexprprivate |
Definition at line 139 of file VectorHit.h.
Referenced by dimension(), and getKfComponents4D().
|
private |
Definition at line 128 of file VectorHit.h.
Referenced by getKfComponents4D(), globalDirectionVH(), and localDirection().
|
private |
Definition at line 140 of file VectorHit.h.
Referenced by cluster(), firstClusterRef(), lowerCluster(), and lowerClusterRef().
|
private |
Definition at line 144 of file VectorHit.h.
Referenced by phi().
|
private |
Definition at line 127 of file VectorHit.h.
Referenced by getKfComponents4D(), and localPosition().
|
private |
Definition at line 141 of file VectorHit.h.
Referenced by upperCluster(), and upperClusterRef().