CMS 3D CMS Logo

SiPixelRecHit Class Reference

Our base class. More...

#include <DataFormats/TrackerRecHit2D/interface/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 cotAlphaFromCluster () const
float cotBetaFromCluster () const
bool hasBadPixels () const
bool isOnEdge () const
float probabilityX () const
float probabilityY () const
int qBin () const
SiPixelRecHitQuality::QualWordType rawQualityWord () const
void setClusterRef (const ClusterRef &ref)
void setCotAlphaFromCluster (float cotalpha)
void setCotBetaFromCluster (float cotbeta)
void setHasBadPixels (bool flag)
void setIsOnEdge (bool flag)
void setProbabilityX (float prob)
void setProbabilityY (float prob)
void setQBin (int qbin)
void setSpansTwoROCs (bool flag)
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise.
 SiPixelRecHit (const LocalPoint &, const LocalError &, const DetId &, ClusterRef const &cluster)
 SiPixelRecHit ()
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

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

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.

00034 {}

SiPixelRecHit::SiPixelRecHit ( const LocalPoint pos,
const LocalError err,
const DetId id,
ClusterRef const &  cluster 
)

Definition at line 3 of file SiPixelRecHit.cc.

00005                                                                    : 
00006   BaseSiTrackerRecHit2DLocalPos(pos,err,id),
00007   cluster_(cluster) 
00008 
00009 {
00010 }


Member Function Documentation

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

Implements RecHit2DLocalPos.

Definition at line 40 of file SiPixelRecHit.h.

References SiPixelRecHit().

00040 {return new SiPixelRecHit( * this); }

ClusterRef const& SiPixelRecHit::cluster (  )  const [inline]

Definition at line 42 of file SiPixelRecHit.h.

References cluster_.

Referenced by SiPixelErrorEstimation::analyze(), SiPixelLorentzAngle::analyze(), TrackerHitAssociator::associatePixelRecHit(), TSiPixelRecHit::clone(), ClusterShape::determineShape(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), HitComparator::less(), TrackClusterRemover::process(), ClusterRemovalRefSetter::reKey(), and sharesInput().

00042 { return cluster_;}

float SiPixelRecHit::cotAlphaFromCluster (  )  const [inline]

Definition at line 79 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00079                                                {
00080     return SiPixelRecHitQuality::thePacking.cotAlphaFromCluster( qualWord_ );
00081   }

float SiPixelRecHit::cotBetaFromCluster (  )  const [inline]

Definition at line 82 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00082                                               {
00083     return SiPixelRecHitQuality::thePacking.cotBetaFromCluster( qualWord_ );
00084   }

bool SiPixelRecHit::hasBadPixels (  )  const [inline]

Definition at line 100 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00100                                        {
00101     return SiPixelRecHitQuality::thePacking.hasBadPixels( qualWord_ );
00102   }

bool SiPixelRecHit::isOnEdge (  )  const [inline]

Definition at line 96 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00096                                    {
00097     return SiPixelRecHitQuality::thePacking.isOnEdge( qualWord_ );
00098   }

float SiPixelRecHit::probabilityX (  )  const [inline]

Definition at line 64 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

00064                                         {
00065     return SiPixelRecHitQuality::thePacking.probabilityX( qualWord_ );
00066   }

float SiPixelRecHit::probabilityY (  )  const [inline]

Definition at line 67 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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

00067                                         {
00068     return SiPixelRecHitQuality::thePacking.probabilityY( qualWord_ );
00069   }

int SiPixelRecHit::qBin (  )  const [inline]

Definition at line 89 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00089                               {
00090     return SiPixelRecHitQuality::thePacking.qBin( qualWord_ );
00091   }

SiPixelRecHitQuality::QualWordType SiPixelRecHit::rawQualityWord (  )  const [inline]

Definition at line 60 of file SiPixelRecHit.h.

References qualWord_.

00060 { return qualWord_; }

void SiPixelRecHit::setClusterRef ( const ClusterRef ref  )  [inline]

Definition at line 43 of file SiPixelRecHit.h.

References cluster_.

Referenced by ClusterRemovalRefSetter::reKey().

00043 { cluster_  = ref; }

void SiPixelRecHit::setCotAlphaFromCluster ( float  cotalpha  )  [inline]

Definition at line 110 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by cms::SiPixelRecHitConverter::run().

00110                                                        {
00111     SiPixelRecHitQuality::thePacking.setCotAlphaFromCluster( cotalpha, qualWord_ );
00112   }

void SiPixelRecHit::setCotBetaFromCluster ( float  cotbeta  )  [inline]

Definition at line 113 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by cms::SiPixelRecHitConverter::run().

00113                                                       {
00114     SiPixelRecHitQuality::thePacking.setCotBetaFromCluster( cotbeta, qualWord_ );
00115   }

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

Definition at line 128 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00128                                            {
00129     SiPixelRecHitQuality::thePacking.setHasBadPixels( flag, qualWord_ );
00130   }

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

Definition at line 125 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00125                                        {
00126     SiPixelRecHitQuality::thePacking.setIsOnEdge( flag, qualWord_ );
00127   }

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

Definition at line 116 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by cms::SiPixelRecHitConverter::run().

00116                                             {
00117     SiPixelRecHitQuality::thePacking.setProbabilityX( prob, qualWord_ );
00118   }

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

Definition at line 119 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by cms::SiPixelRecHitConverter::run().

00119                                             {
00120     SiPixelRecHitQuality::thePacking.setProbabilityY( prob, qualWord_ );
00121   }  

void SiPixelRecHit::setQBin ( int  qbin  )  [inline]

Definition at line 122 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

Referenced by cms::SiPixelRecHitConverter::run().

00122                                   {
00123     SiPixelRecHitQuality::thePacking.setQBin( qbin, qualWord_ );
00124   }

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

Definition at line 131 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

00131                                            {
00132     SiPixelRecHitQuality::thePacking.setSpansTwoROCs( flag, qualWord_ );
00133   }

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().

00014 {
00015   if (geographicalId() != other->geographicalId()) return false;
00016   if(! other->isValid()) return false;
00017 
00018   const SiPixelRecHit* otherCast = static_cast<const SiPixelRecHit*>(other);
00019 
00020   return cluster_ == otherCast->cluster();
00021 }

bool SiPixelRecHit::spansTwoROCs (  )  const [inline]

Definition at line 104 of file SiPixelRecHit.h.

References qualWord_, and SiPixelRecHitQuality::thePacking.

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


Member Data Documentation

SiPixelClusterRefNew SiPixelRecHit::cluster_ [private]

Definition at line 138 of file SiPixelRecHit.h.

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

SiPixelRecHitQuality::QualWordType SiPixelRecHit::qualWord_ [private]

Definition at line 54 of file SiPixelRecHit.h.

Referenced by cotAlphaFromCluster(), cotBetaFromCluster(), hasBadPixels(), isOnEdge(), probabilityX(), probabilityY(), qBin(), rawQualityWord(), setCotAlphaFromCluster(), setCotBetaFromCluster(), setHasBadPixels(), setIsOnEdge(), setProbabilityX(), setProbabilityY(), setQBin(), setSpansTwoROCs(), and spansTwoROCs().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:04 2009 for CMSSW by  doxygen 1.5.4