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
DTRecHit1D Class Reference

#include <DTRecHit1D.h>

Inheritance diagram for DTRecHit1D:
RecHit1D TrackingRecHit

Public Member Functions

virtual DTRecHit1Dclone () const
 
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...
 
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...
 
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...
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 No components rechits: it returns a null vector. More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 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...
 
virtual ~DTRecHit1D ()
 Destructor. More...
 
- Public Member Functions inherited from RecHit1D
virtual int dimension () const
 Return the RecHit dimension. 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
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
Type getType () const
 
bool isValid () const
 
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)
 
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 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 }
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
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 28 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 17 of file DTRecHit1D.cc.

19  :
20  RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
21  theWireId(wireId),
22  theLRSide(lr),
25  theLocalError() {}
LocalError theLocalError
Definition: DTRecHit1D.h:135
float theDigiTime
Definition: DTRecHit1D.h:131
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:128
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:115
RecHit1D(DetId id)
Definition: RecHit1D.h:25
DTWireId theWireId
Definition: DTRecHit1D.h:125
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:64
DTRecHit1D::DTRecHit1D ( )

Default constructor.

Definition at line 29 of file DTRecHit1D.cc.

Referenced by clone().

29  : theWireId(),
30  theLRSide(undefLR),
31  theDigiTime(-1),
33  theLocalError() {}
LocalError theLocalError
Definition: DTRecHit1D.h:135
float theDigiTime
Definition: DTRecHit1D.h:131
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:128
DTWireId theWireId
Definition: DTRecHit1D.h:125
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
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 39 of file DTRecHit1D.cc.

References theLocalError.

42  :
43  RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
44  theWireId(wireId),
45  theLRSide(lr),
47  theLocalPosition(pos) {
48  float cellResolution = 0.02 ; //cm cell resolution = 200 um = 0.02 cm
50  LocalError(cellResolution*cellResolution, 0., 0.); //FIXME: is it really needed?
51  }
LocalError theLocalError
Definition: DTRecHit1D.h:135
float theDigiTime
Definition: DTRecHit1D.h:131
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:128
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:115
RecHit1D(DetId id)
Definition: RecHit1D.h:25
DTWireId theWireId
Definition: DTRecHit1D.h:125
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:64
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 56 of file DTRecHit1D.cc.

60  :
61  RecHit1D(wireId.layerId()),
62  theWireId(wireId),
63  theLRSide(lr),
65  theLocalPosition(pos),
66  theLocalError(err) {}
LocalError theLocalError
Definition: DTRecHit1D.h:135
float theDigiTime
Definition: DTRecHit1D.h:131
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:128
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:115
RecHit1D(DetId id)
Definition: RecHit1D.h:25
DTWireId theWireId
Definition: DTRecHit1D.h:125
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:64
DTRecHit1D::~DTRecHit1D ( )
virtual

Destructor.

Definition at line 72 of file DTRecHit1D.cc.

72 {}

Member Function Documentation

DTRecHit1D * DTRecHit1D::clone ( void  ) const
virtual

Implements TrackingRecHit.

Definition at line 76 of file DTRecHit1D.cc.

References DTRecHit1D().

76  {
77  return new DTRecHit1D(*this);
78 }
DTRecHit1D()
Default constructor.
Definition: DTRecHit1D.cc:29
float DTRecHit1D::digiTime ( ) const
inline
virtual LocalPoint DTRecHit1D::localPosition ( ) const
inlinevirtual
virtual LocalError DTRecHit1D::localPositionError ( ) const
inlinevirtual

Return the 3-dimensional error on the local position.

Implements RecHit1D.

Definition at line 68 of file DTRecHit1D.h.

References theLocalError.

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

68  {
69  return theLocalError;
70  }
LocalError theLocalError
Definition: DTRecHit1D.h:135
DTEnums::DTCellSide DTRecHit1D::lrSide ( ) const
inline

The side of the cell.

Definition at line 84 of file DTRecHit1D.h.

References theLRSide.

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

84  {
85  return theLRSide;
86  }
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:128
bool DTRecHit1D::operator== ( const DTRecHit1D hit) const

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

Definition at line 99 of file DTRecHit1D.cc.

References digiTime(), and wireId().

99  {
100  return wireId() == hit.wireId() && fabs(digiTime() - hit.digiTime()) < 0.1;
101 }
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:115
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:109
vector< const TrackingRecHit * > DTRecHit1D::recHits ( ) const
virtual

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 83 of file DTRecHit1D.cc.

83  {
84  vector<const TrackingRecHit*> nullvector;
85  return nullvector;
86 }
vector< TrackingRecHit * > DTRecHit1D::recHits ( )
virtual

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 92 of file DTRecHit1D.cc.

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

Set local position error.

Definition at line 96 of file DTRecHit1D.h.

References theLocalError.

Referenced by DTRecHit1DPair::setPositionAndError().

96  {
97  theLocalError = err;
98  }
LocalError theLocalError
Definition: DTRecHit1D.h:135
void DTRecHit1D::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 90 of file DTRecHit1D.h.

References pos, and theLocalPosition.

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

90  {
92  }
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
void DTRecHit1D::setPositionAndError ( LocalPoint  pos,
LocalError  err 
)
inline

Set the local position and its error.

Definition at line 102 of file DTRecHit1D.h.

References pos, theLocalError, and theLocalPosition.

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

102  {
104  theLocalError = err;
105  }
LocalError theLocalError
Definition: DTRecHit1D.h:135
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
DTWireId DTRecHit1D::wireId ( ) const
inline

Member Data Documentation

float DTRecHit1D::theDigiTime
private

Definition at line 131 of file DTRecHit1D.h.

Referenced by digiTime().

LocalError DTRecHit1D::theLocalError
private

Definition at line 135 of file DTRecHit1D.h.

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

LocalPoint DTRecHit1D::theLocalPosition
private

Definition at line 134 of file DTRecHit1D.h.

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

DTEnums::DTCellSide DTRecHit1D::theLRSide
private

Definition at line 128 of file DTRecHit1D.h.

Referenced by lrSide().

DTWireId DTRecHit1D::theWireId
private

Definition at line 125 of file DTRecHit1D.h.

Referenced by wireId().