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 ()
 Default constructor. More...
 
 DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime)
 Constructor from wireId and digi time only. 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 (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

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 25 of file DTRecHit1D.h.

Constructor & Destructor Documentation

◆ DTRecHit1D() [1/4]

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

Constructor from wireId and digi time only.

Definition at line 12 of file DTRecHit1D.cc.

15  : RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
17  theLRSide(lr),
20  theLocalError() {}

◆ DTRecHit1D() [2/4]

DTRecHit1D::DTRecHit1D ( )

Default constructor.

Definition at line 23 of file DTRecHit1D.cc.

Referenced by clone().

◆ DTRecHit1D() [3/4]

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 29 of file DTRecHit1D.cc.

33  : RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
35  theLRSide(lr),
38  float cellResolution = 0.02; //cm cell resolution = 200 um = 0.02 cm
39  theLocalError = LocalError(cellResolution * cellResolution, 0., 0.); //FIXME: is it really needed?
40 }

References theLocalError.

◆ DTRecHit1D() [4/4]

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 43 of file DTRecHit1D.cc.

◆ ~DTRecHit1D()

DTRecHit1D::~DTRecHit1D ( )
override

Destructor.

Definition at line 53 of file DTRecHit1D.cc.

53 {}

Member Function Documentation

◆ clone()

DTRecHit1D * DTRecHit1D::clone ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 55 of file DTRecHit1D.cc.

55 { return new DTRecHit1D(*this); }

References DTRecHit1D().

◆ digiTime()

float DTRecHit1D::digiTime ( ) const
inline

◆ localPosition()

LocalPoint DTRecHit1D::localPosition ( ) const
inlineoverridevirtual

◆ localPositionError()

LocalError DTRecHit1D::localPositionError ( ) const
inlineoverridevirtual

Return the 3-dimensional error on the local position.

Implements RecHit1D.

Definition at line 50 of file DTRecHit1D.h.

50 { return theLocalError; }

References theLocalError.

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

◆ lrSide()

DTEnums::DTCellSide DTRecHit1D::lrSide ( ) const
inline

◆ operator==()

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

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

Definition at line 72 of file DTRecHit1D.cc.

72  {
73  return wireId() == hit.wireId() && fabs(digiTime() - hit.digiTime()) < 0.1;
74 }

References digiTime(), and wireId().

◆ recHits() [1/2]

vector< const TrackingRecHit * > DTRecHit1D::recHits ( ) const
overridevirtual

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 59 of file DTRecHit1D.cc.

59  {
60  vector<const TrackingRecHit*> nullvector;
61  return nullvector;
62 }

◆ recHits() [2/2]

vector< TrackingRecHit * > DTRecHit1D::recHits ( )
overridevirtual

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 66 of file DTRecHit1D.cc.

66  {
67  vector<TrackingRecHit*> nullvector;
68  return nullvector;
69 }

◆ setError()

void DTRecHit1D::setError ( LocalError  err)
inline

Set local position error.

Definition at line 67 of file DTRecHit1D.h.

67 { theLocalError = err; }

References runTheMatrix::err, and theLocalError.

Referenced by DTRecHit1DPair::setPositionAndError().

◆ setPosition()

void DTRecHit1D::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 64 of file DTRecHit1D.h.

64 { theLocalPosition = pos; }

References theLocalPosition.

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

◆ setPositionAndError()

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

Set the local position and its error.

Definition at line 70 of file DTRecHit1D.h.

70  {
73  }

References runTheMatrix::err, theLocalError, and theLocalPosition.

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

◆ wireId()

DTWireId DTRecHit1D::wireId ( ) const
inline

Member Data Documentation

◆ theDigiTime

float DTRecHit1D::theDigiTime
private

Definition at line 92 of file DTRecHit1D.h.

Referenced by digiTime().

◆ theLocalError

LocalError DTRecHit1D::theLocalError
private

Definition at line 96 of file DTRecHit1D.h.

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

◆ theLocalPosition

LocalPoint DTRecHit1D::theLocalPosition
private

Definition at line 95 of file DTRecHit1D.h.

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

◆ theLRSide

DTEnums::DTCellSide DTRecHit1D::theLRSide
private

Definition at line 89 of file DTRecHit1D.h.

Referenced by lrSide().

◆ theWireId

DTWireId DTRecHit1D::theWireId
private

Definition at line 86 of file DTRecHit1D.h.

Referenced by wireId().

DTRecHit1D::theWireId
DTWireId theWireId
Definition: DTRecHit1D.h:86
pos
Definition: PixelAliasList.h:18
DTRecHit1D::theLRSide
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:89
DTRecHit1D::theLocalPosition
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:95
DTRecHit1D::wireId
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:76
RecHit1D::RecHit1D
RecHit1D(DetId id)
Definition: RecHit1D.h:21
runTheMatrix.err
err
Definition: runTheMatrix.py:288
LocalError
Definition: LocalError.h:12
DTRecHit1D::theLocalError
LocalError theLocalError
Definition: DTRecHit1D.h:96
DTRecHit1D::digiTime
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:79
DTWireId::layerId
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:45
DTRecHit1D::DTRecHit1D
DTRecHit1D()
Default constructor.
Definition: DTRecHit1D.cc:23
DTRecHit1D::theDigiTime
float theDigiTime
Definition: DTRecHit1D.h:92
hit
Definition: SiStripHitEffFromCalibTree.cc:88