CMS 3D CMS Logo

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

#include <TRecHit5DParamConstraint.h>

Inheritance diagram for TRecHit5DParamConstraint:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

Public Member Functions

virtual bool canImproveWithTrack () const
 
virtual int charge () const
 
virtual
TransientTrackingRecHit::RecHitPointer 
clone (const TrajectoryStateOnSurface &tsos) const
 
virtual const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () 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 const Surfacesurface () const
 
virtual ~TRecHit5DParamConstraint ()
 
- Public Member Functions inherited from TransientTrackingRecHit
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...
 
float errorGlobalR () const
 
float errorGlobalRPhi () const
 
float errorGlobalZ () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () 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
TransientTrackingRecHit::RecHitPointer 
build (const TrajectoryStateOnSurface &tsos)
 
- 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 ()
 

Private Member Functions

virtual TRecHit5DParamConstraintclone () const
 
const TrajectoryStateOnSurfacetrajectoryState () const
 
 TRecHit5DParamConstraint (const TrajectoryStateOnSurface &tsos)
 
 TRecHit5DParamConstraint (const TRecHit5DParamConstraint &other)
 

Private Attributes

const TrajectoryStateOnSurface tsos_
 

Additional Inherited Members

- 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 TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

Definition at line 9 of file TRecHit5DParamConstraint.h.

Constructor & Destructor Documentation

TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const TrajectoryStateOnSurface tsos)
inlineprivate

Definition at line 14 of file TRecHit5DParamConstraint.h.

Referenced by build(), and clone().

14 : tsos_( tsos ) {}
const TrajectoryStateOnSurface tsos_
TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const TRecHit5DParamConstraint other)
inlineprivate

Definition at line 16 of file TRecHit5DParamConstraint.h.

16 : tsos_( other.trajectoryState() ) {}
const TrajectoryStateOnSurface & trajectoryState() const
const TrajectoryStateOnSurface tsos_
virtual TRecHit5DParamConstraint::~TRecHit5DParamConstraint ( )
inlinevirtual

Definition at line 20 of file TRecHit5DParamConstraint.h.

20 {}

Member Function Documentation

static TransientTrackingRecHit::RecHitPointer TRecHit5DParamConstraint::build ( const TrajectoryStateOnSurface tsos)
inlinestatic

Definition at line 58 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

58  {
59  return RecHitPointer( new TRecHit5DParamConstraint( tsos ) );
60  }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
virtual bool TRecHit5DParamConstraint::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 39 of file TRecHit5DParamConstraint.h.

39 { return false; }
virtual int TRecHit5DParamConstraint::charge ( void  ) const
inlinevirtual

Definition at line 37 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::charge(), and tsos_.

37 { return tsos_.charge(); }
const TrajectoryStateOnSurface tsos_
virtual TransientTrackingRecHit::RecHitPointer TRecHit5DParamConstraint::clone ( const TrajectoryStateOnSurface ts) const
inlinevirtual

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 53 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

53  {
54  //return new TRecHit5DParamConstraint( this->trajectoryState() );
55  return new TRecHit5DParamConstraint( tsos );
56  }
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
virtual TRecHit5DParamConstraint* TRecHit5DParamConstraint::clone ( void  ) const
inlineprivatevirtual

Implements TransientTrackingRecHit.

Definition at line 66 of file TRecHit5DParamConstraint.h.

References trajectoryState(), and TRecHit5DParamConstraint().

66  {
67  return new TRecHit5DParamConstraint( this->trajectoryState() );
68  }
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
const TrajectoryStateOnSurface & trajectoryState() const
virtual const GeomDet* TRecHit5DParamConstraint::det ( ) const
inlinevirtual

Definition at line 49 of file TRecHit5DParamConstraint.h.

49 { return 0; }
virtual const GeomDetUnit* TRecHit5DParamConstraint::detUnit ( ) const
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 47 of file TRecHit5DParamConstraint.h.

47 { return 0; }
virtual int TRecHit5DParamConstraint::dimension ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 22 of file TRecHit5DParamConstraint.h.

22 { return 5; }
virtual const TrackingRecHit* TRecHit5DParamConstraint::hit ( void  ) const
inlinevirtual

Implements TransientTrackingRecHit.

Definition at line 41 of file TRecHit5DParamConstraint.h.

41 { return 0; }
virtual LocalPoint TRecHit5DParamConstraint::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 33 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::localPosition(), and tsos_.

33 { return tsos_.localPosition(); }
const TrajectoryStateOnSurface tsos_
virtual LocalError TRecHit5DParamConstraint::localPositionError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 35 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::localError(), LocalTrajectoryError::positionError(), and tsos_.

35 { return tsos_.localError().positionError(); }
LocalError positionError() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface tsos_
virtual AlgebraicVector TRecHit5DParamConstraint::parameters ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 29 of file TRecHit5DParamConstraint.h.

References asHepVector(), TrajectoryStateOnSurface::localParameters(), tsos_, and LocalTrajectoryParameters::vector().

29 { return asHepVector( tsos_.localParameters().vector() ); }
const LocalTrajectoryParameters & localParameters() const
AlgebraicVector5 vector() const
const TrajectoryStateOnSurface tsos_
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:43
virtual AlgebraicSymMatrix TRecHit5DParamConstraint::parametersError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 31 of file TRecHit5DParamConstraint.h.

References asHepMatrix(), TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), and tsos_.

31 { return asHepMatrix( tsos_.localError().matrix() ); }
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:49
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface tsos_
virtual AlgebraicMatrix TRecHit5DParamConstraint::projectionMatrix ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 24 of file TRecHit5DParamConstraint.h.

24  {
26  return projectionMatrix;
27  }
CLHEP::HepMatrix AlgebraicMatrix
virtual AlgebraicMatrix projectionMatrix() const
virtual std::vector<const TrackingRecHit*> TRecHit5DParamConstraint::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 43 of file TRecHit5DParamConstraint.h.

43 { return std::vector<const TrackingRecHit*>(); }
virtual std::vector<TrackingRecHit*> TRecHit5DParamConstraint::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 45 of file TRecHit5DParamConstraint.h.

45 { return std::vector<TrackingRecHit*>(); }
virtual const Surface* TRecHit5DParamConstraint::surface ( ) const
inlinevirtual

Reimplemented from TransientTrackingRecHit.

Definition at line 51 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::surface(), and tsos_.

51 { return &tsos_.surface(); }
const Surface & surface() const
const TrajectoryStateOnSurface tsos_
const TrajectoryStateOnSurface& TRecHit5DParamConstraint::trajectoryState ( ) const
inlineprivate

Definition at line 70 of file TRecHit5DParamConstraint.h.

References tsos_.

Referenced by clone().

70 { return tsos_; }
const TrajectoryStateOnSurface tsos_

Member Data Documentation

const TrajectoryStateOnSurface TRecHit5DParamConstraint::tsos_
private