#include <TValidTrackingRecHit.h>
Public Types | |
typedef std::vector < ConstRecHitPointer > | ConstRecHitContainer |
typedef ConstReferenceCountingPointer < TransientTrackingRecHit > | ConstRecHitPointer |
typedef std::vector < ConstRecHitPointer > | RecHitContainer |
typedef ReferenceCountingPointer < TransientTrackingRecHit > | RecHitPointer |
Public Member Functions | |
virtual bool | canImproveWithTrack () const |
TrackingRecHit * | cloneHit () const |
virtual float | clusterProbability () const |
cluster probability, overloaded by pixel rechits. | |
virtual const GeomDet * | det () const GCC11_FINAL |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. | |
float | errorGlobalR () const GCC11_FINAL |
float | errorGlobalRPhi () const GCC11_FINAL |
float | errorGlobalZ () const GCC11_FINAL |
virtual GlobalPoint | globalPosition () const GCC11_FINAL |
GlobalError | globalPositionError () const GCC11_FINAL |
TrackingRecHitGlobalState | globalState () const |
virtual const Surface * | surface () const GCC11_FINAL |
TValidTrackingRecHit (const GeomDet *geom) | |
template<typename... Args> | |
TValidTrackingRecHit (const GeomDet *geom, Args &&...args) | |
Private Member Functions | |
virtual TValidTrackingRecHit * | clone () const =0 |
Private Attributes | |
const GeomDet * | geom_ |
only for valid hits
Definition at line 15 of file TValidTrackingRecHit.h.
typedef std::vector<ConstRecHitPointer> TValidTrackingRecHit::ConstRecHitContainer |
Reimplemented from TransientTrackingRecHit.
Definition at line 21 of file TValidTrackingRecHit.h.
typedef ConstReferenceCountingPointer<TransientTrackingRecHit> TValidTrackingRecHit::ConstRecHitPointer |
Reimplemented from TransientTrackingRecHit.
Definition at line 19 of file TValidTrackingRecHit.h.
typedef std::vector<ConstRecHitPointer> TValidTrackingRecHit::RecHitContainer |
Reimplemented from TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 20 of file TValidTrackingRecHit.h.
Reimplemented from TransientTrackingRecHit.
Definition at line 18 of file TValidTrackingRecHit.h.
TValidTrackingRecHit::TValidTrackingRecHit | ( | const GeomDet * | geom | ) | [inline] |
Definition at line 23 of file TValidTrackingRecHit.h.
: TransientTrackingRecHit(geom->geographicalId()), geom_(geom) {}
TValidTrackingRecHit::TValidTrackingRecHit | ( | const GeomDet * | geom, |
Args &&... | args | ||
) | [inline] |
Definition at line 28 of file TValidTrackingRecHit.h.
: TransientTrackingRecHit(std::forward<Args>(args)...), geom_(geom) {}
virtual bool TValidTrackingRecHit::canImproveWithTrack | ( | ) | const [inline, virtual] |
Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy. In order to avoid redundent copies one should call canImproveWithTrack() before calling clone( const TrajectoryStateOnSurface&).
Reimplemented from TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GenericTransientTrackingRecHit.
Definition at line 68 of file TValidTrackingRecHit.h.
{return false;}
virtual TValidTrackingRecHit* TValidTrackingRecHit::clone | ( | ) | const [private, pure virtual] |
Implements TransientTrackingRecHit.
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, MuonTransientTrackingRecHit, KFBasedPixelFitter::GCC11_FINAL, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GenericTransientTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
TrackingRecHit* TValidTrackingRecHit::cloneHit | ( | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GenericTransientTrackingRecHit, and GCC11_FINAL< T, TOPO >.
Definition at line 32 of file TValidTrackingRecHit.h.
References TrackingRecHit::clone(), and TransientTrackingRecHit::hit().
virtual float TValidTrackingRecHit::clusterProbability | ( | ) | const [inline, virtual] |
cluster probability, overloaded by pixel rechits.
Reimplemented from TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 72 of file TValidTrackingRecHit.h.
{ return 1.f; }
virtual const GeomDet* TValidTrackingRecHit::det | ( | ) | const [inline, virtual] |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 35 of file TValidTrackingRecHit.h.
References geom_.
Referenced by GCC11_FINAL< T, TOPO >::getKfComponents(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), GCC11_FINAL< T, TOPO >::parametersError(), MuonTransientTrackingRecHit::parametersError(), surface(), and MuonTransientTrackingRecHit::transientHits().
{return geom_;}
float TValidTrackingRecHit::errorGlobalR | ( | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 44 of file TValidTrackingRecHit.h.
References globalPosition(), globalPositionError(), and mathSSE::sqrt().
{ return std::sqrt(globalPositionError().rerr(globalPosition()));}
float TValidTrackingRecHit::errorGlobalRPhi | ( | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 46 of file TValidTrackingRecHit.h.
References globalPosition(), globalPositionError(), PV3DBase< T, PVType, FrameType >::perp(), and mathSSE::sqrt().
{ return globalPosition().perp()*sqrt(globalPositionError().phierr(globalPosition())); }
float TValidTrackingRecHit::errorGlobalZ | ( | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 45 of file TValidTrackingRecHit.h.
References globalPositionError(), and mathSSE::sqrt().
{ return std::sqrt(globalPositionError().czz()); }
virtual GlobalPoint TValidTrackingRecHit::globalPosition | ( | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 39 of file TValidTrackingRecHit.h.
References TrackingRecHit::localPosition(), surface(), and Surface::toGlobal().
Referenced by errorGlobalR(), errorGlobalRPhi(), and globalState().
{ return surface()->toGlobal(localPosition()); }
GlobalError TValidTrackingRecHit::globalPositionError | ( | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 43 of file TValidTrackingRecHit.h.
References TrackingRecHit::localPositionError(), surface(), and ErrorFrameTransformer::transform().
Referenced by errorGlobalR(), errorGlobalRPhi(), and errorGlobalZ().
{ return ErrorFrameTransformer().transform( localPositionError(), *surface() );}
TrackingRecHitGlobalState TValidTrackingRecHit::globalState | ( | ) | const [inline] |
Definition at line 49 of file TValidTrackingRecHit.h.
References GlobalErrorBase< T, ErrorWeightType >::czz(), globalPosition(), TrackingRecHit::localPositionError(), GlobalErrorBase< T, ErrorWeightType >::phierr(), alignCSCRings::r, GlobalErrorBase< T, ErrorWeightType >::rerr(), mathSSE::sqrt(), surface(), and create_public_pileup_plots::transform.
{ GlobalError globalError = ErrorFrameTransformer::transform( localPositionError(), *surface() ); auto gp = globalPosition(); float r = gp.perp(); float errorRPhi = r*std::sqrt(float(globalError.phierr(gp))); float errorR = std::sqrt(float(globalError.rerr(gp))); float errorZ = std::sqrt(float(globalError.czz())); return (TrackingRecHitGlobalState){ gp.basicVector(), r, gp.barePhi(), errorR,errorZ,errorRPhi }; }
virtual const Surface* TValidTrackingRecHit::surface | ( | ) | const [inline, virtual] |
Reimplemented from TransientTrackingRecHit.
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 36 of file TValidTrackingRecHit.h.
References det(), and GeomDet::surface().
Referenced by MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), globalPosition(), globalPositionError(), and globalState().
const GeomDet* TValidTrackingRecHit::geom_ [private] |
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 76 of file TValidTrackingRecHit.h.
Referenced by det().