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:
BaseSiTrackerRecHit2DLocalPos RecHit2DLocalPos TrackingRecHit

List of all members.

Public Types

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

Public Member Functions

virtual SiPixelRecHitclone () const
ClusterRef const & cluster () const
float clusterProbability (unsigned int flags=0) 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 (const ClusterRef &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)
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 SiPixelRecHit ()
 SiPixelRecHit (const LocalPoint &, const LocalError &, const DetId &, ClusterRef const &cluster)
bool spansTwoROCs () const
 ~SiPixelRecHit ()

Private Attributes

SiPixelClusterRefNew cluster_
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 27 of file SiPixelRecHit.h.


Member Typedef Documentation

Definition at line 30 of file SiPixelRecHit.h.


Constructor & Destructor Documentation

SiPixelRecHit::SiPixelRecHit ( ) [inline]

Definition at line 32 of file SiPixelRecHit.h.

Referenced by clone().

SiPixelRecHit::~SiPixelRecHit ( ) [inline]

Definition at line 34 of file SiPixelRecHit.h.

{}
SiPixelRecHit::SiPixelRecHit ( const LocalPoint ,
const LocalError ,
const DetId ,
ClusterRef const &  cluster 
)

Member Function Documentation

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

Implements RecHit2DLocalPos.

Definition at line 40 of file SiPixelRecHit.h.

References SiPixelRecHit().

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

Definition at line 108 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 104 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

float SiPixelRecHit::probabilityQ ( ) const [inline]

Definition at line 90 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 79 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 87 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 82 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 69 of file SiPixelRecHit.h.

References qualWord_.

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

Definition at line 43 of file SiPixelRecHit.h.

References cluster_.

Referenced by ClusterRemovalRefSetter::reKey().

{ cluster_  = ref; }
void SiPixelRecHit::setHasBadPixels ( bool  flag) [inline]

Definition at line 134 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Definition at line 140 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Definition at line 131 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Definition at line 125 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Definition at line 122 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Definition at line 128 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Definition at line 72 of file SiPixelRecHit.h.

References qualWord_.

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

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

Definition at line 137 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

bool SiPixelRecHit::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 12 of file SiPixelRecHit.cc.

References cluster(), cluster_, TrackingRecHit::geographicalId(), and TrackingRecHit::isValid().

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

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

  return cluster_ == otherCast->cluster();
}
bool SiPixelRecHit::spansTwoROCs ( ) const [inline]

Definition at line 112 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

Member Data Documentation

Definition at line 146 of file SiPixelRecHit.h.

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