CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTRecHit1D Class Reference

#include <DTRecHit1D.h>

Inheritance diagram for DTRecHit1D:
RecHit1D TrackingRecHit

List of all members.

Public Member Functions

virtual DTRecHit1Dclone () const
float digiTime () const
 Return the time (ns) of the digi used to build the rechit.
 DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime)
 Constructor from wireId and digi time only.
 DTRecHit1D ()
 Default constructor.
 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.
 DTRecHit1D (const DTWireId &wireId, DTEnums::DTCellSide lr, float digiTime, const LocalPoint &pos)
virtual LocalPoint localPosition () const
 Return the 3-dimensional local position.
virtual LocalError localPositionError () const
 Return the 3-dimensional error on the local position.
DTEnums::DTCellSide lrSide () const
 The side of the cell.
bool operator== (const DTRecHit1D &hit) const
 Comparison operator, based on the wireId and the digi time.
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 No components rechits: it returns a null vector.
virtual std::vector
< TrackingRecHit * > 
recHits ()
 No components rechits: it returns a null vector.
void setError (LocalError err)
 Set local position error.
void setPosition (LocalPoint pos)
 Set local position.
void setPositionAndError (LocalPoint pos, LocalError err)
 Set the local position and its error.
DTWireId wireId () const
 Return the wireId.
virtual ~DTRecHit1D ()
 Destructor.

Private Attributes

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

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.

                                       : 
    RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
    theWireId(wireId),
    theLRSide(lr),
    theDigiTime(digiTime),
    theLocalPosition(),
    theLocalError() {}
DTRecHit1D::DTRecHit1D ( )

Default constructor.

Definition at line 29 of file DTRecHit1D.cc.

Referenced by clone().

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.

                                              : 
    RecHit1D(wireId.layerId()), // the detId of the Det (a DTLayer).
    theWireId(wireId),
    theLRSide(lr),
    theDigiTime(digiTime),
    theLocalPosition(pos) {
  float cellResolution = 0.02 ; //cm  cell resolution = 200 um = 0.02 cm 
  theLocalError =
    LocalError(cellResolution*cellResolution, 0., 0.); //FIXME: is it really needed?
    }
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.

DTRecHit1D::~DTRecHit1D ( ) [virtual]

Destructor.

Definition at line 72 of file DTRecHit1D.cc.

{}

Member Function Documentation

DTRecHit1D * DTRecHit1D::clone ( void  ) const [virtual]

Implements TrackingRecHit.

Definition at line 76 of file DTRecHit1D.cc.

References DTRecHit1D().

                                     {
  return new DTRecHit1D(*this);
}
float DTRecHit1D::digiTime ( ) const [inline]
virtual LocalPoint DTRecHit1D::localPosition ( ) const [inline, virtual]
virtual LocalError DTRecHit1D::localPositionError ( ) const [inline, virtual]

Return the 3-dimensional error on the local position.

Implements RecHit1D.

Definition at line 68 of file DTRecHit1D.h.

References theLocalError.

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

                                                {
    return theLocalError;
  }
DTEnums::DTCellSide DTRecHit1D::lrSide ( ) const [inline]
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().

                                                       {
  return wireId() == hit.wireId() && fabs(digiTime() - hit.digiTime()) < 0.1;
}
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.

                                                        {
  vector<const TrackingRecHit*> nullvector;
  return nullvector; 
}
vector< TrackingRecHit * > DTRecHit1D::recHits ( ) [virtual]

No components rechits: it returns a null vector.

Implements TrackingRecHit.

Definition at line 92 of file DTRecHit1D.cc.

                                            {
  vector<TrackingRecHit*> nullvector;
  return nullvector; 
}
void DTRecHit1D::setError ( LocalError  err) [inline]

Set local position error.

Definition at line 96 of file DTRecHit1D.h.

References theLocalError.

                                {
    theLocalError = err;
  }
void DTRecHit1D::setPosition ( LocalPoint  pos) [inline]

Set local position.

Definition at line 90 of file DTRecHit1D.h.

References pos, and theLocalPosition.

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 DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), and DTLinearDriftAlgo::compute().

DTWireId DTRecHit1D::wireId ( ) const [inline]

Member Data Documentation

float DTRecHit1D::theDigiTime [private]

Definition at line 131 of file DTRecHit1D.h.

Referenced by digiTime().

Definition at line 135 of file DTRecHit1D.h.

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

Definition at line 134 of file DTRecHit1D.h.

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

Definition at line 128 of file DTRecHit1D.h.

Referenced by lrSide().

Definition at line 125 of file DTRecHit1D.h.

Referenced by wireId().