CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ME0RecHit Class Reference

#include <ME0RecHit.h>

Inheritance diagram for ME0RecHit:
RecHit2DLocalPos TrackingRecHit

Public Member Functions

ME0RecHitclone () const override
 
LocalPoint localPosition () const override
 Return the 3-dimensional local position. More...
 
LocalError localPositionError () const override
 Return the 3-dimensional error on the local position. More...
 
ME0DetId me0Id () const
 Return the gemId. More...
 
 ME0RecHit ()
 Default constructor. More...
 
 ME0RecHit (const ME0DetId &me0Id, float tof)
 
 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...
 
std::vector< const TrackingRecHit * > recHits () const override
 
std::vector< TrackingRecHit * > recHits () override
 
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
 
 ~ME0RecHit () override
 Destructor. More...
 
- Public Member Functions inherited from RecHit2DLocalPos
int dimension () const override
 
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 ()
 

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< 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

RecHit for ME0

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

Definition at line 16 of file ME0RecHit.h.

Constructor & Destructor Documentation

◆ ME0RecHit() [1/4]

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

Definition at line 11 of file ME0RecHit.cc.

◆ ME0RecHit() [2/4]

ME0RecHit::ME0RecHit ( )

Default constructor.

Definition at line 14 of file ME0RecHit.cc.

Referenced by clone().

◆ ME0RecHit() [3/4]

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

Constructor from a local position, ME0Id and digi time.

Definition at line 16 of file ME0RecHit.cc.

◆ ME0RecHit() [4/4]

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 20 of file ME0RecHit.cc.

◆ ~ME0RecHit()

ME0RecHit::~ME0RecHit ( )
override

Destructor.

Definition at line 24 of file ME0RecHit.cc.

24 {}

Member Function Documentation

◆ clone()

ME0RecHit * ME0RecHit::clone ( void  ) const
overridevirtual

Implements RecHit2DLocalPos.

Definition at line 26 of file ME0RecHit.cc.

26 { return new ME0RecHit(*this); }

References ME0RecHit().

Referenced by ME0SegmentAlgorithm::buildSegments(), and ME0SegAlgoRU::makeFit().

◆ localPosition()

LocalPoint ME0RecHit::localPosition ( ) const
inlineoverridevirtual

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 36 of file ME0RecHit.h.

36 { return theLocalPosition; }

References theLocalPosition.

Referenced by FWME0RecHitProxyBuilder::buildViewType().

◆ localPositionError()

LocalError ME0RecHit::localPositionError ( ) const
inlineoverridevirtual

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 39 of file ME0RecHit.h.

39 { return theLocalError; }

References theLocalError.

Referenced by FWME0RecHitProxyBuilder::buildViewType().

◆ me0Id()

ME0DetId ME0RecHit::me0Id ( ) const
inline

Return the gemId.

Definition at line 64 of file ME0RecHit.h.

64 { return theME0Id; }

References theME0Id.

Referenced by FWME0RecHitProxyBuilder::buildViewType(), and ME0TriggerPseudoBuilder::dumpAllME0Segments().

◆ operator==()

bool ME0RecHit::operator== ( const ME0RecHit hit) const

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

Definition at line 42 of file ME0RecHit.cc.

42 { return this->geographicalId() == hit.geographicalId(); }

References TrackingRecHit::geographicalId().

◆ recHits() [1/2]

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

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

Implements TrackingRecHit.

Definition at line 30 of file ME0RecHit.cc.

30  {
31  std::vector<const TrackingRecHit*> nullvector;
32  return nullvector;
33 }

◆ recHits() [2/2]

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

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

Implements TrackingRecHit.

Definition at line 36 of file ME0RecHit.cc.

36  {
37  std::vector<TrackingRecHit*> nullvector;
38  return nullvector;
39 }

◆ setError()

void ME0RecHit::setError ( LocalError  err)
inline

Set local position error.

Definition at line 55 of file ME0RecHit.h.

55 { theLocalError = err; }

References runTheMatrix::err, and theLocalError.

◆ setPosition()

void ME0RecHit::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 52 of file ME0RecHit.h.

52 { theLocalPosition = pos; }

References theLocalPosition.

Referenced by ME0SegmentAlgorithm::buildSegments(), and ME0SegAlgoRU::makeFit().

◆ setPositionAndError()

void ME0RecHit::setPositionAndError ( LocalPoint  pos,
LocalError  err 
)
inline

Set the local position and its error.

Definition at line 58 of file ME0RecHit.h.

58  {
61  }

References runTheMatrix::err, theLocalError, and theLocalPosition.

◆ tof()

float ME0RecHit::tof ( ) const
inline

Definition at line 66 of file ME0RecHit.h.

66 { return theTOF; }

References theTOF.

Referenced by ME0SegAlgoRU::compareProtoSegment().

Member Data Documentation

◆ theLocalError

LocalError ME0RecHit::theLocalError
private

Definition at line 76 of file ME0RecHit.h.

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

◆ theLocalPosition

LocalPoint ME0RecHit::theLocalPosition
private

Definition at line 75 of file ME0RecHit.h.

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

◆ theME0Id

ME0DetId ME0RecHit::theME0Id
private

Definition at line 72 of file ME0RecHit.h.

Referenced by me0Id().

◆ theTOF

float ME0RecHit::theTOF
private

Definition at line 73 of file ME0RecHit.h.

Referenced by tof().

ME0RecHit::theTOF
float theTOF
Definition: ME0RecHit.h:73
pos
Definition: PixelAliasList.h:18
TrackingRecHit::geographicalId
DetId geographicalId() const
Definition: TrackingRecHit.h:120
ME0RecHit::theLocalError
LocalError theLocalError
Definition: ME0RecHit.h:76
ME0RecHit::theLocalPosition
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
ME0RecHit::theME0Id
ME0DetId theME0Id
Definition: ME0RecHit.h:72
runTheMatrix.err
err
Definition: runTheMatrix.py:288
ME0RecHit::ME0RecHit
ME0RecHit()
Default constructor.
Definition: ME0RecHit.cc:14
RecHit2DLocalPos::RecHit2DLocalPos
RecHit2DLocalPos(DetId id)
Definition: RecHit2DLocalPos.h:12
ME0RecHit::me0Id
ME0DetId me0Id() const
Return the gemId.
Definition: ME0RecHit.h:64
ME0RecHit::tof
float tof() const
Definition: ME0RecHit.h:66