CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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

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 (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...
 
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 (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, 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::ME0RecHit ( const ME0DetId me0Id,
float  tof 
)

Definition at line 11 of file ME0RecHit.cc.

RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:73
ME0DetId theME0Id
Definition: ME0RecHit.h:72
float tof() const
Definition: ME0RecHit.h:66
LocalError theLocalError
Definition: ME0RecHit.h:76
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
ME0RecHit::ME0RecHit ( )

Default constructor.

Definition at line 14 of file ME0RecHit.cc.

Referenced by clone().

RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:73
ME0DetId theME0Id
Definition: ME0RecHit.h:72
LocalError theLocalError
Definition: ME0RecHit.h:76
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
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.

17  : RecHit2DLocalPos(me0Id), theME0Id(me0Id), theTOF(tof), theLocalPosition(pos), theLocalError() {}
RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:73
ME0DetId theME0Id
Definition: ME0RecHit.h:72
float tof() const
Definition: ME0RecHit.h:66
LocalError theLocalError
Definition: ME0RecHit.h:76
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
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.

21  : RecHit2DLocalPos(me0Id), theME0Id(me0Id), theTOF(tof), theLocalPosition(pos), theLocalError(err) {}
RecHit2DLocalPos(DetId id)
float theTOF
Definition: ME0RecHit.h:73
ME0DetId theME0Id
Definition: ME0RecHit.h:72
float tof() const
Definition: ME0RecHit.h:66
LocalError theLocalError
Definition: ME0RecHit.h:76
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
ME0RecHit::~ME0RecHit ( )
override

Destructor.

Definition at line 24 of file ME0RecHit.cc.

24 {}

Member Function Documentation

ME0RecHit * ME0RecHit::clone ( void  ) const
overridevirtual

Implements RecHit2DLocalPos.

Definition at line 26 of file ME0RecHit.cc.

References ME0RecHit().

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

26 { return new ME0RecHit(*this); }
ME0RecHit()
Default constructor.
Definition: ME0RecHit.cc:14
LocalPoint ME0RecHit::localPosition ( ) const
inlineoverridevirtual

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 36 of file ME0RecHit.h.

References theLocalPosition.

Referenced by FWME0RecHitProxyBuilder::buildViewType(), ME0SegAlgoRU::getHitSegChi2(), and operator<<().

36 { return theLocalPosition; }
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
LocalError ME0RecHit::localPositionError ( ) const
inlineoverridevirtual

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 39 of file ME0RecHit.h.

References theLocalError.

Referenced by FWME0RecHitProxyBuilder::buildViewType(), ME0SegAlgoRU::getHitSegChi2(), and operator<<().

39 { return theLocalError; }
LocalError theLocalError
Definition: ME0RecHit.h:76
ME0DetId ME0RecHit::me0Id ( ) const
inline

Return the gemId.

Definition at line 64 of file ME0RecHit.h.

References theME0Id.

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

64 { return theME0Id; }
ME0DetId theME0Id
Definition: ME0RecHit.h:72
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.

References TrackingRecHit::geographicalId().

42 { return this->geographicalId() == hit.geographicalId(); }
DetId geographicalId() const
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 }
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 }
void ME0RecHit::setError ( LocalError  err)
inline

Set local position error.

Definition at line 55 of file ME0RecHit.h.

References submitPVValidationJobs::err, and theLocalError.

55 { theLocalError = err; }
LocalError theLocalError
Definition: ME0RecHit.h:76
void ME0RecHit::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 52 of file ME0RecHit.h.

References theLocalPosition.

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

52 { theLocalPosition = pos; }
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
void ME0RecHit::setPositionAndError ( LocalPoint  pos,
LocalError  err 
)
inline

Set the local position and its error.

Definition at line 58 of file ME0RecHit.h.

References submitPVValidationJobs::err, theLocalError, and theLocalPosition.

58  {
59  theLocalPosition = pos;
61  }
LocalError theLocalError
Definition: ME0RecHit.h:76
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
float ME0RecHit::tof ( ) const
inline

Definition at line 66 of file ME0RecHit.h.

References theTOF.

Referenced by ME0SegAlgoRU::areHitsConsistentInTime(), and ME0SegAlgoRU::compareProtoSegment().

66 { return theTOF; }
float theTOF
Definition: ME0RecHit.h:73

Member Data Documentation

LocalError ME0RecHit::theLocalError
private

Definition at line 76 of file ME0RecHit.h.

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

LocalPoint ME0RecHit::theLocalPosition
private

Definition at line 75 of file ME0RecHit.h.

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

ME0DetId ME0RecHit::theME0Id
private

Definition at line 72 of file ME0RecHit.h.

Referenced by me0Id().

float ME0RecHit::theTOF
private

Definition at line 73 of file ME0RecHit.h.

Referenced by tof().