CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

SiPixelRecHit Class Reference

Our base class. More...

#include <SiPixelRecHit.h>

Inheritance diagram for SiPixelRecHit:
TrackerSingleRecHit BaseTrackerRecHit TrackingRecHit

List of all members.

Public Types

typedef edm::Ref
< edmNew::DetSetVector
< SiPixelCluster >
, SiPixelCluster
ClusterRef

Public Member Functions

virtual SiPixelRecHitclone () const
ClusterRef cluster () const
float clusterProbability (unsigned int flags=0) const
virtual int dimension () const
virtual void getKfComponents (KfComponentsHolder &holder) const
bool hasBadPixels () const
bool hasFilledProb () const
bool isOnEdge () const
float probabilityQ () const
float probabilityX () const
float probabilityXY () const
float probabilityY () const
int qBin () const
SiPixelRecHitQuality::QualWordType rawQualityWord () const
void setClusterRef (ClusterRef const &ref)
void setHasBadPixels (bool flag)
void setHasFilledProb (bool flag)
void setIsOnEdge (bool flag)
void setProbabilityQ (float prob)
void setProbabilityXY (float prob)
void setQBin (int qbin)
void setRawQualityWord (SiPixelRecHitQuality::QualWordType w)
void setSpansTwoROCs (bool flag)
 SiPixelRecHit ()
 SiPixelRecHit (const LocalPoint &pos, const LocalError &err, const DetId &id, ClusterRef const &clus)
bool spansTwoROCs () const
 ~SiPixelRecHit ()

Private Attributes

SiPixelRecHitQuality::QualWordType qualWord_

Detailed Description

Our base class.

Pixel Reconstructed Hit.

Quality word packing

A pixel hit is a 2D position and error in a given pixel sensor. It contains a persistent reference edm::Ref to the pixel cluster.

Author:
porting from ORCA: Petar Maksimovic (JHU), DetSetVector and persistent references: V.Chiochia (Uni Zurich)

Definition at line 22 of file SiPixelRecHit.h.


Member Typedef Documentation

Definition at line 26 of file SiPixelRecHit.h.


Constructor & Destructor Documentation

SiPixelRecHit::SiPixelRecHit ( ) [inline]

Definition at line 28 of file SiPixelRecHit.h.

Referenced by clone().

: qualWord_(0) {}
SiPixelRecHit::~SiPixelRecHit ( ) [inline]

Definition at line 30 of file SiPixelRecHit.h.

{}
SiPixelRecHit::SiPixelRecHit ( const LocalPoint pos,
const LocalError err,
const DetId id,
ClusterRef const &  clus 
) [inline]

Definition at line 32 of file SiPixelRecHit.h.

                                          : 
    TrackerSingleRecHit(pos,err,id,clus), 
    qualWord_(0) 
  {}

Member Function Documentation

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

Implements TrackingRecHit.

Definition at line 39 of file SiPixelRecHit.h.

References SiPixelRecHit().

{return new SiPixelRecHit( * this); }
ClusterRef SiPixelRecHit::cluster ( ) const [inline]
float SiPixelRecHit::clusterProbability ( unsigned int  flags = 0) const
virtual int SiPixelRecHit::dimension ( ) const [inline, virtual]

Implements BaseTrackerRecHit.

Definition at line 43 of file SiPixelRecHit.h.

Referenced by TSiPixelRecHit::dimension().

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

Implements BaseTrackerRecHit.

Definition at line 44 of file SiPixelRecHit.h.

References BaseTrackerRecHit::getKfComponents2D().

{ getKfComponents2D(holder); }
bool SiPixelRecHit::hasBadPixels ( ) const [inline]

Definition at line 107 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

                                       {
    return SiPixelRecHitQuality::thePacking.hasBadPixels( qualWord_ );
  }
bool SiPixelRecHit::hasFilledProb ( ) const [inline]
bool SiPixelRecHit::isOnEdge ( ) const [inline]

Definition at line 103 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

float SiPixelRecHit::probabilityQ ( ) const [inline]

Definition at line 89 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by clusterProbability().

                                        {
    return SiPixelRecHitQuality::thePacking.probabilityQ( qualWord_ );
  }
float SiPixelRecHit::probabilityX ( ) const [inline]

Definition at line 78 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by TestTrackHits::analyze(), and TestOutliers::analyze().

                                        {
    return SiPixelRecHitQuality::thePacking.probabilityX( qualWord_ );
  }
float SiPixelRecHit::probabilityXY ( ) const [inline]

Definition at line 86 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by clusterProbability().

                                         {
    return SiPixelRecHitQuality::thePacking.probabilityXY( qualWord_ );
  }
float SiPixelRecHit::probabilityY ( ) const [inline]

Definition at line 81 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by TestTrackHits::analyze(), and TestOutliers::analyze().

                                        {
    return SiPixelRecHitQuality::thePacking.probabilityY( qualWord_ );
  }
int SiPixelRecHit::qBin ( ) const [inline]
SiPixelRecHitQuality::QualWordType SiPixelRecHit::rawQualityWord ( ) const [inline]

Definition at line 68 of file SiPixelRecHit.h.

References qualWord_.

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

Definition at line 42 of file SiPixelRecHit.h.

References TrackerSingleRecHit::setClusterPixelRef().

void SiPixelRecHit::setHasBadPixels ( bool  flag) [inline]

Definition at line 133 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

void SiPixelRecHit::setHasFilledProb ( bool  flag) [inline]

Definition at line 139 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

                                            {
    SiPixelRecHitQuality::thePacking.setHasFilledProb( flag, qualWord_ );
  }
void SiPixelRecHit::setIsOnEdge ( bool  flag) [inline]

Definition at line 130 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

void SiPixelRecHit::setProbabilityQ ( float  prob) [inline]

Definition at line 124 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

                                            {
    SiPixelRecHitQuality::thePacking.setProbabilityQ( prob, qualWord_ );
  }  
void SiPixelRecHit::setProbabilityXY ( float  prob) [inline]

Definition at line 121 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

                                             {
    SiPixelRecHitQuality::thePacking.setProbabilityXY( prob, qualWord_ );
  }
void SiPixelRecHit::setQBin ( int  qbin) [inline]

Definition at line 127 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

void SiPixelRecHit::setRawQualityWord ( SiPixelRecHitQuality::QualWordType  w) [inline]

Definition at line 71 of file SiPixelRecHit.h.

References qualWord_, and w().

Referenced by cms::SiPixelRecHitConverter::run(), and TSiPixelRecHit::TSiPixelRecHit().

                                                                      { 
    qualWord_ = w; 
  }
void SiPixelRecHit::setSpansTwoROCs ( bool  flag) [inline]

Definition at line 136 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

bool SiPixelRecHit::spansTwoROCs ( ) const [inline]

Definition at line 111 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

                                       {
    return SiPixelRecHitQuality::thePacking.spansTwoROCs( qualWord_ );
  }

Member Data Documentation