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 Attributes
ME0RecHit Class Reference

#include <ME0RecHit.h>

Inheritance diagram for ME0RecHit:
RecHit2DLocalPos TrackingRecHit

Public Member Functions

virtual ME0RecHitclone () const
 
virtual LocalPoint localPosition () const
 Return the 3-dimensional local position. More...
 
virtual LocalError localPositionError () const
 Return the 3-dimensional error on the local position. More...
 
ME0DetId me0Id () const
 Return the gemId. More...
 
 ME0RecHit (const ME0DetId &me0Id, float tof)
 
 ME0RecHit ()
 Default constructor. More...
 
 ME0RecHit (const ME0DetId &me0Id, float tof, const LocalPoint &pos)
 Constructor from a local position, ME0Id and digi time. More...
 
 ME0RecHit (const ME0DetId &me0Id, float tof, const LocalPoint &pos, const LocalError &err)
 
bool operator== (const ME0RecHit &hit) const
 Comparison operator, based on the gemId and the digi time. More...
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 
void setError (LocalError err)
 Set local position error. More...
 
void setPosition (LocalPoint pos)
 Set local position. More...
 
void setPositionAndError (LocalPoint pos, LocalError err)
 Set the local position and its error. More...
 
float tof () const
 
virtual ~ME0RecHit ()
 Destructor. More...
 
- Public Member Functions inherited from RecHit2DLocalPos
virtual int dimension () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
virtual ~RecHit2DLocalPos ()
 
- 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 (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Attributes

LocalError theLocalError
 
LocalPoint theLocalPosition
 
ME0DetId theME0Id
 
float theTOF
 

Additional Inherited Members

- Public Types inherited from RecHit2DLocalPos
typedef GloballyPositioned
< float >::LocalPoint 
LocalPoint
 
- Public Types inherited from TrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
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
}
 
- 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

RecHit for ME0

Date:
2014/02/03 16:54:23
Revision:
1.1
Author
M. Maggi – INFN Bari

Definition at line 17 of file ME0RecHit.h.

Constructor & Destructor Documentation

ME0RecHit::ME0RecHit ( const ME0DetId me0Id,
float  tof 
)

Definition at line 13 of file ME0RecHit.cc.

13  : RecHit2DLocalPos(me0Id),
15 {
16 }
RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:104
ME0DetId theME0Id
Definition: ME0RecHit.h:103
float tof() const
Definition: ME0RecHit.h:95
LocalError theLocalError
Definition: ME0RecHit.h:107
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
ME0RecHit::ME0RecHit ( )

Default constructor.

Definition at line 18 of file ME0RecHit.cc.

Referenced by clone().

18  : RecHit2DLocalPos(),
20 {
21 }
RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:104
ME0DetId theME0Id
Definition: ME0RecHit.h:103
LocalError theLocalError
Definition: ME0RecHit.h:107
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
ME0RecHit::ME0RecHit ( const ME0DetId me0Id,
float  tof,
const LocalPoint pos 
)

Constructor from a local position, ME0Id and digi time.

Definition at line 24 of file ME0RecHit.cc.

24  : RecHit2DLocalPos(me0Id),
26 {
27 }
RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:104
ME0DetId theME0Id
Definition: ME0RecHit.h:103
float tof() const
Definition: ME0RecHit.h:95
LocalError theLocalError
Definition: ME0RecHit.h:107
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
ME0RecHit::ME0RecHit ( const ME0DetId me0Id,
float  tof,
const LocalPoint pos,
const LocalError err 
)

Constructor from a local position and error, ME0Id and tof. The 3-dimensional local error is defined as resolution (the cell resolution) for the coordinate being measured and 0 for the two other coordinates

Definition at line 32 of file ME0RecHit.cc.

35  : RecHit2DLocalPos(me0Id),
36  theME0Id(me0Id), theTOF(tof), theLocalPosition(pos), theLocalError(err)
37 {
38 }
RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:104
ME0DetId theME0Id
Definition: ME0RecHit.h:103
float tof() const
Definition: ME0RecHit.h:95
LocalError theLocalError
Definition: ME0RecHit.h:107
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
ME0RecHit::~ME0RecHit ( )
virtual

Destructor.

Definition at line 41 of file ME0RecHit.cc.

42 {
43 }

Member Function Documentation

ME0RecHit * ME0RecHit::clone ( void  ) const
virtual

Implements RecHit2DLocalPos.

Definition at line 47 of file ME0RecHit.cc.

References ME0RecHit().

47  {
48  return new ME0RecHit(*this);
49 }
ME0RecHit()
Default constructor.
Definition: ME0RecHit.cc:18
virtual LocalPoint ME0RecHit::localPosition ( ) const
inlinevirtual

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 47 of file ME0RecHit.h.

References theLocalPosition.

Referenced by operator<<().

47  {
48  return theLocalPosition;
49  }
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
virtual LocalError ME0RecHit::localPositionError ( ) const
inlinevirtual

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 53 of file ME0RecHit.h.

References theLocalError.

Referenced by operator<<().

53  {
54  return theLocalError;
55  }
LocalError theLocalError
Definition: ME0RecHit.h:107
ME0DetId ME0RecHit::me0Id ( ) const
inline

Return the gemId.

Definition at line 91 of file ME0RecHit.h.

References theME0Id.

91  {
92  return theME0Id;
93  }
ME0DetId theME0Id
Definition: ME0RecHit.h:103
bool ME0RecHit::operator== ( const ME0RecHit hit) const

Comparison operator, based on the gemId and the digi time.

Definition at line 66 of file ME0RecHit.cc.

References TrackingRecHit::geographicalId().

66  {
67  return this->geographicalId() == hit.geographicalId();
68 }
DetId geographicalId() const
std::vector< const TrackingRecHit * > ME0RecHit::recHits ( ) const
virtual

Access to component RecHits. No components rechits: it returns a null vector

Reimplemented from RecHit2DLocalPos.

Definition at line 54 of file ME0RecHit.cc.

54  {
55  std::vector<const TrackingRecHit*> nullvector;
56  return nullvector;
57 }
std::vector< TrackingRecHit * > ME0RecHit::recHits ( )
virtual

Non-const access to component RecHits. No components rechits: it returns a null vector

Reimplemented from RecHit2DLocalPos.

Definition at line 60 of file ME0RecHit.cc.

60  {
61  std::vector<TrackingRecHit*> nullvector;
62  return nullvector;
63 }
void ME0RecHit::setError ( LocalError  err)
inline

Set local position error.

Definition at line 78 of file ME0RecHit.h.

References theLocalError.

78  {
79  theLocalError = err;
80  }
LocalError theLocalError
Definition: ME0RecHit.h:107
void ME0RecHit::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 72 of file ME0RecHit.h.

References theLocalPosition.

72  {
73  theLocalPosition = pos;
74  }
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
void ME0RecHit::setPositionAndError ( LocalPoint  pos,
LocalError  err 
)
inline

Set the local position and its error.

Definition at line 84 of file ME0RecHit.h.

References theLocalError, and theLocalPosition.

84  {
85  theLocalPosition = pos;
86  theLocalError = err;
87  }
LocalError theLocalError
Definition: ME0RecHit.h:107
LocalPoint theLocalPosition
Definition: ME0RecHit.h:106
float ME0RecHit::tof ( ) const
inline

Definition at line 95 of file ME0RecHit.h.

References theTOF.

95  {
96  return theTOF;
97  }
float theTOF
Definition: ME0RecHit.h:104

Member Data Documentation

LocalError ME0RecHit::theLocalError
private

Definition at line 107 of file ME0RecHit.h.

Referenced by localPositionError(), setError(), and setPositionAndError().

LocalPoint ME0RecHit::theLocalPosition
private

Definition at line 106 of file ME0RecHit.h.

Referenced by localPosition(), setPosition(), and setPositionAndError().

ME0DetId ME0RecHit::theME0Id
private

Definition at line 103 of file ME0RecHit.h.

Referenced by me0Id().

float ME0RecHit::theTOF
private

Definition at line 104 of file ME0RecHit.h.

Referenced by tof().