CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

SiStripMatchedRecHit2D Class Reference

#include <SiStripMatchedRecHit2D.h>

Inheritance diagram for SiStripMatchedRecHit2D:
BaseTrackerRecHit TrackingRecHit

List of all members.

Public Types

typedef BaseTrackerRecHit Base

Public Member Functions

virtual SiStripMatchedRecHit2Dclone () const
virtual int dimension () const
virtual OmniClusterRef const & firstClusterRef () const
virtual void getKfComponents (KfComponentsHolder &holder) const
SiStripCluster const & monoCluster () const
OmniClusterRef const & monoClusterRef () const
OmniClusterRefmonoClusterRef ()
SiStripRecHit2D monoHit () const
unsigned int monoId () const
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any)
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any)
bool sharesInput (TrackerSingleRecHit const &other) const
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 SiStripMatchedRecHit2D ()
 SiStripMatchedRecHit2D (const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *rMono, const SiStripRecHit2D *rStereo)
SiStripCluster const & stereoCluster () const
OmniClusterRefstereoClusterRef ()
OmniClusterRef const & stereoClusterRef () const
SiStripRecHit2D stereoHit () const
unsigned int stereoId () const
 ~SiStripMatchedRecHit2D ()

Private Attributes

OmniClusterRef clusterMono_
OmniClusterRef clusterStereo_

Detailed Description

Definition at line 6 of file SiStripMatchedRecHit2D.h.


Member Typedef Documentation

Definition at line 8 of file SiStripMatchedRecHit2D.h.


Constructor & Destructor Documentation

SiStripMatchedRecHit2D::SiStripMatchedRecHit2D ( ) [inline]

Definition at line 10 of file SiStripMatchedRecHit2D.h.

Referenced by clone().

{}
SiStripMatchedRecHit2D::~SiStripMatchedRecHit2D ( ) [inline]

Definition at line 11 of file SiStripMatchedRecHit2D.h.

{}
SiStripMatchedRecHit2D::SiStripMatchedRecHit2D ( const LocalPoint pos,
const LocalError err,
const DetId id,
const SiStripRecHit2D rMono,
const SiStripRecHit2D rStereo 
) [inline]

Definition at line 13 of file SiStripMatchedRecHit2D.h.


Member Function Documentation

virtual SiStripMatchedRecHit2D* SiStripMatchedRecHit2D::clone ( void  ) const [inline, virtual]
virtual int SiStripMatchedRecHit2D::dimension ( ) const [inline, virtual]

Implements BaseTrackerRecHit.

Definition at line 44 of file SiStripMatchedRecHit2D.h.

{return 2;}
virtual OmniClusterRef const& SiStripMatchedRecHit2D::firstClusterRef ( ) const [inline, virtual]

Implements BaseTrackerRecHit.

Definition at line 25 of file SiStripMatchedRecHit2D.h.

References monoClusterRef().

Referenced by sharesInput().

{ return monoClusterRef();}
virtual void SiStripMatchedRecHit2D::getKfComponents ( KfComponentsHolder holder) const [inline, virtual]

Implements BaseTrackerRecHit.

Definition at line 45 of file SiStripMatchedRecHit2D.h.

References BaseTrackerRecHit::getKfComponents2D().

{ getKfComponents2D(holder); }
SiStripCluster const& SiStripMatchedRecHit2D::monoCluster ( ) const [inline]
OmniClusterRef& SiStripMatchedRecHit2D::monoClusterRef ( ) [inline]

Definition at line 32 of file SiStripMatchedRecHit2D.h.

References clusterMono_.

{ return clusterMono_;}
OmniClusterRef const& SiStripMatchedRecHit2D::monoClusterRef ( ) const [inline]
SiStripRecHit2D SiStripMatchedRecHit2D::monoHit ( ) const [inline]
unsigned int SiStripMatchedRecHit2D::monoId ( ) const [inline]
std::vector< const TrackingRecHit * > SiStripMatchedRecHit2D::recHits ( ) const [virtual]

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 34 of file SiStripMatchedRecHit2D.cc.

References HI_PhotonSkim_cff::rechits.

                                     {
  std::vector<const TrackingRecHit*> rechits;
  return rechits;
}
std::vector< TrackingRecHit * > SiStripMatchedRecHit2D::recHits ( ) [virtual]

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 40 of file SiStripMatchedRecHit2D.cc.

References HI_PhotonSkim_cff::rechits.

                                {
  std::vector<TrackingRecHit*> rechits;
  return rechits;
}
bool SiStripMatchedRecHit2D::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 TrackingRecHit.

Definition at line 6 of file SiStripMatchedRecHit2D.cc.

References TrackingRecHit::all, firstClusterRef(), TrackingRecHit::geographicalId(), trackerHitRTTI::isMatched(), monoClusterRef(), BaseTrackerRecHit::sameDetModule(), sharesClusters(), and stereoClusterRef().

Referenced by TrackerSingleRecHit::sharesInput().

{
  if (what==all && (geographicalId() != other->geographicalId())) return false;
 
  if (!sameDetModule(*other)) return false;

  if (trackerHitRTTI::isMatched(*other) ) {
    const SiStripMatchedRecHit2D* otherMatched = static_cast<const SiStripMatchedRecHit2D*>(other);
    return sharesClusters(*this, *otherMatched,what);
  }
   
  if (what==all)  return false;
  // what about multi???
  auto const & otherClus = reinterpret_cast<const BaseTrackerRecHit *>(other)->firstClusterRef();
  return (otherClus==stereoClusterRef())  ||  (otherClus==monoClusterRef());
  
  
}
bool SiStripMatchedRecHit2D::sharesInput ( TrackerSingleRecHit const &  other) const

Definition at line 28 of file SiStripMatchedRecHit2D.cc.

References monoClusterRef(), TrackerSingleRecHit::sameCluster(), and stereoClusterRef().

                                                                                {
  return other.sameCluster(monoClusterRef()) || other.sameCluster(stereoClusterRef());
}
SiStripCluster const& SiStripMatchedRecHit2D::stereoCluster ( ) const [inline]
OmniClusterRef const& SiStripMatchedRecHit2D::stereoClusterRef ( ) const [inline]
OmniClusterRef& SiStripMatchedRecHit2D::stereoClusterRef ( ) [inline]

Definition at line 31 of file SiStripMatchedRecHit2D.h.

References clusterStereo_.

{ return clusterStereo_;}
SiStripRecHit2D SiStripMatchedRecHit2D::stereoHit ( ) const [inline]
unsigned int SiStripMatchedRecHit2D::stereoId ( ) const [inline]

Member Data Documentation

Definition at line 58 of file SiStripMatchedRecHit2D.h.

Referenced by monoClusterRef().

Definition at line 58 of file SiStripMatchedRecHit2D.h.

Referenced by stereoClusterRef().