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 MuonTransientTrackingRecHit ProjectedRecHit2D TSiStripMatchedRecHit

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
 
float getAnnealingFactor () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
void setAnnealingFactor (float annealing)
 
void setWeight (float weight)
 interface needed to set the transient hit weight and to read it back More...
 
virtual const Surfacesurface () const
 
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any. More...
 
 TransientTrackingRecHit (const GeomDet *geom=0, float weight=1., float annealing=1.)
 
 TransientTrackingRecHit (const GeomDet *geom, DetId id, Type type=valid, float weight=1., float annealing=1.)
 
 TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit::id_type id, Type type=valid, float weight=1., float annealing=1.)
 
 TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit const &rh, float weight=1., float annealing=1.)
 
float weight () const
 
- Public Member Functions inherited from TrackingRecHit
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
Type getType () const
 
bool isValid () 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)
 
Type type () 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, float weight=1., float annealing=1.)
 
 GenericTransientTrackingRecHit (const GeomDet *geom, TrackingRecHit *rh, float weight=1., float annealing=1.)
 for derived classes convenience, does not clone! More...
 
 GenericTransientTrackingRecHit (const GenericTransientTrackingRecHit &other)
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
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 ReferenceCountedPoolAllocated
static int s_alive =0
 
static int s_referenced =0
 
- Static Public Attributes inherited from BlockWipedPoolAllocated
static int s_alive =0
 

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,
float  weight = 1.,
float  annealing = 1. 
)
inlineprotected

Definition at line 44 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::clone(), and trackingRecHit_.

Referenced by build(), and clone().

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

for derived classes convenience, does not clone!

Definition at line 50 of file GenericTransientTrackingRecHit.h.

50  :
51  TransientTrackingRecHit(geom,*rh,weight,annealing), trackingRecHit_(rh) {}
TransientTrackingRecHit(const GeomDet *geom=0, float weight=1., float annealing=1.)
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,other.weight(),other.getAnnealingFactor()) {
55  trackingRecHit_ = other.hit()->clone();
56  }
virtual const TrackingRecHit * hit() const
virtual TrackingRecHit * clone() const =0
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
TransientTrackingRecHit(const GeomDet *geom=0, float weight=1., float annealing=1.)

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 TkTransientTrackingRecHitBuilder::build(), FastPixelHitMatcher::compatibleHits(), and TkTransientTrackingRecHitBuilder::oldbuild().

37  {
38  return RecHitPointer( new GenericTransientTrackingRecHit( geom, *rh));
39  }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
GenericTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit &rh, float weight=1., float annealing=1.)
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 TSiStripMatchedRecHit.

Definition at line 25 of file GenericTransientTrackingRecHit.h.

25 {return false;}
virtual GenericTransientTrackingRecHit* GenericTransientTrackingRecHit::clone ( void  ) const
inlineprivatevirtual

Implements TransientTrackingRecHit.

Reimplemented in TSiStripMatchedRecHit, MuonTransientTrackingRecHit, and ProjectedRecHit2D.

Definition at line 70 of file GenericTransientTrackingRecHit.h.

References GenericTransientTrackingRecHit().

70  {
71  return new GenericTransientTrackingRecHit(*this);
72  }
GenericTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit &rh, float weight=1., float annealing=1.)
virtual int GenericTransientTrackingRecHit::dimension ( ) const
inlinevirtual
virtual const TrackingRecHit* GenericTransientTrackingRecHit::hit ( void  ) const
inlinevirtual
virtual LocalPoint GenericTransientTrackingRecHit::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 22 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::localPosition(), and trackingRecHit_.

22 {return trackingRecHit_->localPosition();}
virtual LocalPoint localPosition() const =0
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.

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

Implements TrackingRecHit.

Definition at line 15 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::projectionMatrix(), and trackingRecHit_.

Referenced by MuonTransientTrackingRecHit::parametersError().

virtual AlgebraicMatrix projectionMatrix() const =0
virtual std::vector<const TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 30 of file GenericTransientTrackingRecHit.h.

References trackingRecHit_.

Referenced by MuonSeedCleaner::NRecHitsFromSegment(), and MuonTransientTrackingRecHit::transientHits().

30  {
31  return ((const TrackingRecHit *)(trackingRecHit_))->recHits();
32  }
virtual std::vector<TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

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