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 | Private Member Functions | Private Attributes
TransientTrackingRecHitByValue< RecHit > Class Template Reference

#include <TransientTrackingRecHitByValue.h>

Inheritance diagram for TransientTrackingRecHitByValue< RecHit >:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

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 RecHit * hit () 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 ~TransientTrackingRecHitByValue ()
 
- 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 RecHit *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

 TransientTrackingRecHitByValue (const GeomDet *geom, const RecHit &rh)
 
 TransientTrackingRecHitByValue (const TransientTrackingRecHitByValue< RecHit > &other)
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Private Member Functions

virtual
TransientTrackingRecHitByValue
< RecHit > * 
clone () const
 
TransientTrackingRecHitByValue
< RecHit > & 
operator= (const TransientTrackingRecHitByValue< RecHit > &t)
 

Private Attributes

RecHit m_trackingRecHit
 

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

template<typename RecHit>
class TransientTrackingRecHitByValue< RecHit >

Definition at line 7 of file TransientTrackingRecHitByValue.h.

Member Typedef Documentation

template<typename RecHit>
typedef TrackingRecHit::Type TransientTrackingRecHitByValue< RecHit >::Type

Definition at line 9 of file TransientTrackingRecHitByValue.h.

Constructor & Destructor Documentation

template<typename RecHit>
virtual TransientTrackingRecHitByValue< RecHit >::~TransientTrackingRecHitByValue ( )
inlinevirtual

Definition at line 11 of file TransientTrackingRecHitByValue.h.

11 {}
template<typename RecHit>
TransientTrackingRecHitByValue< RecHit >::TransientTrackingRecHitByValue ( const GeomDet geom,
const RecHit &  rh 
)
inlineprotected

Definition at line 40 of file TransientTrackingRecHitByValue.h.

40  :
42  }
TransientTrackingRecHit(const GeomDet *geom=0)
template<typename RecHit>
TransientTrackingRecHitByValue< RecHit >::TransientTrackingRecHitByValue ( const TransientTrackingRecHitByValue< RecHit > &  other)
inlineprotected

Definition at line 45 of file TransientTrackingRecHitByValue.h.

45  :
46  TransientTrackingRecHit( other.det(),other), m_trackingRecHit(*other.hit()) {
47  }
TransientTrackingRecHit(const GeomDet *geom=0)
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
virtual const RecHit * hit() const

Member Function Documentation

template<typename RecHit>
static RecHitPointer TransientTrackingRecHitByValue< RecHit >::build ( const GeomDet geom,
const RecHit *  rh 
)
inlinestatic

Definition at line 33 of file TransientTrackingRecHitByValue.h.

33  {
35  }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
template<typename RecHit>
virtual bool TransientTrackingRecHitByValue< RecHit >::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.

Definition at line 21 of file TransientTrackingRecHitByValue.h.

21 {return false;}
template<typename RecHit>
virtual TransientTrackingRecHitByValue<RecHit>* TransientTrackingRecHitByValue< RecHit >::clone ( void  ) const
inlineprivatevirtual
template<typename RecHit>
virtual int TransientTrackingRecHitByValue< RecHit >::dimension ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 16 of file TransientTrackingRecHitByValue.h.

template<typename RecHit>
virtual const RecHit* TransientTrackingRecHitByValue< RecHit >::hit ( void  ) const
inlinevirtual
template<typename RecHit>
virtual LocalPoint TransientTrackingRecHitByValue< RecHit >::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 18 of file TransientTrackingRecHitByValue.h.

18 {return m_trackingRecHit.localPosition();}
template<typename RecHit>
virtual LocalError TransientTrackingRecHitByValue< RecHit >::localPositionError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 19 of file TransientTrackingRecHitByValue.h.

19 {return m_trackingRecHit.localPositionError();}
template<typename RecHit>
TransientTrackingRecHitByValue<RecHit>& TransientTrackingRecHitByValue< RecHit >::operator= ( const TransientTrackingRecHitByValue< RecHit > &  t)
inlineprivate

Definition at line 54 of file TransientTrackingRecHitByValue.h.

54  {
55  m_trackingRecHit = *t.hit();
56  return *(this);
57  }
virtual const RecHit * hit() const
template<typename RecHit>
virtual AlgebraicVector TransientTrackingRecHitByValue< RecHit >::parameters ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 13 of file TransientTrackingRecHitByValue.h.

template<typename RecHit>
virtual AlgebraicSymMatrix TransientTrackingRecHitByValue< RecHit >::parametersError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 14 of file TransientTrackingRecHitByValue.h.

14 {return m_trackingRecHit.parametersError();}
template<typename RecHit>
virtual AlgebraicMatrix TransientTrackingRecHitByValue< RecHit >::projectionMatrix ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 15 of file TransientTrackingRecHitByValue.h.

15 {return m_trackingRecHit.projectionMatrix();}
template<typename RecHit>
virtual std::vector<const TrackingRecHit*> TransientTrackingRecHitByValue< RecHit >::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 26 of file TransientTrackingRecHitByValue.h.

26  {
27  return hit()->recHits();
28  }
virtual const RecHit * hit() const
template<typename RecHit>
virtual std::vector<TrackingRecHit*> TransientTrackingRecHitByValue< RecHit >::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 29 of file TransientTrackingRecHitByValue.h.

29  {
30  return m_trackingRecHit.recHits();
31  }

Member Data Documentation

template<typename RecHit>
RecHit TransientTrackingRecHitByValue< RecHit >::m_trackingRecHit
private