CMS 3D CMS Logo

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

#include <DTRecHit1D.h>

Inheritance diagram for DTRecHit1D:
RecHit1D TrackingRecHit

Public Member Functions

DTRecHit1Dclone () const override
 
float digiTime () const
 Return the time (ns) of the digi used to build the rechit. More...
 
 DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime)
 Constructor from wireId and digi time only. More...
 
 DTRecHit1D ()
 Default constructor. More...
 
 DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime, const LocalPoint &pos)
 
 DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime, const LocalPoint &pos, const LocalError &err)
 Constructor from a local position and error, wireId and digi time. More...
 
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...
 
DTEnums::DTCellSide lrSide () const
 The side of the cell. More...
 
bool operator== (const DTRecHit1D &hit) const
 Comparison operator, based on the wireId and the digi time. More...
 
std::vector< const TrackingRecHit * > recHits () const override
 No components rechits: it returns a null vector. More...
 
std::vector< TrackingRecHit * > recHits () override
 No components rechits: it returns a null vector. More...
 
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...
 
DTWireId wireId () const
 Return the wireId. More...
 
 ~DTRecHit1D () override
 Destructor. More...
 
- Public Member Functions inherited from RecHit1D
int dimension () const override
 Return the RecHit dimension. More...
 
AlgebraicVector parameters () const override
 Return just the x. More...
 
AlgebraicSymMatrix parametersError () const override
 Return just "(sigma_x)^2". More...
 
AlgebraicMatrix projectionMatrix () const override
 Return the projection matrix. More...
 
 RecHit1D (DetId id)
 
 RecHit1D (TrackingRecHit::id_type id=0)
 
 ~RecHit1D () override
 Destructor. More...
 
- 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

float theDigiTime
 
LocalError theLocalError
 
LocalPoint theLocalPosition
 
DTEnums::DTCellSide theLRSide
 
DTWireId theWireId
 

Additional Inherited Members

- 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

1D RecHit for Muon Barrel DT The main feature of muon Barrel RecHits is that they are created in pair, due to left/right ambiguity (the pair is described by

Definition at line 26 of file DTRecHit1D.h.

Constructor & Destructor Documentation

DTRecHit1D::DTRecHit1D ( const DTWireId wireId,
DTEnums::DTCellSide  lr,
float  digiTime 
)

Constructor from wireId and digi time only.

Definition at line 15 of file DTRecHit1D.cc.

17  :
18  RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
19  theWireId(wireId),
20  theLRSide(lr),
23  theLocalError() {}
LocalError theLocalError
Definition: DTRecHit1D.h:133
float theDigiTime
Definition: DTRecHit1D.h:129
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:126
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:113
RecHit1D(DetId id)
Definition: RecHit1D.h:23
DTWireId theWireId
Definition: DTRecHit1D.h:123
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:132
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:62
DTRecHit1D::DTRecHit1D ( )

Default constructor.

Definition at line 27 of file DTRecHit1D.cc.

Referenced by clone().

27  : theWireId(),
28  theLRSide(undefLR),
29  theDigiTime(-1),
31  theLocalError() {}
LocalError theLocalError
Definition: DTRecHit1D.h:133
float theDigiTime
Definition: DTRecHit1D.h:129
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:126
DTWireId theWireId
Definition: DTRecHit1D.h:123
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:132
DTRecHit1D::DTRecHit1D ( const DTWireId wireId,
DTEnums::DTCellSide  lr,
float  digiTime,
const LocalPoint pos 
)

Constructor from a local position, wireId and digi time. 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 37 of file DTRecHit1D.cc.

References theLocalError.

40  :
41  RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
42  theWireId(wireId),
43  theLRSide(lr),
45  theLocalPosition(pos) {
46  float cellResolution = 0.02 ; //cm cell resolution = 200 um = 0.02 cm
48  LocalError(cellResolution*cellResolution, 0., 0.); //FIXME: is it really needed?
49  }
LocalError theLocalError
Definition: DTRecHit1D.h:133
float theDigiTime
Definition: DTRecHit1D.h:129
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:126
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:113
RecHit1D(DetId id)
Definition: RecHit1D.h:23
DTWireId theWireId
Definition: DTRecHit1D.h:123
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:132
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:62
DTRecHit1D::DTRecHit1D ( const DTWireId wireId,
DTEnums::DTCellSide  lr,
float  digiTime,
const LocalPoint pos,
const LocalError err 
)

Constructor from a local position and error, wireId and digi time.

Definition at line 54 of file DTRecHit1D.cc.

58  :
59  RecHit1D(wireId.layerId()),
60  theWireId(wireId),
61  theLRSide(lr),
63  theLocalPosition(pos),
64  theLocalError(err) {}
LocalError theLocalError
Definition: DTRecHit1D.h:133
float theDigiTime
Definition: DTRecHit1D.h:129
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:126
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:113
RecHit1D(DetId id)
Definition: RecHit1D.h:23
DTWireId theWireId
Definition: DTRecHit1D.h:123
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:132
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:62
DTRecHit1D::~DTRecHit1D ( )
override

Destructor.

Definition at line 70 of file DTRecHit1D.cc.

70 {}

Member Function Documentation

DTRecHit1D * DTRecHit1D::clone ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 74 of file DTRecHit1D.cc.

References DTRecHit1D().

Referenced by localPositionError().

74  {
75  return new DTRecHit1D(*this);
76 }
DTRecHit1D()
Default constructor.
Definition: DTRecHit1D.cc:27
float DTRecHit1D::digiTime ( ) const
inline
LocalPoint DTRecHit1D::localPosition ( ) const
inlineoverridevirtual
LocalError DTRecHit1D::localPositionError ( ) const
inlineoverridevirtual

Return the 3-dimensional error on the local position.

Implements RecHit1D.

Definition at line 66 of file DTRecHit1D.h.

References clone(), recHits(), and theLocalError.

Referenced by DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTHitPairForFit::DTHitPairForFit(), operator<<(), DTRecHit1DPair::operator==(), and DTRecHitQuality::recHitPositionError().

66  {
67  return theLocalError;
68  }
LocalError theLocalError
Definition: DTRecHit1D.h:133
DTEnums::DTCellSide DTRecHit1D::lrSide ( ) const
inline

The side of the cell.

Definition at line 82 of file DTRecHit1D.h.

References theLRSide.

Referenced by DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTCombinatorialPatternReco4D::segmentSpecialZed(), and DTParametrizedDriftAlgo::setES().

82  {
83  return theLRSide;
84  }
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:126
bool DTRecHit1D::operator== ( const DTRecHit1D hit) const

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

Definition at line 97 of file DTRecHit1D.cc.

References digiTime(), and wireId().

Referenced by digiTime().

97  {
98  return wireId() == hit.wireId() && fabs(digiTime() - hit.digiTime()) < 0.1;
99 }
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:113
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:107
vector< const TrackingRecHit * > DTRecHit1D::recHits ( ) const
overridevirtual

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 81 of file DTRecHit1D.cc.

Referenced by localPositionError().

81  {
82  vector<const TrackingRecHit*> nullvector;
83  return nullvector;
84 }
vector< TrackingRecHit * > DTRecHit1D::recHits ( )
overridevirtual

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 90 of file DTRecHit1D.cc.

90  {
91  vector<TrackingRecHit*> nullvector;
92  return nullvector;
93 }
void DTRecHit1D::setError ( LocalError  err)
inline

Set local position error.

Definition at line 94 of file DTRecHit1D.h.

References theLocalError.

Referenced by DTRecHit1DPair::setPositionAndError().

94  {
95  theLocalError = err;
96  }
LocalError theLocalError
Definition: DTRecHit1D.h:133
void DTRecHit1D::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 88 of file DTRecHit1D.h.

References theLocalPosition.

Referenced by DTRecHit1DPair::setPosition(), and DTRecHit1DPair::setPositionAndError().

88  {
89  theLocalPosition = pos;
90  }
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:132
void DTRecHit1D::setPositionAndError ( LocalPoint  pos,
LocalError  err 
)
inline

Set the local position and its error.

Definition at line 100 of file DTRecHit1D.h.

References theLocalError, and theLocalPosition.

Referenced by DTLinearDriftAlgo::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), and DTParametrizedDriftAlgo::setES().

100  {
101  theLocalPosition = pos;
102  theLocalError = err;
103  }
LocalError theLocalError
Definition: DTRecHit1D.h:133
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:132
DTWireId DTRecHit1D::wireId ( ) const
inline

Member Data Documentation

float DTRecHit1D::theDigiTime
private

Definition at line 129 of file DTRecHit1D.h.

Referenced by digiTime().

LocalError DTRecHit1D::theLocalError
private

Definition at line 133 of file DTRecHit1D.h.

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

LocalPoint DTRecHit1D::theLocalPosition
private

Definition at line 132 of file DTRecHit1D.h.

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

DTEnums::DTCellSide DTRecHit1D::theLRSide
private

Definition at line 126 of file DTRecHit1D.h.

Referenced by lrSide().

DTWireId DTRecHit1D::theWireId
private

Definition at line 123 of file DTRecHit1D.h.

Referenced by wireId().