CMS 3D CMS Logo

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

#include <GEMRecHit.h>

Inheritance diagram for GEMRecHit:
RecHit2DLocalPos TrackingRecHit

Public Member Functions

int BunchX () const
 
GEMRecHitclone () const override
 
int clusterSize () const
 
int firstClusterStrip () const
 
GEMDetId gemId () const
 Return the gemId. More...
 
 GEMRecHit (const GEMDetId &gemId, int bx)
 
 GEMRecHit ()
 Default constructor. More...
 
 GEMRecHit (const GEMDetId &gemId, int bx, const LocalPoint &pos)
 
 GEMRecHit (const GEMDetId &gemId, int bx, const LocalPoint &pos, const LocalError &err)
 Constructor from a local position and error, gemId and bx. More...
 
 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. 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...
 
bool operator== (const GEMRecHit &hit) const
 Comparison operator, based on the gemId and the digi time. More...
 
std::vector< const TrackingRecHit * > recHits () const override
 
std::vector< TrackingRecHit * > recHits () override
 
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...
 
 ~GEMRecHit () override
 Destructor. More...
 
- Public Member Functions inherited from RecHit2DLocalPos
int dimension () const override
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
std::vector< const TrackingRecHit * > recHits () const override
 Access to component RecHits (if any) More...
 
std::vector< TrackingRecHit * > recHits () override
 Non-const access to component RecHits (if any) More...
 
 ~RecHit2DLocalPos () override
 
- 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

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

Additional Inherited Members

- Public Types inherited from RecHit2DLocalPos
typedef GloballyPositioned< float >::LocalPoint LocalPoint
 
- 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

RecHit for GEM

Author
M. Maggi – INFN Bari

Definition at line 14 of file GEMRecHit.h.

Constructor & Destructor Documentation

◆ GEMRecHit() [1/5]

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

Definition at line 9 of file GEMRecHit.cc.

11  theGEMId(gemId),
12  theBx(bx),
13  theFirstStrip(99),
14  theClusterSize(99),
16  theLocalError() {}
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:78
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
GEMDetId theGEMId
Definition: GEMRecHit.h:77
int theFirstStrip
Definition: GEMRecHit.h:79
GEMDetId gemId() const
Return the gemId.
Definition: GEMRecHit.h:65
LocalError theLocalError
Definition: GEMRecHit.h:83
int theClusterSize
Definition: GEMRecHit.h:80

◆ GEMRecHit() [2/5]

GEMRecHit::GEMRecHit ( )

Default constructor.

Definition at line 18 of file GEMRecHit.cc.

Referenced by clone().

19  : RecHit2DLocalPos(),
20  theGEMId(),
21  theBx(99),
22  theFirstStrip(99),
23  theClusterSize(99),
25  theLocalError() {}
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:78
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
GEMDetId theGEMId
Definition: GEMRecHit.h:77
int theFirstStrip
Definition: GEMRecHit.h:79
LocalError theLocalError
Definition: GEMRecHit.h:83
int theClusterSize
Definition: GEMRecHit.h:80

◆ GEMRecHit() [3/5]

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 27 of file GEMRecHit.cc.

References theLocalError.

29  float stripResolution = 3.0; //cm this sould be taken from trimmed cluster size times strip size
30  // taken out from geometry service i.e. topology
31  theLocalError = LocalError(stripResolution * stripResolution, 0., 0.); //FIXME: is it really needed?
32 }
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:78
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
GEMDetId theGEMId
Definition: GEMRecHit.h:77
int theFirstStrip
Definition: GEMRecHit.h:79
GEMDetId gemId() const
Return the gemId.
Definition: GEMRecHit.h:65
LocalError theLocalError
Definition: GEMRecHit.h:83
int theClusterSize
Definition: GEMRecHit.h:80

◆ GEMRecHit() [4/5]

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 35 of file GEMRecHit.cc.

37  theGEMId(gemId),
38  theBx(bx),
39  theFirstStrip(99),
40  theClusterSize(99),
42  theLocalError(err) {}
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:78
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
GEMDetId theGEMId
Definition: GEMRecHit.h:77
int theFirstStrip
Definition: GEMRecHit.h:79
GEMDetId gemId() const
Return the gemId.
Definition: GEMRecHit.h:65
LocalError theLocalError
Definition: GEMRecHit.h:83
int theClusterSize
Definition: GEMRecHit.h:80

◆ GEMRecHit() [5/5]

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 45 of file GEMRecHit.cc.

48  theGEMId(gemId),
49  theBx(bx),
50  theFirstStrip(firstStrip),
51  theClusterSize(clustSize),
53  theLocalError(err) {}
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:78
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
GEMDetId theGEMId
Definition: GEMRecHit.h:77
int theFirstStrip
Definition: GEMRecHit.h:79
GEMDetId gemId() const
Return the gemId.
Definition: GEMRecHit.h:65
LocalError theLocalError
Definition: GEMRecHit.h:83
int theClusterSize
Definition: GEMRecHit.h:80

◆ ~GEMRecHit()

GEMRecHit::~GEMRecHit ( )
override

Destructor.

Definition at line 56 of file GEMRecHit.cc.

56 {}

Member Function Documentation

◆ BunchX()

int GEMRecHit::BunchX ( ) const
inline

Definition at line 67 of file GEMRecHit.h.

References theBx.

Referenced by GE0SegAlgoRU::compareProtoSegment().

67 { return theBx; }
int theBx
Definition: GEMRecHit.h:78

◆ clone()

GEMRecHit * GEMRecHit::clone ( void  ) const
overridevirtual

Implements RecHit2DLocalPos.

Definition at line 58 of file GEMRecHit.cc.

References GEMRecHit().

Referenced by GEMSegmentAlgorithm::buildSegments(), GEMCSCSegAlgoRR::chainHitsToSegm(), and GE0SegAlgoRU::makeFit().

58 { return new GEMRecHit(*this); }
GEMRecHit()
Default constructor.
Definition: GEMRecHit.cc:18

◆ clusterSize()

int GEMRecHit::clusterSize ( ) const
inline

Definition at line 71 of file GEMRecHit.h.

References theClusterSize.

Referenced by GEMHitAssociator::associateRecHit().

71 { return theClusterSize; }
int theClusterSize
Definition: GEMRecHit.h:80

◆ firstClusterStrip()

int GEMRecHit::firstClusterStrip ( ) const
inline

Definition at line 69 of file GEMRecHit.h.

References theFirstStrip.

Referenced by GEMHitAssociator::associateRecHit().

69 { return theFirstStrip; }
int theFirstStrip
Definition: GEMRecHit.h:79

◆ gemId()

GEMDetId GEMRecHit::gemId ( ) const
inline

◆ localPosition()

LocalPoint GEMRecHit::localPosition ( ) const
inlineoverridevirtual

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 37 of file GEMRecHit.h.

References theLocalPosition.

Referenced by FWGEMRecHitProxyBuilder::buildViewType(), GEMCSCSegAlgoRR::chainHitsToSegm(), and GEMRecHitMatcher::recHitPosition().

37 { return theLocalPosition; }
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82

◆ localPositionError()

LocalError GEMRecHit::localPositionError ( ) const
inlineoverridevirtual

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 40 of file GEMRecHit.h.

References theLocalError.

Referenced by FWGEMRecHitProxyBuilder::buildViewType().

40 { return theLocalError; }
LocalError theLocalError
Definition: GEMRecHit.h:83

◆ operator==()

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

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

Definition at line 75 of file GEMRecHit.cc.

References TrackingRecHit::geographicalId().

75 { return this->geographicalId() == hit.geographicalId(); }
DetId geographicalId() const

◆ recHits() [1/2]

std::vector< const TrackingRecHit * > GEMRecHit::recHits ( ) const
overridevirtual

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

Implements TrackingRecHit.

Definition at line 62 of file GEMRecHit.cc.

62  {
63  std::vector<const TrackingRecHit*> nullvector;
64  return nullvector;
65 }

◆ recHits() [2/2]

std::vector< TrackingRecHit * > GEMRecHit::recHits ( )
overridevirtual

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

Implements TrackingRecHit.

Definition at line 69 of file GEMRecHit.cc.

69  {
70  std::vector<TrackingRecHit*> nullvector;
71  return nullvector;
72 }

◆ setError()

void GEMRecHit::setError ( LocalError  err)
inline

Set local position error.

Definition at line 56 of file GEMRecHit.h.

References submitPVResolutionJobs::err, and theLocalError.

◆ setPosition()

void GEMRecHit::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 53 of file GEMRecHit.h.

References theLocalPosition.

Referenced by GEMSegmentAlgorithm::buildSegments(), and GE0SegAlgoRU::makeFit().

53 { theLocalPosition = pos; }
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82

◆ setPositionAndError()

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

Set the local position and its error.

Definition at line 59 of file GEMRecHit.h.

References submitPVResolutionJobs::err, theLocalError, and theLocalPosition.

59  {
62  }
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
LocalError theLocalError
Definition: GEMRecHit.h:83

Member Data Documentation

◆ theBx

int GEMRecHit::theBx
private

Definition at line 78 of file GEMRecHit.h.

Referenced by BunchX().

◆ theClusterSize

int GEMRecHit::theClusterSize
private

Definition at line 80 of file GEMRecHit.h.

Referenced by clusterSize().

◆ theFirstStrip

int GEMRecHit::theFirstStrip
private

Definition at line 79 of file GEMRecHit.h.

Referenced by firstClusterStrip().

◆ theGEMId

GEMDetId GEMRecHit::theGEMId
private

Definition at line 77 of file GEMRecHit.h.

Referenced by gemId().

◆ theLocalError

LocalError GEMRecHit::theLocalError
private

Definition at line 83 of file GEMRecHit.h.

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

◆ theLocalPosition

LocalPoint GEMRecHit::theLocalPosition
private

Definition at line 82 of file GEMRecHit.h.

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