#include <DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h>
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.
Definition at line 27 of file SiPixelRecHit.h.
Definition at line 30 of file SiPixelRecHit.h.
SiPixelRecHit::SiPixelRecHit | ( | ) | [inline] |
Definition at line 32 of file SiPixelRecHit.h.
Referenced by clone().
00032 : BaseSiTrackerRecHit2DLocalPos(), qualWord_(0), cluster_() {}
SiPixelRecHit::~SiPixelRecHit | ( | ) | [inline] |
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 }
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] |
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 }
Definition at line 128 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
00128 { 00129 SiPixelRecHitQuality::thePacking.setHasBadPixels( flag, qualWord_ ); 00130 }
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 }
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 }
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 }
SiPixelClusterRefNew SiPixelRecHit::cluster_ [private] |
Definition at line 138 of file SiPixelRecHit.h.
Referenced by cluster(), setClusterRef(), and sharesInput().
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().