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
TRecHit2DPosConstraint Class Reference

#include <TRecHit2DPosConstraint.h>

Inheritance diagram for TRecHit2DPosConstraint:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

Public Member Functions

virtual bool canImproveWithTrack () const
 
virtual RecHitPointer clone (const TrajectoryStateOnSurface &ts) 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 ~TRecHit2DPosConstraint ()
 
- 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
 
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 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 LocalPoint &pos, const LocalError &err, const Surface *surface)
 
- 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 TRecHit2DPosConstraintclone () const
 
 TRecHit2DPosConstraint (const LocalPoint &pos, const LocalError &err, const Surface *surface)
 Creates the TrackingRecHit internally, avoids redundent cloning. More...
 
 TRecHit2DPosConstraint (const TRecHit2DPosConstraint &other)
 

Private Attributes

const LocalError err_
 
const LocalPoint pos_
 
ConstReferenceCountingPointer
< Surface
surface_
 

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 ReferenceCountedPoolAllocated
static int s_alive =0
 
static int s_referenced =0
 
- Static Public Attributes inherited from BlockWipedPoolAllocated
static int s_alive =0
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setType (Type ttype)
 

Detailed Description

Definition at line 9 of file TRecHit2DPosConstraint.h.

Constructor & Destructor Documentation

virtual TRecHit2DPosConstraint::~TRecHit2DPosConstraint ( )
inlinevirtual

Definition at line 12 of file TRecHit2DPosConstraint.h.

12 {}
TRecHit2DPosConstraint::TRecHit2DPosConstraint ( const LocalPoint pos,
const LocalError err,
const Surface surface 
)
inlineprivate

Creates the TrackingRecHit internally, avoids redundent cloning.

Definition at line 72 of file TRecHit2DPosConstraint.h.

Referenced by build(), and clone().

74  :
75  pos_(pos),err_(err),surface_(surface) {}
ConstReferenceCountingPointer< Surface > surface_
TRecHit2DPosConstraint::TRecHit2DPosConstraint ( const TRecHit2DPosConstraint other)
inlineprivate

Definition at line 77 of file TRecHit2DPosConstraint.h.

77  :
78  pos_( other.localPosition() ),err_( other.localPositionError() ), surface_((other.surface())) {}
virtual LocalPoint localPosition() const
ConstReferenceCountingPointer< Surface > surface_
virtual const Surface * surface() const
virtual LocalError localPositionError() const

Member Function Documentation

static RecHitPointer TRecHit2DPosConstraint::build ( const LocalPoint pos,
const LocalError err,
const Surface surface 
)
inlinestatic

Definition at line 59 of file TRecHit2DPosConstraint.h.

References TRecHit2DPosConstraint().

Referenced by GsfConstraintAtVertex::constrainAtPoint().

60  {
61  return RecHitPointer( new TRecHit2DPosConstraint( pos, err, surface));
62  }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
TRecHit2DPosConstraint(const LocalPoint &pos, const LocalError &err, const Surface *surface)
Creates the TrackingRecHit internally, avoids redundent cloning.
virtual bool TRecHit2DPosConstraint::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 52 of file TRecHit2DPosConstraint.h.

52 {return false;}
virtual RecHitPointer TRecHit2DPosConstraint::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 54 of file TRecHit2DPosConstraint.h.

References clone().

Referenced by clone().

54 {return clone();}
virtual TRecHit2DPosConstraint * clone() const
virtual TRecHit2DPosConstraint* TRecHit2DPosConstraint::clone ( void  ) const
inlineprivatevirtual

Implements TransientTrackingRecHit.

Definition at line 80 of file TRecHit2DPosConstraint.h.

References TRecHit2DPosConstraint().

80  {
81  return new TRecHit2DPosConstraint(*this);
82  }
TRecHit2DPosConstraint(const LocalPoint &pos, const LocalError &err, const Surface *surface)
Creates the TrackingRecHit internally, avoids redundent cloning.
virtual const GeomDet* TRecHit2DPosConstraint::det ( ) const
inlinevirtual

Definition at line 57 of file TRecHit2DPosConstraint.h.

57 {return 0;}
virtual const GeomDetUnit* TRecHit2DPosConstraint::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 56 of file TRecHit2DPosConstraint.h.

56 {return 0;}
virtual int TRecHit2DPosConstraint::dimension ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 38 of file TRecHit2DPosConstraint.h.

38 {return 2;}
virtual const TrackingRecHit* TRecHit2DPosConstraint::hit ( void  ) const
inlinevirtual

Implements TransientTrackingRecHit.

Definition at line 43 of file TRecHit2DPosConstraint.h.

Referenced by recHits().

43 {return 0;}//fixme return invalid
virtual LocalPoint TRecHit2DPosConstraint::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 40 of file TRecHit2DPosConstraint.h.

References pos_.

Referenced by parameters().

40 {return pos_;}
virtual LocalError TRecHit2DPosConstraint::localPositionError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 41 of file TRecHit2DPosConstraint.h.

References err_.

Referenced by parametersError().

41 {return err_;}
virtual AlgebraicVector TRecHit2DPosConstraint::parameters ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 14 of file TRecHit2DPosConstraint.h.

References localPosition(), query::result, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

14  {
17  result[0] = lp.x();
18  result[1] = lp.y();
19  return result;
20  }
virtual LocalPoint localPosition() const
T y() const
Definition: PV3DBase.h:57
tuple result
Definition: query.py:137
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:56
virtual AlgebraicSymMatrix TRecHit2DPosConstraint::parametersError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 22 of file TRecHit2DPosConstraint.h.

References asciidump::le, localPositionError(), m, LocalError::xx(), LocalError::xy(), and LocalError::yy().

22  {
25  m[0][0] = le.xx();
26  m[0][1] = le.xy();
27  m[1][1] = le.yy();
28  return m;
29  }
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual LocalError localPositionError() const
virtual AlgebraicMatrix TRecHit2DPosConstraint::projectionMatrix ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 31 of file TRecHit2DPosConstraint.h.

31  {
32  AlgebraicMatrix theProjectionMatrix;
33  theProjectionMatrix = AlgebraicMatrix( 2, 5, 0);
34  theProjectionMatrix[0][3] = 1;
35  theProjectionMatrix[1][4] = 1;
36  return theProjectionMatrix;
37  }
CLHEP::HepMatrix AlgebraicMatrix
virtual std::vector<const TrackingRecHit*> TRecHit2DPosConstraint::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 45 of file TRecHit2DPosConstraint.h.

References hit(), and TrackingRecHit::recHits().

45  {
46  return hit()->recHits();
47  }
virtual const TrackingRecHit * hit() const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual std::vector<TrackingRecHit*> TRecHit2DPosConstraint::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 48 of file TRecHit2DPosConstraint.h.

48  {
49  return std::vector<TrackingRecHit*>();
50  }
virtual const Surface* TRecHit2DPosConstraint::surface ( ) const
inlinevirtual

Reimplemented from TransientTrackingRecHit.

Definition at line 64 of file TRecHit2DPosConstraint.h.

64 {return &(*surface_);}

Member Data Documentation

const LocalError TRecHit2DPosConstraint::err_
private

Definition at line 68 of file TRecHit2DPosConstraint.h.

Referenced by localPositionError().

const LocalPoint TRecHit2DPosConstraint::pos_
private

Definition at line 67 of file TRecHit2DPosConstraint.h.

Referenced by localPosition().

ConstReferenceCountingPointer<Surface> TRecHit2DPosConstraint::surface_
private

Definition at line 70 of file TRecHit2DPosConstraint.h.