#include <TSiStripMatchedRecHit.h>
Classes | |
struct | DontCloneRecHit |
Dummy struct to pass to the constructor to say 'please don't clone the hit'. More... | |
Public Member Functions | |
virtual bool | canImproveWithTrack () const |
void | clearPersistentHit () |
virtual RecHitPointer | clone (const TrajectoryStateOnSurface &ts) const |
void | clonePersistentHit () |
take ownership of the hit, if it wasn't owned (note: if it was owned, this code will leak it) More... | |
const GeomDetUnit * | detUnit () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
virtual AlgebraicSymMatrix | parametersError () const |
virtual ConstRecHitContainer | transientHits () const |
Composite interface: returns the component hits, if any. More... | |
Public Member Functions inherited from GenericTransientTrackingRecHit | |
virtual int | dimension () const |
virtual const TrackingRecHit * | hit () const |
virtual LocalPoint | localPosition () const |
virtual LocalError | localPositionError () const |
virtual AlgebraicVector | parameters () 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... | |
virtual | ~GenericTransientTrackingRecHit () |
Public Member Functions inherited from TransientTrackingRecHit | |
virtual float | clusterProbability () const |
cluster probability, overloaded by pixel rechits. More... | |
const GeomDet * | det () const |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. More... | |
float | errorGlobalR () const |
float | errorGlobalRPhi () const |
float | errorGlobalZ () const |
virtual GlobalPoint | globalPosition () const |
virtual GlobalError | globalPositionError () const |
virtual const Surface * | surface () const |
TransientTrackingRecHit (const GeomDet *geom=0) | |
TransientTrackingRecHit (const GeomDet *geom, DetId id, Type type=valid) | |
TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit::id_type id, Type type=valid) | |
TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit const &rh) | |
Public Member Functions inherited from TrackingRecHit | |
DetId | geographicalId () const |
unsigned int | getRTTI () const |
Type | getType () const |
virtual bool | hasPositionAndError () const |
to be redefined by daughter class More... | |
bool | isValid () const |
id_type | rawId () 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) | |
TrackingRecHit (DetId id, unsigned int rt, Type type=valid) | |
Type | type () const |
virtual float | weight () const |
virtual | ~TrackingRecHit () |
Public Member Functions inherited from ReferenceCountedPoolAllocated | |
void | addReference () const |
const ReferenceCountedPoolAllocated & | operator= (const ReferenceCountedPoolAllocated &) |
ReferenceCountedPoolAllocated () | |
ReferenceCountedPoolAllocated (const ReferenceCountedPoolAllocated &iRHS) | |
unsigned int | references () const |
void | removeReference () const |
virtual | ~ReferenceCountedPoolAllocated () |
Public Member Functions inherited from BlockWipedPoolAllocated | |
virtual | ~BlockWipedPoolAllocated () |
Static Public Member Functions | |
static RecHitPointer | build (const GeomDet *geom, const TrackingRecHit *rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe=0, bool computeCoarseLocalPosition=false) |
static RecHitPointer | build (const GeomDet *geom, std::auto_ptr< TrackingRecHit > rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe=0, bool computeCoarseLocalPosition=false) |
static void | buildInPlace (std::auto_ptr< TSiStripMatchedRecHit > &memory, const GeomDet *geom, const TrackingRecHit *rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe=0, bool computeCoarseLocalPosition=false) |
Static Public Member Functions inherited from GenericTransientTrackingRecHit | |
static RecHitPointer | build (const GeomDet *geom, const TrackingRecHit *rh) |
Static Public Member Functions inherited from BlockWipedPoolAllocated | |
static BlockWipedAllocator & | allocator (size_t s) |
static void | operator delete (void *p, size_t s) |
static void * | operator new (size_t s, void *p) |
static void * | operator new (size_t s) |
static BlockWipedAllocator::Stat | stat (size_t s) |
static void | usePool () |
Private Member Functions | |
virtual TSiStripMatchedRecHit * | clone () const |
void | ComputeCoarseLocalPosition () |
TSiStripMatchedRecHit (const GeomDet *geom, const TrackingRecHit *rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, bool computeCoarseLocalPosition) | |
TSiStripMatchedRecHit (const GeomDet *geom, std::auto_ptr< TrackingRecHit > rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, bool computeCoarseLocalPosition) | |
TSiStripMatchedRecHit (const GeomDet *geom, const TrackingRecHit *rh, const SiStripRecHitMatcher *matcher, const StripClusterParameterEstimator *cpe, bool computeCoarseLocalPosition, const DontCloneRecHit &) | |
Private Attributes | |
const StripClusterParameterEstimator * | theCPE |
const SiStripRecHitMatcher * | theMatcher |
Additional Inherited Members | |
Public Types inherited from GenericTransientTrackingRecHit | |
typedef TrackingRecHit::Type | Type |
Public Types inherited from TransientTrackingRecHit | |
typedef std::vector < ConstRecHitPointer > | ConstRecHitContainer |
typedef ConstReferenceCountingPointer < TransientTrackingRecHit > | ConstRecHitPointer |
typedef std::vector < ConstRecHitPointer > | RecHitContainer |
typedef ReferenceCountingPointer < TransientTrackingRecHit > | RecHitPointer |
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 } |
Static Public Attributes inherited from TrackingRecHit | |
static const int | rttiShift = 24 |
static const int | typeMask = 0xf |
Static Public Attributes inherited from ReferenceCountedPoolAllocated | |
static int | s_alive =0 |
static int | s_referenced =0 |
Static Public Attributes inherited from BlockWipedPoolAllocated | |
static int | s_alive =0 |
static bool | s_usePool =false |
Protected Member Functions inherited from GenericTransientTrackingRecHit | |
GenericTransientTrackingRecHit (const GeomDet *geom, const TrackingRecHit &rh) | |
GenericTransientTrackingRecHit (const GeomDet *geom, TrackingRecHit *rh) | |
for derived classes convenience, does not clone! More... | |
GenericTransientTrackingRecHit (const GenericTransientTrackingRecHit &other) | |
Protected Member Functions inherited from TrackingRecHit | |
void | setId (id_type iid) |
void | setRTTI (unsigned int rt) |
void | setType (Type ttype) |
Protected Attributes inherited from GenericTransientTrackingRecHit | |
TrackingRecHit * | trackingRecHit_ |
Definition at line 13 of file TSiStripMatchedRecHit.h.
|
inlineprivate |
Definition at line 75 of file TSiStripMatchedRecHit.h.
References ComputeCoarseLocalPosition().
Referenced by build(), buildInPlace(), and clone().
|
inlineprivate |
Definition at line 83 of file TSiStripMatchedRecHit.h.
References ComputeCoarseLocalPosition().
|
inlineprivate |
Definition at line 90 of file TSiStripMatchedRecHit.h.
References ComputeCoarseLocalPosition().
|
inlinestatic |
Definition at line 26 of file TSiStripMatchedRecHit.h.
References TSiStripMatchedRecHit().
Referenced by TkGluedMeasurementDet::HitCollectorForRecHits::add(), SiStripElectronSeedGenerator::altCheckHitsAndTSOS(), TkTransientTrackingRecHitBuilder::build(), SiStripElectronSeedGenerator::checkHitsAndTSOS(), and TkTransientTrackingRecHitBuilder::oldbuild().
|
inlinestatic |
Definition at line 33 of file TSiStripMatchedRecHit.h.
References TSiStripMatchedRecHit().
|
inlinestatic |
Build this hit on the heap, but possibly starting from already allocated memory. if 'memory' is not null, it will call the placed delete, and then the placed new to make a new hit if 'memory' is null, it will fill it with a new heap-allocated hit both at entry and exit of this method any rechit in 'memory' DOES NOT own it's persistent rechit
Definition at line 51 of file TSiStripMatchedRecHit.h.
References TSiStripMatchedRecHit().
Referenced by TkGluedMeasurementDet::HitCollectorForFastMeasurements::add().
|
inlinevirtual |
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 GenericTransientTrackingRecHit.
Definition at line 41 of file TSiStripMatchedRecHit.h.
References theMatcher.
|
inline |
drop the pointer to the hit, so that it's not deleted by the destructor. you must call this before deleting the TSiStripMatchedRecHit IF AND ONLY IF it doesn't own the rechit
Definition at line 68 of file TSiStripMatchedRecHit.h.
References GenericTransientTrackingRecHit::trackingRecHit_.
|
virtual |
Returns a copy of the hit with parameters and errors computed with respect to the TrajectoryStateOnSurface given as argument. For concrete hits not capable to improve their parameters and errors this method returns an exact copy, and is equivalent to clone() without arguments.
Reimplemented from TransientTrackingRecHit.
Definition at line 36 of file TSiStripMatchedRecHit.cc.
References clone(), TransientTrackingRecHit::det(), GeomDet::geographicalId(), gluedToStereo(), GenericTransientTrackingRecHit::hit(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localDirection(), ClusterParameterEstimator< T >::localParameters(), SiStripRecHitMatcher::match(), SiStripMatchedRecHit2D::monoCluster(), SiStripMatchedRecHit2D::monoClusterRef(), GluedGeomDet::monoDet(), GeomDet::position(), SiStripMatchedRecHit2D::stereoCluster(), SiStripMatchedRecHit2D::stereoClusterRef(), GluedGeomDet::stereoDet(), GeomDet::surface(), theCPE, theMatcher, GloballyPositioned< T >::toLocal(), and TSiStripMatchedRecHit().
|
inlineprivatevirtual |
Reimplemented from GenericTransientTrackingRecHit.
Definition at line 102 of file TSiStripMatchedRecHit.h.
References TSiStripMatchedRecHit().
Referenced by clone().
|
inline |
take ownership of the hit, if it wasn't owned (note: if it was owned, this code will leak it)
Definition at line 65 of file TSiStripMatchedRecHit.h.
References TrackingRecHit::clone(), and GenericTransientTrackingRecHit::trackingRecHit_.
|
private |
Definition at line 127 of file TSiStripMatchedRecHit.cc.
References TransientTrackingRecHit::det(), GeomDet::geographicalId(), BaseTrackerRecHit::hasPositionAndError(), ClusterParameterEstimator< T >::localParameters(), LogDebug, SiStripRecHitMatcher::match(), SiStripMatchedRecHit2D::monoCluster(), SiStripMatchedRecHit2D::monoClusterRef(), GluedGeomDet::monoDet(), GeomDet::position(), SiStripMatchedRecHit2D::stereoCluster(), SiStripMatchedRecHit2D::stereoClusterRef(), GluedGeomDet::stereoDet(), GeomDet::surface(), theCPE, theMatcher, GloballyPositioned< T >::toLocal(), and GenericTransientTrackingRecHit::trackingRecHit_.
Referenced by TSiStripMatchedRecHit().
|
inlinevirtual |
CAUTION: the GeomDetUnit* is zero for composite hits (matched hits in the tracker, segments in the muon). Always check this pointer before using it!
Reimplemented from TransientTrackingRecHit.
Definition at line 24 of file TSiStripMatchedRecHit.h.
|
inlinevirtual |
Reimplemented from TrackingRecHit.
Definition at line 16 of file TSiStripMatchedRecHit.h.
References TransientTrackingRecHit::det(), HelpertRecHit2DLocalPos::getKfComponents(), and GenericTransientTrackingRecHit::hit().
|
inlinevirtual |
Reimplemented from GenericTransientTrackingRecHit.
Definition at line 20 of file TSiStripMatchedRecHit.h.
References TransientTrackingRecHit::det(), GenericTransientTrackingRecHit::localPositionError(), and HelpertRecHit2DLocalPos::parError().
|
virtual |
Composite interface: returns the component hits, if any.
Reimplemented from TransientTrackingRecHit.
Definition at line 98 of file TSiStripMatchedRecHit.cc.
References TSiStripRecHit2DLocalPos::build(), TransientTrackingRecHit::det(), GenericTransientTrackingRecHit::hit(), ClusterParameterEstimator< T >::localParameters(), m, SiStripMatchedRecHit2D::monoCluster(), SiStripMatchedRecHit2D::monoClusterRef(), GluedGeomDet::monoDet(), SiStripMatchedRecHit2D::monoHit(), query::result, alignCSCRings::s, SiStripMatchedRecHit2D::stereoCluster(), SiStripMatchedRecHit2D::stereoClusterRef(), GluedGeomDet::stereoDet(), SiStripMatchedRecHit2D::stereoHit(), and theCPE.
|
private |
Definition at line 72 of file TSiStripMatchedRecHit.h.
Referenced by clone(), ComputeCoarseLocalPosition(), and transientHits().
|
private |
Definition at line 71 of file TSiStripMatchedRecHit.h.
Referenced by canImproveWithTrack(), clone(), and ComputeCoarseLocalPosition().