CMS 3D CMS Logo

List of all members | Public Member Functions | Static Private Attributes
RecHit1D Class Referenceabstract

#include <RecHit1D.h>

Inheritance diagram for RecHit1D:
TrackingRecHit DTRecHit1D DTRecHit1DPair DTSLRecCluster

Public Member Functions

int dimension () const override
 Return the RecHit dimension. More...
 
LocalPoint localPosition () const override=0
 Local position. More...
 
LocalError localPositionError () const override=0
 Error on the local position. More...
 
AlgebraicVector parameters () const override
 Return just the x. More...
 
AlgebraicSymMatrix parametersError () const override
 Return just "(sigma_x)^2". More...
 
AlgebraicMatrix projectionMatrix () const override
 Return the projection matrix. More...
 
 RecHit1D (DetId id)
 
 RecHit1D (TrackingRecHit::id_type id=0)
 
 ~RecHit1D () override
 Destructor. More...
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
virtual TrackingRecHitclone () const =0
 
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
virtual float errorGlobalR () const
 
virtual float errorGlobalRPhi () const
 
virtual float errorGlobalZ () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
virtual TrackingRecHit const * hit () const
 
bool isValid () const
 
id_type rawId () const
 
virtual std::vector< const TrackingRecHit * > recHits () const =0
 Access to component RecHits (if any) More...
 
virtual std::vector< TrackingRecHit * > recHits ()=0
 Non-const access to component RecHits (if any) More...
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
virtual void setDet (const GeomDet &idet)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
virtual const Surfacesurface () const
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Static Private Attributes

static const AlgebraicMatrix theProjectionMatrix
 

Additional Inherited Members

- Public Types inherited from TrackingRecHit
typedef std::vector< ConstRecHitPointerConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector< ConstRecHitPointerRecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type {
  valid = 0, missing = 1, inactive = 2, bad = 3,
  missing_inner = 4, missing_outer = 5, inactive_inner = 6, inactive_outer = 7
}
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

Base class for 1-dimensional recHits

To be used as base class for all 1D positional TrackingRecHits. The coordinate measured is assumend to be the local "x"

Author
S. Lacaprara, G. Cerminara

Definition at line 19 of file RecHit1D.h.

Constructor & Destructor Documentation

◆ RecHit1D() [1/2]

RecHit1D::RecHit1D ( DetId  id)
inline

Definition at line 21 of file RecHit1D.h.

21 : TrackingRecHit(id) {}

◆ RecHit1D() [2/2]

RecHit1D::RecHit1D ( TrackingRecHit::id_type  id = 0)
inline

Definition at line 22 of file RecHit1D.h.

22 : TrackingRecHit(id) {}

◆ ~RecHit1D()

RecHit1D::~RecHit1D ( )
inlineoverride

Destructor.

Definition at line 25 of file RecHit1D.h.

25 {}

Member Function Documentation

◆ dimension()

int RecHit1D::dimension ( ) const
inlineoverridevirtual

Return the RecHit dimension.

Implements TrackingRecHit.

Definition at line 37 of file RecHit1D.h.

37 { return 1; }

◆ localPosition()

LocalPoint RecHit1D::localPosition ( ) const
overridepure virtual

Local position.

Implements TrackingRecHit.

Implemented in DTSLRecCluster, DTRecHit1D, and DTRecHit1DPair.

Referenced by parameters().

◆ localPositionError()

LocalError RecHit1D::localPositionError ( ) const
overridepure virtual

Error on the local position.

Implements TrackingRecHit.

Implemented in DTSLRecCluster, DTRecHit1D, and DTRecHit1DPair.

Referenced by parametersError().

◆ parameters()

AlgebraicVector RecHit1D::parameters ( void  ) const
overridevirtual

Return just the x.

Implements TrackingRecHit.

Definition at line 13 of file RecHit1D.cc.

13  {
15  result[0] = localPosition().x();
16  return result;
17 }

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

◆ parametersError()

AlgebraicSymMatrix RecHit1D::parametersError ( ) const
overridevirtual

Return just "(sigma_x)^2".

Implements TrackingRecHit.

Definition at line 20 of file RecHit1D.cc.

20  {
23  // FIXME: Remove this dependence from Geometry
24  // if ( det().alignmentPositionError()) {
25  // LocalError lape =
26  // ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(),
27  // det().surface());
28  // m[0][0] = le.xx()+lape.xx();
29  // } else {
30  m[0][0] = le.xx();
31  // }
32  return m;
33 }

References localPositionError(), visualization-live-secondInstance_cfg::m, and LocalError::xx().

◆ projectionMatrix()

AlgebraicMatrix RecHit1D::projectionMatrix ( ) const
inlineoverridevirtual

Return the projection matrix.

Implements TrackingRecHit.

Definition at line 34 of file RecHit1D.h.

34 { return theProjectionMatrix; }

References theProjectionMatrix.

Member Data Documentation

◆ theProjectionMatrix

const AlgebraicMatrix RecHit1D::theProjectionMatrix
staticprivate

Definition at line 46 of file RecHit1D.h.

Referenced by projectionMatrix().

PV3DBase::x
T x() const
Definition: PV3DBase.h:59
TrackingRecHit::TrackingRecHit
TrackingRecHit(DetId id, Type type=valid)
Definition: TrackingRecHit.h:61
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
LocalError::xx
float xx() const
Definition: LocalError.h:22
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
RecHit1D::localPositionError
LocalError localPositionError() const override=0
Error on the local position.
LocalError
Definition: LocalError.h:12
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
RecHit1D::localPosition
LocalPoint localPosition() const override=0
Local position.
RecHit1D::theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:46
mps_fire.result
result
Definition: mps_fire.py:311