CMS 3D CMS Logo

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

#include <RecHit2DLocalPos.h>

Inheritance diagram for RecHit2DLocalPos:
TrackingRecHit CSCRecHit2D FTLTrackingRecHit< ObjRef > GEMRecHit ME0RecHit RPCRecHit SiStripLaserRecHit2D

Public Types

typedef GloballyPositioned< float >::LocalPoint LocalPoint
 
- 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
}
 

Public Member Functions

RecHit2DLocalPosclone () const override=0
 
int dimension () const override
 
LocalPoint localPosition () const override=0
 
LocalError localPositionError () const override=0
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
std::vector< const TrackingRecHit * > recHits () const override
 Access to component RecHits (if any) More...
 
std::vector< TrackingRecHit * > recHits () override
 Non-const access to component RecHits (if any) More...
 
 ~RecHit2DLocalPos () override
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
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 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 {initializeMatrix()}
 

Additional Inherited Members

- 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

Definition at line 8 of file RecHit2DLocalPos.h.

Member Typedef Documentation

◆ LocalPoint

Definition at line 10 of file RecHit2DLocalPos.h.

Constructor & Destructor Documentation

◆ RecHit2DLocalPos() [1/2]

RecHit2DLocalPos::RecHit2DLocalPos ( DetId  id)
inline

Definition at line 12 of file RecHit2DLocalPos.h.

12 : TrackingRecHit(id) {}

◆ RecHit2DLocalPos() [2/2]

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

Definition at line 13 of file RecHit2DLocalPos.h.

13 : TrackingRecHit(id) {}

◆ ~RecHit2DLocalPos()

RecHit2DLocalPos::~RecHit2DLocalPos ( )
inlineoverride

Definition at line 14 of file RecHit2DLocalPos.h.

14 {}

Member Function Documentation

◆ clone()

RecHit2DLocalPos* RecHit2DLocalPos::clone ( ) const
overridepure virtual

◆ dimension()

int RecHit2DLocalPos::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 24 of file RecHit2DLocalPos.h.

24 { return 2; }

◆ localPosition()

LocalPoint RecHit2DLocalPos::localPosition ( ) const
overridepure virtual

◆ localPositionError()

LocalError RecHit2DLocalPos::localPositionError ( ) const
overridepure virtual

◆ parameters()

AlgebraicVector RecHit2DLocalPos::parameters ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 3 of file RecHit2DLocalPos.cc.

3  {
6  result[0] = lp.x();
7  result[1] = lp.y();
8  return result;
9 }

References localPosition(), and mps_fire::result.

◆ parametersError()

AlgebraicSymMatrix RecHit2DLocalPos::parametersError ( ) const
overridevirtual

local Error + AlignmentPositionError if this is set for the DetUnit

Implements TrackingRecHit.

Definition at line 12 of file RecHit2DLocalPos.cc.

12  {
15  m[0][0] = le.xx();
16  m[0][1] = le.xy();
17  m[1][1] = le.yy();
18  return m;
19 }

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

◆ projectionMatrix()

AlgebraicMatrix RecHit2DLocalPos::projectionMatrix ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 22 of file RecHit2DLocalPos.h.

22 { return theProjectionMatrix; }

References theProjectionMatrix.

◆ recHits() [1/2]

std::vector< const TrackingRecHit * > RecHit2DLocalPos::recHits ( ) const
overridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 21 of file RecHit2DLocalPos.cc.

21  {
22  std::vector<const TrackingRecHit*> nullvector;
23  return nullvector;
24 }

◆ recHits() [2/2]

std::vector< TrackingRecHit * > RecHit2DLocalPos::recHits ( )
overridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 25 of file RecHit2DLocalPos.cc.

25  {
26  std::vector<TrackingRecHit*> nullvector;
27  return nullvector;
28 }

Member Data Documentation

◆ theProjectionMatrix

const AlgebraicMatrix RecHit2DLocalPos::theProjectionMatrix {initializeMatrix()}
staticprivate

Definition at line 35 of file RecHit2DLocalPos.h.

Referenced by projectionMatrix().

RecHit2DLocalPos::localPosition
LocalPoint localPosition() const override=0
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
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
Point3DBase< float, LocalTag >
LocalError
Definition: LocalError.h:12
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
RecHit2DLocalPos::theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: RecHit2DLocalPos.h:35
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
RecHit2DLocalPos::localPositionError
LocalError localPositionError() const override=0
mps_fire.result
result
Definition: mps_fire.py:311