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 Private Attributes
RecHit1D Class Referenceabstract

#include <RecHit1D.h>

Inheritance diagram for RecHit1D:
TrackingRecHit DTRecHit1D DTRecHit1DPair DTSLRecCluster

Public Member Functions

virtual int dimension () const
 Return the RecHit dimension. More...
 
virtual LocalPoint localPosition () const =0
 Local position. More...
 
virtual LocalError localPositionError () const =0
 Error on the local position. More...
 
virtual AlgebraicVector parameters () const
 Return just the x. More...
 
virtual AlgebraicSymMatrix parametersError () const
 Return just "(sigma_x)^2". More...
 
virtual AlgebraicMatrix projectionMatrix () const
 Return the projection matrix. More...
 
 RecHit1D (DetId id)
 
 RecHit1D (TrackingRecHit::id_type id=0)
 
virtual ~RecHit1D ()
 Destructor. More...
 
- Public Member Functions inherited from TrackingRecHit
virtual TrackingRecHitclone () const =0
 
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 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 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 ()
 

Static Private Attributes

static const AlgebraicMatrix theProjectionMatrix
 

Additional Inherited Members

- 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
 
- 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 20 of file RecHit1D.h.

Constructor & Destructor Documentation

RecHit1D::RecHit1D ( DetId  id)
inline

Definition at line 23 of file RecHit1D.h.

23 : TrackingRecHit(id) {}
TrackingRecHit(DetId id, Type type=valid)
RecHit1D::RecHit1D ( TrackingRecHit::id_type  id = 0)
inline

Definition at line 24 of file RecHit1D.h.

24 : TrackingRecHit(id) {}
TrackingRecHit(DetId id, Type type=valid)
virtual RecHit1D::~RecHit1D ( )
inlinevirtual

Destructor.

Definition at line 27 of file RecHit1D.h.

27 {}

Member Function Documentation

virtual int RecHit1D::dimension ( ) const
inlinevirtual

Return the RecHit dimension.

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 44 of file RecHit1D.h.

44  {
45  return 1;
46  }
virtual LocalPoint RecHit1D::localPosition ( ) const
pure virtual

Local position.

Implements TrackingRecHit.

Implemented in DTSLRecCluster, DTRecHit1D, and DTRecHit1DPair.

Referenced by parameters().

virtual LocalError RecHit1D::localPositionError ( ) const
pure virtual

Error on the local position.

Implements TrackingRecHit.

Implemented in DTSLRecCluster, DTRecHit1D, and DTRecHit1DPair.

Referenced by parametersError().

AlgebraicVector RecHit1D::parameters ( void  ) const
virtual

Return just the x.

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 15 of file RecHit1D.cc.

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

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().

15  {
17  result[0] = localPosition().x();
18  return result;
19 }
virtual LocalPoint localPosition() const =0
Local position.
tuple result
Definition: query.py:137
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:62
AlgebraicSymMatrix RecHit1D::parametersError ( ) const
virtual

Return just "(sigma_x)^2".

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 24 of file RecHit1D.cc.

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

24  {
27  // FIXME: Remove this dependence from Geometry
28 // if ( det().alignmentPositionError()) {
29 // LocalError lape =
30 // ErrorFrameTransformer().transform( det().alignmentPositionError()->globalError(),
31 // det().surface());
32 // m[0][0] = le.xx()+lape.xx();
33 // } else {
34  m[0][0] = le.xx();
35 // }
36  return m;
37 }
float xx() const
Definition: LocalError.h:24
virtual LocalError localPositionError() const =0
Error on the local position.
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicMatrix RecHit1D::projectionMatrix ( ) const
inlinevirtual

Return the projection matrix.

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 39 of file RecHit1D.h.

References theProjectionMatrix.

39  {
40  return theProjectionMatrix;
41  }
static const AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:58

Member Data Documentation

const AlgebraicMatrix RecHit1D::theProjectionMatrix
staticprivate

Definition at line 58 of file RecHit1D.h.

Referenced by projectionMatrix().