CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
GenericTransientTrackingRecHit Class Reference

#include <GenericTransientTrackingRecHit.h>

Inheritance diagram for GenericTransientTrackingRecHit:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated GCC11_FINAL GCC11_FINAL MuonTransientTrackingRecHit

Public Types

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 }
 

Public Member Functions

virtual bool canImproveWithTrack () const
 
virtual int dimension () const
 
virtual const TrackingRecHithit () const
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () 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 RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
const GeomDetdet () const
 The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. More...
 
virtual const GeomDetUnitdetUnit () const
 
float errorGlobalR () const
 
float errorGlobalRPhi () const
 
float errorGlobalZ () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
virtual const Surfacesurface () const
 
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any. More...
 
 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
 
virtual void getKfComponents (KfComponentsHolder &holder) 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)
 
- Static Public Member Functions inherited from BlockWipedPoolAllocated
static BlockWipedAllocatorallocator (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 ()
 

Protected Member Functions

 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

TrackingRecHittrackingRecHit_
 

Private Member Functions

virtual
GenericTransientTrackingRecHit
clone () const
 
GenericTransientTrackingRecHitoperator= (const GenericTransientTrackingRecHit &t)
 

Additional Inherited Members

- 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
 

Detailed Description

Definition at line 7 of file GenericTransientTrackingRecHit.h.

Member Typedef Documentation

Definition at line 9 of file GenericTransientTrackingRecHit.h.

Constructor & Destructor Documentation

virtual GenericTransientTrackingRecHit::~GenericTransientTrackingRecHit ( )
inlinevirtual

Definition at line 11 of file GenericTransientTrackingRecHit.h.

References trackingRecHit_.

GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh 
)
inlineprotected

Definition at line 44 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::clone(), and trackingRecHit_.

Referenced by build(), and clone().

44  :
46  trackingRecHit_ = rh.clone();
47  }
TransientTrackingRecHit(const GeomDet *geom=0)
virtual TrackingRecHit * clone() const =0
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
TrackingRecHit rh 
)
inlineprotected

for derived classes convenience, does not clone!

Definition at line 50 of file GenericTransientTrackingRecHit.h.

50  :
TransientTrackingRecHit(const GeomDet *geom=0)
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GenericTransientTrackingRecHit other)
inlineprotected

Definition at line 53 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::clone(), hit(), and trackingRecHit_.

53  :
54  TransientTrackingRecHit( other.det(),other) {
55  trackingRecHit_ = other.hit()->clone();
56  }
TransientTrackingRecHit(const GeomDet *geom=0)
virtual const TrackingRecHit * hit() const
virtual TrackingRecHit * clone() const =0
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.

Member Function Documentation

static RecHitPointer GenericTransientTrackingRecHit::build ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

Definition at line 37 of file GenericTransientTrackingRecHit.h.

References GenericTransientTrackingRecHit().

Referenced by FastPixelHitMatcher::compatibleHits().

37  {
38  return RecHitPointer( new GenericTransientTrackingRecHit( geom, *rh));
39  }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
GenericTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit &rh)
virtual bool GenericTransientTrackingRecHit::canImproveWithTrack ( ) const
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 TransientTrackingRecHit.

Reimplemented in GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, and GCC11_FINAL.

Definition at line 25 of file GenericTransientTrackingRecHit.h.

25 {return false;}
virtual GenericTransientTrackingRecHit* GenericTransientTrackingRecHit::clone ( void  ) const
inlineprivatevirtual
virtual int GenericTransientTrackingRecHit::dimension ( ) const
inlinevirtual
virtual const TrackingRecHit* GenericTransientTrackingRecHit::hit ( void  ) const
inlinevirtual
virtual LocalPoint GenericTransientTrackingRecHit::localPosition ( ) const
inlinevirtual
virtual LocalError GenericTransientTrackingRecHit::localPositionError ( ) const
inlinevirtual
GenericTransientTrackingRecHit& GenericTransientTrackingRecHit::operator= ( const GenericTransientTrackingRecHit t)
inlineprivate

Definition at line 63 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::clone(), hit(), and trackingRecHit_.

63  {
64  trackingRecHit_ = t.hit()->clone();
65  return *(this);
66  }
virtual const TrackingRecHit * hit() const
virtual TrackingRecHit * clone() const =0
virtual AlgebraicVector GenericTransientTrackingRecHit::parameters ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Reimplemented in GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, and GCC11_FINAL.

Definition at line 13 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::parameters(), and trackingRecHit_.

13 {return trackingRecHit_->parameters();}
virtual AlgebraicVector parameters() const =0
virtual AlgebraicSymMatrix GenericTransientTrackingRecHit::parametersError ( ) const
inlinevirtual
virtual AlgebraicMatrix GenericTransientTrackingRecHit::projectionMatrix ( ) const
inlinevirtual
virtual std::vector<const TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) const
inlinevirtual
virtual std::vector<TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Reimplemented in GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, and GCC11_FINAL.

Definition at line 33 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::recHits(), and trackingRecHit_.

33  {
34  return trackingRecHit_->recHits();
35  }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)

Member Data Documentation

TrackingRecHit* GenericTransientTrackingRecHit::trackingRecHit_
protected