CMS 3D CMS Logo

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

#include <RPCRecHit.h>

Inheritance diagram for RPCRecHit:
RecHit2DLocalPos TrackingRecHit

Public Member Functions

int BunchX () const
 
RPCRecHitclone () const override
 
int clusterSize () const
 
int firstClusterStrip () const
 
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 RPCRecHit &hit) const
 Comparison operator, based on the rpcId and the digi time. More...
 
std::vector< const TrackingRecHit * > recHits () const override
 
std::vector< TrackingRecHit * > recHits () override
 
RPCDetId rpcId () const
 Return the rpcId. More...
 
 RPCRecHit (const RPCDetId &rpcId, int bx)
 
 RPCRecHit ()
 Default constructor. More...
 
 RPCRecHit (const RPCDetId &rpcId, int bx, const LocalPoint &pos)
 
 RPCRecHit (const RPCDetId &rpcId, int bx, const LocalPoint &pos, const LocalError &err)
 Constructor from a local position and error, rpcId and bx. More...
 
 RPCRecHit (const RPCDetId &rpcId, int bx, int firstStrip, int clustSize, const LocalPoint &pos, const LocalError &err)
 Constructor from a local position and error, rpcId, bx, frist strip of cluster and cluster size. 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...
 
void setTimeAndError (float time, float err)
 Set the time and its error. More...
 
float time () const
 
float timeError () const
 
 ~RPCRecHit () 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
 
LocalError theLocalError
 
LocalPoint theLocalPosition
 
RPCDetId theRPCId
 
float theTime
 
float theTimeError
 

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 RPC

Author
M. Maggi – INFN Bari

Definition at line 14 of file RPCRecHit.h.

Constructor & Destructor Documentation

◆ RPCRecHit() [1/5]

RPCRecHit::RPCRecHit ( const RPCDetId rpcId,
int  bx 
)

Definition at line 9 of file RPCRecHit.cc.

11  theRPCId(rpcId),
12  theBx(bx),
13  theFirstStrip(99),
14  theClusterSize(99),
16  theLocalError(),
17  theTime(0),
18  theTimeError(-1) {}
int theFirstStrip
Definition: RPCRecHit.h:89
RecHit2DLocalPos(DetId id)
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92
RPCDetId theRPCId
Definition: RPCRecHit.h:87
RPCDetId rpcId() const
Return the rpcId.
Definition: RPCRecHit.h:71
int theClusterSize
Definition: RPCRecHit.h:90
LocalError theLocalError
Definition: RPCRecHit.h:93
float theTime
Definition: RPCRecHit.h:94
float theTimeError
Definition: RPCRecHit.h:94
int theBx
Definition: RPCRecHit.h:88

◆ RPCRecHit() [2/5]

RPCRecHit::RPCRecHit ( )

Default constructor.

Definition at line 20 of file RPCRecHit.cc.

Referenced by clone().

21  : RecHit2DLocalPos(),
22  theRPCId(),
23  theBx(99),
24  theFirstStrip(99),
25  theClusterSize(99),
27  theLocalError(),
28  theTime(0),
29  theTimeError(-1) {}
int theFirstStrip
Definition: RPCRecHit.h:89
RecHit2DLocalPos(DetId id)
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92
RPCDetId theRPCId
Definition: RPCRecHit.h:87
int theClusterSize
Definition: RPCRecHit.h:90
LocalError theLocalError
Definition: RPCRecHit.h:93
float theTime
Definition: RPCRecHit.h:94
float theTimeError
Definition: RPCRecHit.h:94
int theBx
Definition: RPCRecHit.h:88

◆ RPCRecHit() [3/5]

RPCRecHit::RPCRecHit ( const RPCDetId rpcId,
int  bx,
const LocalPoint pos 
)

Constructor from a local position, rpcId 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 31 of file RPCRecHit.cc.

References theLocalError.

33  theRPCId(rpcId),
34  theBx(bx),
35  theFirstStrip(99),
36  theClusterSize(99),
38  theTime(0),
39  theTimeError(-1) {
40  float stripResolution = 3.0; //cm this sould be taken from trimmed cluster size times strip size
41  // taken out from geometry service i.e. topology
42  theLocalError = LocalError(stripResolution * stripResolution, 0., 0.); //FIXME: is it really needed?
43 }
int theFirstStrip
Definition: RPCRecHit.h:89
RecHit2DLocalPos(DetId id)
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92
RPCDetId theRPCId
Definition: RPCRecHit.h:87
RPCDetId rpcId() const
Return the rpcId.
Definition: RPCRecHit.h:71
int theClusterSize
Definition: RPCRecHit.h:90
LocalError theLocalError
Definition: RPCRecHit.h:93
float theTime
Definition: RPCRecHit.h:94
float theTimeError
Definition: RPCRecHit.h:94
int theBx
Definition: RPCRecHit.h:88

◆ RPCRecHit() [4/5]

RPCRecHit::RPCRecHit ( const RPCDetId rpcId,
int  bx,
const LocalPoint pos,
const LocalError err 
)

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

Definition at line 46 of file RPCRecHit.cc.

48  theRPCId(rpcId),
49  theBx(bx),
50  theFirstStrip(99),
51  theClusterSize(99),
54  theTime(0),
55  theTimeError(-1) {}
int theFirstStrip
Definition: RPCRecHit.h:89
RecHit2DLocalPos(DetId id)
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92
RPCDetId theRPCId
Definition: RPCRecHit.h:87
RPCDetId rpcId() const
Return the rpcId.
Definition: RPCRecHit.h:71
int theClusterSize
Definition: RPCRecHit.h:90
LocalError theLocalError
Definition: RPCRecHit.h:93
float theTime
Definition: RPCRecHit.h:94
float theTimeError
Definition: RPCRecHit.h:94
int theBx
Definition: RPCRecHit.h:88

◆ RPCRecHit() [5/5]

RPCRecHit::RPCRecHit ( const RPCDetId rpcId,
int  bx,
int  firstStrip,
int  clustSize,
const LocalPoint pos,
const LocalError err 
)

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

Definition at line 58 of file RPCRecHit.cc.

61  theRPCId(rpcId),
62  theBx(bx),
63  theFirstStrip(firstStrip),
64  theClusterSize(clustSize),
67  theTime(0),
68  theTimeError(-1) {}
int theFirstStrip
Definition: RPCRecHit.h:89
RecHit2DLocalPos(DetId id)
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92
RPCDetId theRPCId
Definition: RPCRecHit.h:87
RPCDetId rpcId() const
Return the rpcId.
Definition: RPCRecHit.h:71
int theClusterSize
Definition: RPCRecHit.h:90
LocalError theLocalError
Definition: RPCRecHit.h:93
float theTime
Definition: RPCRecHit.h:94
float theTimeError
Definition: RPCRecHit.h:94
int theBx
Definition: RPCRecHit.h:88

◆ ~RPCRecHit()

RPCRecHit::~RPCRecHit ( )
override

Destructor.

Definition at line 71 of file RPCRecHit.cc.

71 {}

Member Function Documentation

◆ BunchX()

int RPCRecHit::BunchX ( ) const
inline

◆ clone()

RPCRecHit * RPCRecHit::clone ( void  ) const
overridevirtual

Implements RecHit2DLocalPos.

Definition at line 73 of file RPCRecHit.cc.

References RPCRecHit().

73 { return new RPCRecHit(*this); }
RPCRecHit()
Default constructor.
Definition: RPCRecHit.cc:20

◆ clusterSize()

int RPCRecHit::clusterSize ( ) const
inline

◆ firstClusterStrip()

int RPCRecHit::firstClusterStrip ( ) const
inline

Definition at line 75 of file RPCRecHit.h.

References theFirstStrip.

Referenced by RPCHitAssociator::associateRecHit(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

75 { return theFirstStrip; }
int theFirstStrip
Definition: RPCRecHit.h:89

◆ localPosition()

LocalPoint RPCRecHit::localPosition ( ) const
inlineoverridevirtual

Return the 3-dimensional local position.

Implements RecHit2DLocalPos.

Definition at line 37 of file RPCRecHit.h.

References theLocalPosition.

Referenced by FWRPCRecHitProxyBuilder::buildViewType(), RPCIntegrator::RPCGlobalPosition(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

37 { return theLocalPosition; }
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92

◆ localPositionError()

LocalError RPCRecHit::localPositionError ( ) const
inlineoverridevirtual

Return the 3-dimensional error on the local position.

Implements RecHit2DLocalPos.

Definition at line 40 of file RPCRecHit.h.

References theLocalError.

Referenced by FWRPCRecHitProxyBuilder::buildViewType().

40 { return theLocalError; }
LocalError theLocalError
Definition: RPCRecHit.h:93

◆ operator==()

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

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

Definition at line 90 of file RPCRecHit.cc.

References TrackingRecHit::geographicalId().

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

◆ recHits() [1/2]

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

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

Implements TrackingRecHit.

Definition at line 77 of file RPCRecHit.cc.

77  {
78  std::vector<const TrackingRecHit*> nullvector;
79  return nullvector;
80 }

◆ recHits() [2/2]

std::vector< TrackingRecHit * > RPCRecHit::recHits ( void  )
overridevirtual

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

Implements TrackingRecHit.

Definition at line 84 of file RPCRecHit.cc.

84  {
85  std::vector<TrackingRecHit*> nullvector;
86  return nullvector;
87 }

◆ rpcId()

RPCDetId RPCRecHit::rpcId ( ) const
inline

Return the rpcId.

Definition at line 71 of file RPCRecHit.h.

References theRPCId.

Referenced by RPCMonitorDigi::analyze(), RPCHitAssociator::associateRecHit(), and FWRPCRecHitProxyBuilder::buildViewType().

71 { return theRPCId; }
RPCDetId theRPCId
Definition: RPCRecHit.h:87

◆ setError()

void RPCRecHit::setError ( LocalError  err)
inline

Set local position error.

Definition at line 56 of file RPCRecHit.h.

References submitPVResolutionJobs::err, and theLocalError.

◆ setPosition()

void RPCRecHit::setPosition ( LocalPoint  pos)
inline

Set local position.

Definition at line 53 of file RPCRecHit.h.

References theLocalPosition.

53 { theLocalPosition = pos; }
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92

◆ setPositionAndError()

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

Set the local position and its error.

Definition at line 59 of file RPCRecHit.h.

References submitPVResolutionJobs::err, theLocalError, and theLocalPosition.

59  {
62  }
LocalPoint theLocalPosition
Definition: RPCRecHit.h:92
LocalError theLocalError
Definition: RPCRecHit.h:93

◆ setTimeAndError()

void RPCRecHit::setTimeAndError ( float  time,
float  err 
)
inline

Set the time and its error.

Definition at line 65 of file RPCRecHit.h.

References submitPVResolutionJobs::err, theTime, theTimeError, and time().

Referenced by CSCSegtoRPC::thePoints(), and DTSegtoRPC::thePoints().

65  {
66  theTime = time;
67  theTimeError = err;
68  }
float time() const
Definition: RPCRecHit.h:79
float theTime
Definition: RPCRecHit.h:94
float theTimeError
Definition: RPCRecHit.h:94

◆ time()

float RPCRecHit::time ( ) const
inline

Definition at line 79 of file RPCRecHit.h.

References theTime.

Referenced by setTimeAndError(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

79 { return theTime; }
float theTime
Definition: RPCRecHit.h:94

◆ timeError()

float RPCRecHit::timeError ( ) const
inline

Definition at line 81 of file RPCRecHit.h.

References theTimeError.

81 { return theTimeError; }
float theTimeError
Definition: RPCRecHit.h:94

Member Data Documentation

◆ theBx

int RPCRecHit::theBx
private

Definition at line 88 of file RPCRecHit.h.

Referenced by BunchX().

◆ theClusterSize

int RPCRecHit::theClusterSize
private

Definition at line 90 of file RPCRecHit.h.

Referenced by clusterSize().

◆ theFirstStrip

int RPCRecHit::theFirstStrip
private

Definition at line 89 of file RPCRecHit.h.

Referenced by firstClusterStrip().

◆ theLocalError

LocalError RPCRecHit::theLocalError
private

Definition at line 93 of file RPCRecHit.h.

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

◆ theLocalPosition

LocalPoint RPCRecHit::theLocalPosition
private

Definition at line 92 of file RPCRecHit.h.

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

◆ theRPCId

RPCDetId RPCRecHit::theRPCId
private

Definition at line 87 of file RPCRecHit.h.

Referenced by rpcId().

◆ theTime

float RPCRecHit::theTime
private

Definition at line 94 of file RPCRecHit.h.

Referenced by setTimeAndError(), and time().

◆ theTimeError

float RPCRecHit::theTimeError
private

Definition at line 94 of file RPCRecHit.h.

Referenced by setTimeAndError(), and timeError().