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

#include <GEMRecHit.h>

Inheritance diagram for GEMRecHit:
RecHit2DLocalPos TrackingRecHit

Public Member Functions

int BunchX () const
 
virtual GEMRecHitclone () const
 
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...
 
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...
 
bool operator== (const GEMRecHit &hit) const
 Comparison operator, based on the gemId and the digi time. More...
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 
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...
 
virtual ~GEMRecHit ()
 Destructor. More...
 
- Public Member Functions inherited from RecHit2DLocalPos
virtual int dimension () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
virtual ~RecHit2DLocalPos ()
 
- 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
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
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
}
 
- 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 15 of file GEMRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 11 of file GEMRecHit.cc.

11  : RecHit2DLocalPos(gemId),
13 {
14 }
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:118
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
GEMDetId theGEMId
Definition: GEMRecHit.h:117
int theFirstStrip
Definition: GEMRecHit.h:119
LocalError theLocalError
Definition: GEMRecHit.h:123
int theClusterSize
Definition: GEMRecHit.h:120
GEMRecHit::GEMRecHit ( )

Default constructor.

Definition at line 16 of file GEMRecHit.cc.

Referenced by clone().

16  : RecHit2DLocalPos(),
18 {
19 }
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:118
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
GEMDetId theGEMId
Definition: GEMRecHit.h:117
int theFirstStrip
Definition: GEMRecHit.h:119
LocalError theLocalError
Definition: GEMRecHit.h:123
int theClusterSize
Definition: GEMRecHit.h:120
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 22 of file GEMRecHit.cc.

References theLocalError.

22  : RecHit2DLocalPos(gemId),
23  theGEMId(gemId), theBx(bx), theFirstStrip(99),theClusterSize(99), theLocalPosition(pos)
24 {
25  float stripResolution = 3.0 ; //cm this sould be taken from trimmed cluster size times strip size
26  // taken out from geometry service i.e. topology
28  LocalError(stripResolution*stripResolution, 0., 0.); //FIXME: is it really needed?
29 }
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:118
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
GEMDetId theGEMId
Definition: GEMRecHit.h:117
int theFirstStrip
Definition: GEMRecHit.h:119
LocalError theLocalError
Definition: GEMRecHit.h:123
int theClusterSize
Definition: GEMRecHit.h:120
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 34 of file GEMRecHit.cc.

37  : RecHit2DLocalPos(gemId),
39 {
40 }
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:118
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
GEMDetId theGEMId
Definition: GEMRecHit.h:117
int theFirstStrip
Definition: GEMRecHit.h:119
LocalError theLocalError
Definition: GEMRecHit.h:123
int theClusterSize
Definition: GEMRecHit.h:120
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 44 of file GEMRecHit.cc.

49  : RecHit2DLocalPos(gemId),
50  theGEMId(gemId), theBx(bx),theFirstStrip(firstStrip), theClusterSize(clustSize), theLocalPosition(pos), theLocalError(err)
51 {
52 }
RecHit2DLocalPos(DetId id)
int theBx
Definition: GEMRecHit.h:118
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
GEMDetId theGEMId
Definition: GEMRecHit.h:117
int theFirstStrip
Definition: GEMRecHit.h:119
LocalError theLocalError
Definition: GEMRecHit.h:123
int theClusterSize
Definition: GEMRecHit.h:120
GEMRecHit::~GEMRecHit ( )
virtual

Destructor.

Definition at line 58 of file GEMRecHit.cc.

59 {
60 }

Member Function Documentation

int GEMRecHit::BunchX ( ) const
inline

Definition at line 101 of file GEMRecHit.h.

References theBx.

101  {
102  return theBx;
103  }
int theBx
Definition: GEMRecHit.h:118
GEMRecHit * GEMRecHit::clone ( void  ) const
virtual

Implements RecHit2DLocalPos.

Definition at line 64 of file GEMRecHit.cc.

References GEMRecHit().

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

64  {
65  return new GEMRecHit(*this);
66 }
GEMRecHit()
Default constructor.
Definition: GEMRecHit.cc:16
int GEMRecHit::clusterSize ( ) const
inline

Definition at line 109 of file GEMRecHit.h.

References theClusterSize.

Referenced by GEMHitAssociator::associateRecHit().

109  {
110  return theClusterSize;
111  }
int theClusterSize
Definition: GEMRecHit.h:120
int GEMRecHit::firstClusterStrip ( ) const
inline

Definition at line 105 of file GEMRecHit.h.

References theFirstStrip.

Referenced by GEMHitAssociator::associateRecHit().

105  {
106  return theFirstStrip;
107  }
int theFirstStrip
Definition: GEMRecHit.h:119
GEMDetId GEMRecHit::gemId ( ) const
inline

Return the gemId.

Definition at line 97 of file GEMRecHit.h.

References theGEMId.

Referenced by GEMHitAssociator::associateRecHit(), and FWGEMRecHitProxyBuilder::buildViewType().

97  {
98  return theGEMId;
99  }
GEMDetId theGEMId
Definition: GEMRecHit.h:117
virtual LocalPoint GEMRecHit::localPosition ( ) const
inlinevirtual

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 53 of file GEMRecHit.h.

References theLocalPosition.

Referenced by FWGEMRecHitProxyBuilder::buildViewType(), GEMCSCSegAlgoRR::chainHitsToSegm(), and operator<<().

53  {
54  return theLocalPosition;
55  }
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
virtual LocalError GEMRecHit::localPositionError ( ) const
inlinevirtual

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 59 of file GEMRecHit.h.

References theLocalError.

Referenced by FWGEMRecHitProxyBuilder::buildViewType(), and operator<<().

59  {
60  return theLocalError;
61  }
LocalError theLocalError
Definition: GEMRecHit.h:123
bool GEMRecHit::operator== ( const GEMRecHit hit) const

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

Definition at line 87 of file GEMRecHit.cc.

References TrackingRecHit::geographicalId().

87  {
88  return this->geographicalId() == hit.geographicalId();
89 }
DetId geographicalId() const
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 71 of file GEMRecHit.cc.

71  {
72  std::vector<const TrackingRecHit*> nullvector;
73  return nullvector;
74 }
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 80 of file GEMRecHit.cc.

80  {
81  std::vector<TrackingRecHit*> nullvector;
82  return nullvector;
83 }
void GEMRecHit::setError ( LocalError  err)
inline

Set local position error.

Definition at line 84 of file GEMRecHit.h.

References theLocalError.

84  {
85  theLocalError = err;
86  }
LocalError theLocalError
Definition: GEMRecHit.h:123
void GEMRecHit::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 78 of file GEMRecHit.h.

References theLocalPosition.

Referenced by GEMSegmentAlgorithm::buildSegments().

78  {
79  theLocalPosition = pos;
80  }
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
void GEMRecHit::setPositionAndError ( LocalPoint  pos,
LocalError  err 
)
inline

Set the local position and its error.

Definition at line 90 of file GEMRecHit.h.

References theLocalError, and theLocalPosition.

90  {
91  theLocalPosition = pos;
92  theLocalError = err;
93  }
LocalPoint theLocalPosition
Definition: GEMRecHit.h:122
LocalError theLocalError
Definition: GEMRecHit.h:123

Member Data Documentation

int GEMRecHit::theBx
private

Definition at line 118 of file GEMRecHit.h.

Referenced by BunchX().

int GEMRecHit::theClusterSize
private

Definition at line 120 of file GEMRecHit.h.

Referenced by clusterSize().

int GEMRecHit::theFirstStrip
private

Definition at line 119 of file GEMRecHit.h.

Referenced by firstClusterStrip().

GEMDetId GEMRecHit::theGEMId
private

Definition at line 117 of file GEMRecHit.h.

Referenced by gemId().

LocalError GEMRecHit::theLocalError
private

Definition at line 123 of file GEMRecHit.h.

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

LocalPoint GEMRecHit::theLocalPosition
private

Definition at line 122 of file GEMRecHit.h.

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