CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ProjectedSiStripRecHit2D Class Reference

#include <ProjectedSiStripRecHit2D.h>

Inheritance diagram for ProjectedSiStripRecHit2D:
BaseTrackerRecHit TrackingRecHit

List of all members.

Public Types

typedef BaseTrackerRecHit Base

Public Member Functions

virtual ProjectedSiStripRecHit2Dclone () const
virtual int dimension () const
virtual OmniClusterRef const & firstClusterRef () const
virtual void getKfComponents (KfComponentsHolder &holder) const
SiStripRecHit2D & originalHit ()
const SiStripRecHit2D & originalHit () const
 ProjectedSiStripRecHit2D (const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *originalHit)
 ProjectedSiStripRecHit2D ()
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any)
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any)
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const

Private Attributes

SiStripRecHit2D originalHit_

Detailed Description

Definition at line 6 of file ProjectedSiStripRecHit2D.h.


Member Typedef Documentation

Definition at line 9 of file ProjectedSiStripRecHit2D.h.


Constructor & Destructor Documentation

ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D ( ) [inline]

Definition at line 10 of file ProjectedSiStripRecHit2D.h.

Referenced by clone().

{};
ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D ( const LocalPoint pos,
const LocalError err,
const DetId id,
const SiStripRecHit2D *  originalHit 
) [inline]

Member Function Documentation

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

Implements TrackingRecHit.

Definition at line 15 of file ProjectedSiStripRecHit2D.h.

References ProjectedSiStripRecHit2D().

{return new ProjectedSiStripRecHit2D( *this); }
virtual int ProjectedSiStripRecHit2D::dimension ( ) const [inline, virtual]

Implements BaseTrackerRecHit.

Definition at line 17 of file ProjectedSiStripRecHit2D.h.

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

Implements BaseTrackerRecHit.

Definition at line 22 of file ProjectedSiStripRecHit2D.h.

References originalHit().

{ return  originalHit().firstClusterRef();}
virtual void ProjectedSiStripRecHit2D::getKfComponents ( KfComponentsHolder holder) const [inline, virtual]

Implements BaseTrackerRecHit.

Definition at line 18 of file ProjectedSiStripRecHit2D.h.

References BaseTrackerRecHit::getKfComponents2D().

{ getKfComponents2D(holder); }
const SiStripRecHit2D& ProjectedSiStripRecHit2D::originalHit ( ) const [inline]
SiStripRecHit2D& ProjectedSiStripRecHit2D::originalHit ( ) [inline]

Definition at line 26 of file ProjectedSiStripRecHit2D.h.

References originalHit_.

{return originalHit_;}
virtual std::vector<TrackingRecHit*> ProjectedSiStripRecHit2D::recHits ( ) [inline, virtual]

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 35 of file ProjectedSiStripRecHit2D.h.

References originalHit_, and HI_PhotonSkim_cff::rechits.

                                               {
    std::vector<TrackingRecHit*> rechits(1,&originalHit_);
    return rechits;
  }
virtual std::vector<const TrackingRecHit*> ProjectedSiStripRecHit2D::recHits ( ) const [inline, virtual]

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 31 of file ProjectedSiStripRecHit2D.h.

References originalHit_, and HI_PhotonSkim_cff::rechits.

                                                          {
    std::vector<const TrackingRecHit*> rechits(1,&originalHit_);
    return rechits;
  }
virtual bool ProjectedSiStripRecHit2D::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const [inline, 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 28 of file ProjectedSiStripRecHit2D.h.

References originalHit().

                                                                                     {
    return originalHit().sharesInput(other,what);
  }

Member Data Documentation

SiStripRecHit2D ProjectedSiStripRecHit2D::originalHit_ [private]

Definition at line 43 of file ProjectedSiStripRecHit2D.h.

Referenced by originalHit(), and recHits().