CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private 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 ()
 

Private Member Functions

void initialize () const
 

Static Private Attributes

static bool isInitialized
 
static 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"

Date:
2007/07/25 10:35:48
Revision:
1.5
Author
S. Lacaprara, G. Cerminara

Definition at line 22 of file RecHit1D.h.

Constructor & Destructor Documentation

RecHit1D::RecHit1D ( DetId  id)
inline

Definition at line 25 of file RecHit1D.h.

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

Definition at line 26 of file RecHit1D.h.

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

Destructor.

Definition at line 29 of file RecHit1D.h.

29 {}

Member Function Documentation

virtual int RecHit1D::dimension ( ) const
inlinevirtual

Return the RecHit dimension.

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 48 of file RecHit1D.h.

48  {
49  return 1;
50  }
void RecHit1D::initialize ( ) const
private

Definition at line 44 of file RecHit1D.cc.

References isInitialized, and theProjectionMatrix.

Referenced by projectionMatrix().

44  {
46  theProjectionMatrix[0][3] = 1;
47 
48  isInitialized = true;
49 }
static AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:65
CLHEP::HepMatrix AlgebraicMatrix
static bool isInitialized
Definition: RecHit1D.h:63
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 17 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().

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

Return just "(sigma_x)^2".

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 26 of file RecHit1D.cc.

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

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

Return the projection matrix.

Implements TrackingRecHit.

Reimplemented in DTSLRecCluster.

Definition at line 41 of file RecHit1D.h.

References initialize(), isInitialized, and theProjectionMatrix.

41  {
42  if ( !isInitialized) initialize();
43  return theProjectionMatrix;
44  }
void initialize() const
Definition: RecHit1D.cc:44
static AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:65
static bool isInitialized
Definition: RecHit1D.h:63

Member Data Documentation

bool RecHit1D::isInitialized
staticprivate

Definition at line 63 of file RecHit1D.h.

Referenced by initialize(), and projectionMatrix().

AlgebraicMatrix RecHit1D::theProjectionMatrix
staticprivate

Definition at line 65 of file RecHit1D.h.

Referenced by initialize(), and projectionMatrix().