CMS 3D CMS Logo

Public Member Functions | Private Attributes

GEMRecHit Class Reference

#include <GEMRecHit.h>

Inheritance diagram for GEMRecHit:
RecHit2DLocalPos TrackingRecHit

List of all members.

Public Member Functions

int BunchX () const
virtual GEMRecHitclone () const
int clusterSize () const
int firstClusterStrip () const
GEMDetId gemId () const
 Return the gemId.
 GEMRecHit (const GEMDetId &gemId, int bx)
 GEMRecHit ()
 Default constructor.
 GEMRecHit (const GEMDetId &gemId, int bx, const LocalPoint &pos, const LocalError &err)
 Constructor from a local position and error, gemId and bx.
 GEMRecHit (const GEMDetId &gemId, int bx, int firstStrip, int clustSize, const LocalPoint &pos, const LocalError &err)
 Constructor from a local position and error, gemId, bx, frist strip of cluster and cluster size.
 GEMRecHit (const GEMDetId &gemId, int bx, 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.
bool operator== (const GEMRecHit &hit) const
 Comparison operator, based on the gemId and the digi time.
virtual std::vector< const
TrackingRecHit * > 
recHits () const
virtual std::vector
< TrackingRecHit * > 
recHits ()
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.
virtual ~GEMRecHit ()
 Destructor.

Private Attributes

int theBx
int theClusterSize
int theFirstStrip
GEMDetId theGEMId
LocalError theLocalError
LocalPoint theLocalPosition

Detailed Description

RecHit for GEM

Date:
2013/04/24 16:54:23
Revision:
1.1
Author:
M. Maggi -- INFN Bari

Definition at line 17 of file GEMRecHit.h.


Constructor & Destructor Documentation

GEMRecHit::GEMRecHit ( const GEMDetId gemId,
int  bx 
)

Definition at line 13 of file GEMRecHit.cc.

GEMRecHit::GEMRecHit ( )

Default constructor.

Definition at line 18 of file GEMRecHit.cc.

Referenced by clone().

GEMRecHit::GEMRecHit ( const GEMDetId gemId,
int  bx,
const LocalPoint pos 
)

Constructor from a local position, gemId 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 24 of file GEMRecHit.cc.

References theLocalError.

                                                                         :  RecHit2DLocalPos(gemId),
  theGEMId(gemId), theBx(bx), theFirstStrip(99),theClusterSize(99), theLocalPosition(pos) 
{
  float stripResolution = 3.0 ; //cm  this sould be taken from trimmed cluster size times strip size 
                                 //    taken out from geometry service i.e. topology
  theLocalError =
    LocalError(stripResolution*stripResolution, 0., 0.); //FIXME: is it really needed?
}
GEMRecHit::GEMRecHit ( const GEMDetId gemId,
int  bx,
const LocalPoint pos,
const LocalError err 
)

Constructor from a local position and error, gemId and bx.

Definition at line 36 of file GEMRecHit.cc.

GEMRecHit::GEMRecHit ( const GEMDetId gemId,
int  bx,
int  firstStrip,
int  clustSize,
const LocalPoint pos,
const LocalError err 
)

Constructor from a local position and error, gemId, bx, frist strip of cluster and cluster size.

Definition at line 46 of file GEMRecHit.cc.

                                            :  RecHit2DLocalPos(gemId),
  theGEMId(gemId), theBx(bx),theFirstStrip(firstStrip), theClusterSize(clustSize), theLocalPosition(pos), theLocalError(err) 
{
}
GEMRecHit::~GEMRecHit ( ) [virtual]

Destructor.

Definition at line 60 of file GEMRecHit.cc.

{
}

Member Function Documentation

int GEMRecHit::BunchX ( ) const [inline]

Definition at line 103 of file GEMRecHit.h.

References theBx.

                     {
    return theBx;
  }
GEMRecHit * GEMRecHit::clone ( void  ) const [virtual]

Implements RecHit2DLocalPos.

Definition at line 66 of file GEMRecHit.cc.

References GEMRecHit().

                                   {
  return new GEMRecHit(*this);
}
int GEMRecHit::clusterSize ( ) const [inline]

Definition at line 111 of file GEMRecHit.h.

References theClusterSize.

                          {
    return theClusterSize;
  }
int GEMRecHit::firstClusterStrip ( ) const [inline]

Definition at line 107 of file GEMRecHit.h.

References theFirstStrip.

                                {
    return theFirstStrip;
  }
GEMDetId GEMRecHit::gemId ( ) const [inline]

Return the gemId.

Definition at line 99 of file GEMRecHit.h.

References theGEMId.

                         {
    return theGEMId;
  }
virtual LocalPoint GEMRecHit::localPosition ( ) const [inline, virtual]

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 55 of file GEMRecHit.h.

References theLocalPosition.

Referenced by operator<<().

                                           {
    return theLocalPosition;
  }
virtual LocalError GEMRecHit::localPositionError ( ) const [inline, virtual]

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 61 of file GEMRecHit.h.

References theLocalError.

Referenced by operator<<().

                                                {
    return theLocalError;
  }
bool GEMRecHit::operator== ( const GEMRecHit hit) const

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

Definition at line 89 of file GEMRecHit.cc.

References TrackingRecHit::geographicalId().

                                                     {
  return this->geographicalId() == hit.geographicalId(); 
}
std::vector< TrackingRecHit * > GEMRecHit::recHits ( ) [virtual]

Non-const access to component RecHits. No components rechits: it returns a null vector

Reimplemented from RecHit2DLocalPos.

Definition at line 82 of file GEMRecHit.cc.

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

Access to component RecHits. No components rechits: it returns a null vector

Reimplemented from RecHit2DLocalPos.

Definition at line 73 of file GEMRecHit.cc.

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

Set local position error.

Definition at line 86 of file GEMRecHit.h.

References theLocalError.

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

Set local position.

Definition at line 80 of file GEMRecHit.h.

References pos, and theLocalPosition.

void GEMRecHit::setPositionAndError ( LocalPoint  pos,
LocalError  err 
) [inline]

Set the local position and its error.

Definition at line 92 of file GEMRecHit.h.

References pos, theLocalError, and theLocalPosition.


Member Data Documentation

int GEMRecHit::theBx [private]

Definition at line 120 of file GEMRecHit.h.

Referenced by BunchX().

Definition at line 122 of file GEMRecHit.h.

Referenced by clusterSize().

int GEMRecHit::theFirstStrip [private]

Definition at line 121 of file GEMRecHit.h.

Referenced by firstClusterStrip().

Definition at line 119 of file GEMRecHit.h.

Referenced by gemId().

Definition at line 125 of file GEMRecHit.h.

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

Definition at line 124 of file GEMRecHit.h.

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