CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

SiTrackerGSMatchedRecHit2D Class Reference

#include <SiTrackerGSMatchedRecHit2D.h>

Inheritance diagram for SiTrackerGSMatchedRecHit2D:
GSSiTrackerRecHit2DLocalPos RecHit2DLocalPos TrackingRecHit

List of all members.

Public Types

typedef edm::Ref
< FastTrackerClusterCollection,
FastTrackerCluster
ClusterRef
typedef edm::RefProd
< FastTrackerClusterCollection
ClusterRefProd

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 (const LocalPoint &, const LocalError &, const DetId &, 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 ()
 SiTrackerGSMatchedRecHit2D (const LocalPoint &, const LocalError &, const DetId &, const int simhitId, const int simtrackId, const uint32_t eeId, ClusterRef const &cluster, const int pixelMultiplicityX, const int pixelMultiplicityY)
const SiTrackerGSRecHit2DstereoHit () const
 ~SiTrackerGSMatchedRecHit2D ()

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_

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.

{}
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D ( const LocalPoint pos,
const LocalError err,
const DetId id,
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 
)
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D ( const LocalPoint pos,
const LocalError err,
const DetId id,
const int  simhitId,
const int  simtrackId,
const uint32_t  eeId,
ClusterRef const &  cluster,
const int  pixelMultiplicityX = -1,
const int  pixelMultiplicityY = -1 
)

Member Function Documentation

virtual SiTrackerGSMatchedRecHit2D* SiTrackerGSMatchedRecHit2D::clone ( void  ) const [inline, virtual]

Implements RecHit2DLocalPos.

Definition at line 52 of file SiTrackerGSMatchedRecHit2D.h.

References SiTrackerGSMatchedRecHit2D().

{return new SiTrackerGSMatchedRecHit2D( * this); }
ClusterRef const& SiTrackerGSMatchedRecHit2D::cluster ( ) const [inline]

Definition at line 63 of file SiTrackerGSMatchedRecHit2D.h.

References cluster_.

Referenced by sharesInput().

{ return cluster_;}
const uint32_t& SiTrackerGSMatchedRecHit2D::eeId ( ) const [inline]

Definition at line 56 of file SiTrackerGSMatchedRecHit2D.h.

References eeId_.

Referenced by TrackerHitAssociator::associateGSMatchedRecHit().

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

Definition at line 59 of file SiTrackerGSMatchedRecHit2D.h.

References isMatched_.

Referenced by TrackCandidateProducer::produce().

{ return isMatched_;}
const SiTrackerGSRecHit2D* SiTrackerGSMatchedRecHit2D::monoHit ( ) const [inline]

Definition at line 60 of file SiTrackerGSMatchedRecHit2D.h.

References componentMono_.

Referenced by TrackCandidateProducer::addSplitHits().

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

Definition at line 64 of file SiTrackerGSMatchedRecHit2D.h.

References cluster_.

{ cluster_  = ref; }
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().

 {
   if (geographicalId() != other->geographicalId()) return false;
   if(! other->isValid()) return false;

   const SiTrackerGSMatchedRecHit2D* otherCast = static_cast<const SiTrackerGSMatchedRecHit2D*>(other);

   return cluster_ == otherCast->cluster();
 }
const int& SiTrackerGSMatchedRecHit2D::simhitId ( ) const [inline]

Definition at line 54 of file SiTrackerGSMatchedRecHit2D.h.

References simhitId_.

{ return 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().

{ return &componentStereo_;}

Member Data Documentation

Definition at line 73 of file SiTrackerGSMatchedRecHit2D.h.

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

Definition at line 78 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by monoHit().

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().

Definition at line 76 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by isMatched().

Definition at line 74 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simMultX().

Definition at line 75 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simMultY().

Definition at line 70 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simhitId().

Definition at line 71 of file SiTrackerGSMatchedRecHit2D.h.

Referenced by simtrackId().