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 | Static Public Member Functions | Private Member Functions | Private Attributes
ProjectedSiStripRecHit2D Class Referencefinal

#include <ProjectedSiStripRecHit2D.h>

Inheritance diagram for ProjectedSiStripRecHit2D:
TrackerSingleRecHit BaseTrackerRecHit TrackingRecHit

Public Types

typedef TrackerSingleRecHit Base
 
typedef
OmniClusterRef::ClusterStripRef 
ClusterRef
 
- Public Types inherited from TrackerSingleRecHit
typedef BaseTrackerRecHit Base
 
typedef
OmniClusterRef::ClusterPixelRef 
ClusterPixelRef
 
typedef
OmniClusterRef::ClusterStripRef 
ClusterStripRef
 
- 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,
  missing_inner = 4, missing_outer = 5
}
 

Public Member Functions

virtual bool canImproveWithTrack () const
 
virtual ProjectedSiStripRecHit2Dclone () const
 
ClusterRef cluster () const
 
virtual int dimension () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
const GeomDetUnitoriginalDet () const
 
SiStripRecHit2D originalHit () const
 
unsigned int originalId () const
 
 ProjectedSiStripRecHit2D ()
 
 ProjectedSiStripRecHit2D (const LocalPoint &pos, const LocalError &err, GeomDet const &idet, SiStripRecHit2D const &originalHit)
 
template<typename CluRef >
 ProjectedSiStripRecHit2D (const LocalPoint &pos, const LocalError &err, GeomDet const &idet, GeomDet const &originalDet, CluRef const &clus)
 
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...
 
virtual void setDet (const GeomDet &idet)
 
- Public Member Functions inherited from TrackerSingleRecHit
ClusterPixelRef cluster_pixel () const
 
ClusterStripRef cluster_strip () const
 
const GeomDetUnitdetUnit () const
 
virtual OmniClusterRef const & firstClusterRef () const final
 
OmniClusterRef const & omniCluster () const
 
OmniClusterRefomniCluster ()
 
OmniClusterRef const & omniClusterRef () const
 
OmniClusterRefomniClusterRef ()
 
SiPixelCluster const & pixelCluster () const
 
bool sameCluster (OmniClusterRef const &oh) const
 
void setClusterPixelRef (ClusterPixelRef const &ref)
 
void setClusterStripRef (ClusterStripRef const &ref)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const final
 
bool sharesInput (TrackerSingleRecHit const &other) const
 
SiStripCluster const & stripCluster () const
 
 TrackerSingleRecHit ()
 
 TrackerSingleRecHit (DetId id, OmniClusterRef const &clus)
 
template<typename CluRef >
 TrackerSingleRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, CluRef const &clus)
 
template<typename CluRef >
 TrackerSingleRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt, CluRef const &clus)
 
- 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 final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
void getKfComponents1D (KfComponentsHolder &holder) const
 
void getKfComponents2D (KfComponentsHolder &holder) const
 
virtual GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
bool hasPositionAndError () const final
 to be redefined by daughter class More...
 
BaseTrackerRecHit const * hit () const final
 
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 final
 
virtual LocalError localPositionError () const final
 
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 final
 
virtual ~BaseTrackerRecHit ()
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () 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 * > &)
 
 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 ()
 

Static Public Member Functions

static bool isMono (GeomDet const &gdet, GeomDet const &sdet)
 

Private Member Functions

virtual ProjectedSiStripRecHit2Dclone (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const
 
virtual ConstRecHitPointer cloneSH (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const
 

Private Attributes

const GeomDettheOriginalDet
 

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
LocalError err_
 
LocalPoint pos_
 
unsigned int qualWord_
 

Detailed Description

Definition at line 8 of file ProjectedSiStripRecHit2D.h.

Member Typedef Documentation

Definition at line 16 of file ProjectedSiStripRecHit2D.h.

Definition at line 53 of file ProjectedSiStripRecHit2D.h.

Constructor & Destructor Documentation

ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D ( )
inline

Definition at line 18 of file ProjectedSiStripRecHit2D.h.

Referenced by clone().

18 : theOriginalDet(nullptr) {}
ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D ( const LocalPoint pos,
const LocalError err,
GeomDet const &  idet,
SiStripRecHit2D const &  originalHit 
)
inline

Definition at line 20 of file ProjectedSiStripRecHit2D.h.

References assert(), originalId(), and TrackingRecHit::rawId().

22  :
23  TrackerSingleRecHit(pos, err, idet,
27 // std::cout << getRTTI() << ' ' << originalHit.rawId() << ' ' << idet.geographicalId().rawId() << ' ' << originalId() << std::endl;
29  }
assert(m_qm.get())
unsigned int originalId() const
const GeomDet * det() const
OmniClusterRef const & omniCluster() const
SiStripRecHit2D originalHit() const
static bool isMono(GeomDet const &gdet, GeomDet const &sdet)
id_type rawId() const
template<typename CluRef >
ProjectedSiStripRecHit2D::ProjectedSiStripRecHit2D ( const LocalPoint pos,
const LocalError err,
GeomDet const &  idet,
GeomDet const &  originalDet,
CluRef const &  clus 
)
inline

Definition at line 32 of file ProjectedSiStripRecHit2D.h.

References assert(), GeomDet::geographicalId(), and originalId().

34  :
35  TrackerSingleRecHit(pos, err, idet,
37  clus),
40  }
assert(m_qm.get())
unsigned int originalId() const
const GeomDetUnit * originalDet() const
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:77
static bool isMono(GeomDet const &gdet, GeomDet const &sdet)

Member Function Documentation

virtual bool ProjectedSiStripRecHit2D::canImproveWithTrack ( ) const
inlinevirtual

Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy. In order to avoid redundent copies one should call canImproveWithTrack() before calling clone( const TrajectoryStateOnSurface&). this will be done inside the TkCloner itself

Reimplemented from TrackingRecHit.

Definition at line 45 of file ProjectedSiStripRecHit2D.h.

45 {return true;}
virtual ProjectedSiStripRecHit2D* ProjectedSiStripRecHit2D::clone ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 47 of file ProjectedSiStripRecHit2D.h.

References ProjectedSiStripRecHit2D().

virtual ProjectedSiStripRecHit2D* ProjectedSiStripRecHit2D::clone ( TkCloner const &  cloner,
TrajectoryStateOnSurface const &  tsos 
) const
inlineprivatevirtual

Reimplemented from TrackingRecHit.

Definition at line 76 of file ProjectedSiStripRecHit2D.h.

References HLT_25ns10e33_v2_cff::cloner.

76  {
77  return cloner(*this,tsos).release();
78  }
virtual ConstRecHitPointer ProjectedSiStripRecHit2D::cloneSH ( TkCloner const &  cloner,
TrajectoryStateOnSurface const &  tsos 
) const
inlineprivatevirtual

Reimplemented from TrackingRecHit.

Definition at line 80 of file ProjectedSiStripRecHit2D.h.

References TkCloner::makeShared().

80  {
81  return cloner.makeShared(*this,tsos);
82  }
ClusterRef ProjectedSiStripRecHit2D::cluster ( ) const
inline

Definition at line 54 of file ProjectedSiStripRecHit2D.h.

References TrackerSingleRecHit::cluster_strip().

54 { return cluster_strip() ; }
ClusterStripRef cluster_strip() const
virtual int ProjectedSiStripRecHit2D::dimension ( ) const
inlinevirtual

Implements BaseTrackerRecHit.

Definition at line 50 of file ProjectedSiStripRecHit2D.h.

50 {return 2;}
virtual void ProjectedSiStripRecHit2D::getKfComponents ( KfComponentsHolder holder) const
inlinevirtual

Implements BaseTrackerRecHit.

Definition at line 51 of file ProjectedSiStripRecHit2D.h.

References BaseTrackerRecHit::getKfComponents2D().

51 { getKfComponents2D(holder); }
void getKfComponents2D(KfComponentsHolder &holder) const
static bool ProjectedSiStripRecHit2D::isMono ( GeomDet const &  gdet,
GeomDet const &  sdet 
)
inlinestatic

Definition at line 11 of file ProjectedSiStripRecHit2D.h.

References GeomDet::geographicalId().

11  {
12  return (sdet.geographicalId()-gdet.geographicalId())==2;
13  }
const GeomDetUnit* ProjectedSiStripRecHit2D::originalDet ( ) const
inline

Definition at line 55 of file ProjectedSiStripRecHit2D.h.

References theOriginalDet.

Referenced by TkClonerImpl::operator()().

55  {
56  return static_cast<const GeomDetUnit*>(theOriginalDet);
57  }
SiStripRecHit2D ProjectedSiStripRecHit2D::originalHit ( ) const
inline
unsigned int ProjectedSiStripRecHit2D::originalId ( ) const
inline

Definition at line 58 of file ProjectedSiStripRecHit2D.h.

References trackerHitRTTI::projId().

Referenced by originalHit(), and ProjectedSiStripRecHit2D().

58 { return trackerHitRTTI::projId(*this);}
unsigned int projId(TrackingRecHit const &hit)
virtual std::vector<const TrackingRecHit*> ProjectedSiStripRecHit2D::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Reimplemented from TrackerSingleRecHit.

Definition at line 64 of file ProjectedSiStripRecHit2D.h.

References HI_PhotonSkim_cff::rechits.

64  {
65  std::vector<const TrackingRecHit*> rechits;
66  return rechits;
67  }
virtual std::vector<TrackingRecHit*> ProjectedSiStripRecHit2D::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Reimplemented from TrackerSingleRecHit.

Definition at line 68 of file ProjectedSiStripRecHit2D.h.

References HI_PhotonSkim_cff::rechits.

68  {
69  std::vector<TrackingRecHit*> rechits;
70  return rechits;
71  }
void ProjectedSiStripRecHit2D::setDet ( const GeomDet idet)
virtual

Reimplemented from TrackingRecHit.

Definition at line 6 of file ProjectedSiStripRecHit2D.cc.

References trackerHitRTTI::isProjMono(), GluedGeomDet::monoDet(), TrackingRecHit::setDet(), GluedGeomDet::stereoDet(), and theOriginalDet.

6  {
8  const GluedGeomDet& gdet = static_cast<const GluedGeomDet&>(idet);
10 }
const GeomDetUnit * monoDet() const
Definition: GluedGeomDet.h:20
bool isProjMono(TrackingRecHit const &hit)
virtual void setDet(const GeomDet &idet)
const GeomDetUnit * stereoDet() const
Definition: GluedGeomDet.h:21

Member Data Documentation

const GeomDet* ProjectedSiStripRecHit2D::theOriginalDet
private

Definition at line 86 of file ProjectedSiStripRecHit2D.h.

Referenced by originalDet(), and setDet().