test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
SiTrackerGSMatchedRecHit2D Class Reference

#include <SiTrackerGSMatchedRecHit2D.h>

Inheritance diagram for SiTrackerGSMatchedRecHit2D:
GSSiTrackerRecHit2DLocalPos BaseTrackerRecHit TrackingRecHit

Public Types

typedef edm::Ref
< FastTrackerClusterCollection,
FastTrackerCluster
ClusterRef
 
typedef edm::RefProd
< FastTrackerClusterCollection
ClusterRefProd
 
- 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 }
 

Public Member Functions

virtual
SiTrackerGSMatchedRecHit2D
clone () const
 
ClusterRef const & cluster () const
 
const uint32_t & eeId () const
 
const bool & isMatched () const
 
const SiTrackerGSRecHit2DmonoHit () const
 
void setClusterRef (const ClusterRef &ref)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
const int & simhitId () const
 
const int & simMultX () const
 
const int & simMultY () const
 
const int & simtrackId () const
 
 SiTrackerGSMatchedRecHit2D ()
 
 SiTrackerGSMatchedRecHit2D (const LocalPoint &, const LocalError &, GeomDet const &idet, const int simhitId, const int simtrackId, const uint32_t eeId, ClusterRef const &cluster, const int pixelMultiplicityX, const int pixelMultiplicityY, const bool isMatched, const SiTrackerGSRecHit2D *rMono, const SiTrackerGSRecHit2D *rStereo)
 
 SiTrackerGSMatchedRecHit2D (const LocalPoint &, const LocalError &, GeomDet const &idet, const int simhitId, const int simtrackId, const uint32_t eeId, ClusterRef const &cluster, const int pixelMultiplicityX, const int pixelMultiplicityY)
 
const SiTrackerGSRecHit2DstereoHit () const
 
 ~SiTrackerGSMatchedRecHit2D ()
 
- Public Member Functions inherited from GSSiTrackerRecHit2DLocalPos
virtual int dimension () const
 
virtual OmniClusterRef const & firstClusterRef () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
 GSSiTrackerRecHit2DLocalPos ()
 
 GSSiTrackerRecHit2DLocalPos (const LocalPoint &p, const LocalError &e, GeomDet const &idet)
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
 ~GSSiTrackerRecHit2DLocalPos ()
 
- Public Member Functions inherited from BaseTrackerRecHit
 BaseTrackerRecHit ()
 
 BaseTrackerRecHit (DetId id, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt)
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const
 
float errorGlobalRPhi () const
 
float errorGlobalZ () const
 
void getKfComponents1D (KfComponentsHolder &holder) const
 
void getKfComponents2D (KfComponentsHolder &holder) const
 
virtual GlobalPoint globalPosition () const
 
GlobalError globalPositionError () const
 
TrackingRecHitGlobalState globalState () const
 
bool hasPositionAndError () const
 to be redefined by daughter class More...
 
BaseTrackerRecHit const * hit () const
 
bool isMatched () const
 
bool isMulti () const
 
virtual bool isPixel () const
 
bool isProjected () const
 
bool isProjMono () const
 
bool isProjSterep () const
 
bool isSingle () const
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
const LocalErrorlocalPositionErrorFast () const
 
const LocalPointlocalPositionFast () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
trackerHitRTTI::RTTI rtti () const
 
bool sameDetModule (TrackingRecHit const &hit) const
 
virtual const Surfacesurface () const
 
virtual ~BaseTrackerRecHit ()
 
- 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
 
DetId geographicalId () const
 
unsigned int getRTTI () const
 
Type getType () const
 
bool isValid () const
 
id_type rawId () const
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
void setDet (const GeomDet &idet)
 
 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

ClusterRef cluster_
 
SiTrackerGSRecHit2D componentMono_
 
SiTrackerGSRecHit2D componentStereo_
 
uint32_t const eeId_
 
bool isMatched_
 
int const pixelMultiplicityAlpha_
 
int const pixelMultiplicityBeta_
 
int const simhitId_
 
int const simtrackId_
 

Additional Inherited Members

- 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)
 
- Protected Attributes inherited from BaseTrackerRecHit
unsigned int qualWord_
 

Detailed Description

Definition at line 8 of file SiTrackerGSMatchedRecHit2D.h.

Member Typedef Documentation

Definition at line 25 of file SiTrackerGSMatchedRecHit2D.h.

Definition at line 26 of file SiTrackerGSMatchedRecHit2D.h.

Constructor & Destructor Documentation

SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D ( )
inline
SiTrackerGSMatchedRecHit2D::~SiTrackerGSMatchedRecHit2D ( )
inline

Definition at line 23 of file SiTrackerGSMatchedRecHit2D.h.

23 {}
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D ( const LocalPoint pos,
const LocalError err,
GeomDet const &  idet,
const int  simhitId,
const int  simtrackId,
const uint32_t  eeId,
ClusterRef const &  cluster,
const int  pixelMultiplicityX = -1,
const int  pixelMultiplicityY = -1,
const bool  isMatched = false,
const SiTrackerGSRecHit2D rMono = 0,
const SiTrackerGSRecHit2D rStereo = 0 
)

Definition at line 3 of file SiTrackerGSMatchedRecHit2D.cc.

13  :
14  GSSiTrackerRecHit2DLocalPos(pos,err,idet) ,
17  eeId_(eeId) ,
18  cluster_(cluster),
19  pixelMultiplicityAlpha_(pixelMultiplicityX),
20  pixelMultiplicityBeta_(pixelMultiplicityY),
22  componentMono_(*rMono),
23  componentStereo_(*rStereo)
24 {}
ClusterRef const & cluster() const
const uint32_t & eeId() const
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D ( const LocalPoint pos,
const LocalError err,
GeomDet const &  idet,
const int  simhitId,
const int  simtrackId,
const uint32_t  eeId,
ClusterRef const &  cluster,
const int  pixelMultiplicityX = -1,
const int  pixelMultiplicityY = -1 
)

Definition at line 26 of file SiTrackerGSMatchedRecHit2D.cc.

33  :
34  GSSiTrackerRecHit2DLocalPos(pos,err,idet) ,
37  eeId_(eeId) ,
39  pixelMultiplicityAlpha_(pixelMultiplicityX),
40  pixelMultiplicityBeta_(pixelMultiplicityY),
41  isMatched_(0),
42  componentMono_(),
44 {}
ClusterRef const & cluster() const
const uint32_t & eeId() const

Member Function Documentation

virtual SiTrackerGSMatchedRecHit2D* SiTrackerGSMatchedRecHit2D::clone ( void  ) const
inlinevirtual
ClusterRef const& SiTrackerGSMatchedRecHit2D::cluster ( ) const
inline

Definition at line 63 of file SiTrackerGSMatchedRecHit2D.h.

References cluster_.

Referenced by sharesInput().

const uint32_t& SiTrackerGSMatchedRecHit2D::eeId ( ) const
inline

Definition at line 56 of file SiTrackerGSMatchedRecHit2D.h.

References eeId_.

Referenced by TrackerHitAssociator::associateGSMatchedRecHit().

56 { return eeId_;}
const bool& SiTrackerGSMatchedRecHit2D::isMatched ( ) const
inline

Definition at line 59 of file SiTrackerGSMatchedRecHit2D.h.

References isMatched_.

Referenced by TrackCandidateProducer::produce().

const SiTrackerGSRecHit2D* SiTrackerGSMatchedRecHit2D::monoHit ( ) const
inline

Definition at line 60 of file SiTrackerGSMatchedRecHit2D.h.

References componentMono_.

Referenced by TrackCandidateProducer::addSplitHits().

60 { return &componentMono_;}
void SiTrackerGSMatchedRecHit2D::setClusterRef ( const ClusterRef ref)
inline

Definition at line 64 of file SiTrackerGSMatchedRecHit2D.h.

References cluster_.

bool SiTrackerGSMatchedRecHit2D::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const
virtual

Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.

Reimplemented from GSSiTrackerRecHit2DLocalPos.

Definition at line 48 of file SiTrackerGSMatchedRecHit2D.cc.

References cluster(), cluster_, TrackingRecHit::geographicalId(), and TrackingRecHit::isValid().

50  {
51  if (geographicalId() != other->geographicalId()) return false;
52  if(! other->isValid()) return false;
53 
54  const SiTrackerGSMatchedRecHit2D* otherCast = static_cast<const SiTrackerGSMatchedRecHit2D*>(other);
55 
56  return cluster_ == otherCast->cluster();
57  }
ClusterRef const & cluster() const
bool isValid() const
DetId geographicalId() const
const int& SiTrackerGSMatchedRecHit2D::simhitId ( ) const
inline

Definition at line 54 of file SiTrackerGSMatchedRecHit2D.h.

References simhitId_.

const int& SiTrackerGSMatchedRecHit2D::simMultX ( ) const
inline

Definition at line 57 of file SiTrackerGSMatchedRecHit2D.h.

References pixelMultiplicityAlpha_.

const int& SiTrackerGSMatchedRecHit2D::simMultY ( ) const
inline

Definition at line 58 of file SiTrackerGSMatchedRecHit2D.h.

References pixelMultiplicityBeta_.

const int& SiTrackerGSMatchedRecHit2D::simtrackId ( ) const
inline
const SiTrackerGSRecHit2D* SiTrackerGSMatchedRecHit2D::stereoHit ( ) const
inline

Definition at line 61 of file SiTrackerGSMatchedRecHit2D.h.

References componentStereo_.

Referenced by TrackCandidateProducer::addSplitHits().

61 { return &componentStereo_;}

Member Data Documentation

ClusterRef SiTrackerGSMatchedRecHit2D::cluster_
private

Definition at line 73 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by cluster(), setClusterRef(), and sharesInput().

SiTrackerGSRecHit2D SiTrackerGSMatchedRecHit2D::componentMono_
private

Definition at line 78 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by monoHit().

SiTrackerGSRecHit2D SiTrackerGSMatchedRecHit2D::componentStereo_
private

Definition at line 79 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by stereoHit().

uint32_t const SiTrackerGSMatchedRecHit2D::eeId_
private

Definition at line 72 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by eeId().

bool SiTrackerGSMatchedRecHit2D::isMatched_
private

Definition at line 76 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by isMatched().

int const SiTrackerGSMatchedRecHit2D::pixelMultiplicityAlpha_
private

Definition at line 74 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simMultX().

int const SiTrackerGSMatchedRecHit2D::pixelMultiplicityBeta_
private

Definition at line 75 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simMultY().

int const SiTrackerGSMatchedRecHit2D::simhitId_
private

Definition at line 70 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simhitId().

int const SiTrackerGSMatchedRecHit2D::simtrackId_
private

Definition at line 71 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simtrackId().