Our base class. More...
#include <SiPixelRecHit.h>
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.
Definition at line 22 of file SiPixelRecHit.h.
Definition at line 26 of file SiPixelRecHit.h.
SiPixelRecHit::SiPixelRecHit | ( | ) | [inline] |
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) {}
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] |
Definition at line 41 of file SiPixelRecHit.h.
References TrackerSingleRecHit::cluster_pixel().
Referenced by SiPixelErrorEstimation::analyze(), SiPixelLorentzAngle::analyze(), AlignmentStats::analyze(), TrackerHitAssociator::associatePixelRecHit(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), AlignmentTrackSelector::checkPrescaledHits(), reco::modules::TrackerTrackHitFilter::checkPXLCorrClustCharge(), TSiPixelRecHit::clone(), ClusterShape::determineShape(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), reco::CentralityProducer::filter(), PlotRecTracks::getPixelInfo(), ctfseeding::HitExtractorPIX::hits(), TrackerDpgAnalysis::insertMeasurement(), HitComparator::less(), PlotRecHits::printPixelRecHit(), HLTTrackClusterRemover::process(), SeedClusterRemover::process(), TrackClusterRemover::process(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), fireworks::pushNearbyPixelHits(), HIPAlignmentAlgorithm::run(), and TSiPixelRecHit::TSiPixelRecHit().
{ return cluster_pixel(); }
float SiPixelRecHit::clusterProbability | ( | unsigned int | flags = 0 | ) | const |
Definition at line 10 of file SiPixelRecHit.cc.
References hasFilledProb(), probabilityQ(), and probabilityXY().
Referenced by TrackerDpgAnalysis::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), reco::modules::TrackerTrackHitFilter::checkStoN(), TSiPixelRecHit::clusterProbability(), FilterScrapingPixelProbability::filter(), and KFFittingSmoother::fit().
{ if (!hasFilledProb()) { return 1; } else if (flags == 1) { return probabilityXY() * probabilityQ(); } else if (flags == 2) { return probabilityQ(); } else { return probabilityXY(); } }
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] |
Definition at line 116 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
Referenced by SiPixelTrackResidualSource::analyze(), reco::modules::TrackerTrackHitFilter::checkStoN(), and clusterProbability().
{ return SiPixelRecHitQuality::thePacking.hasFilledProb( qualWord_ ); }
bool SiPixelRecHit::isOnEdge | ( | ) | const [inline] |
Definition at line 103 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
{ return SiPixelRecHitQuality::thePacking.isOnEdge( qualWord_ ); }
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] |
Definition at line 96 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
Referenced by reco::modules::TrackerTrackHitFilter::checkStoN(), and KFFittingSmoother::fit().
{ return SiPixelRecHitQuality::thePacking.qBin( qualWord_ ); }
SiPixelRecHitQuality::QualWordType SiPixelRecHit::rawQualityWord | ( | ) | const [inline] |
void SiPixelRecHit::setClusterRef | ( | ClusterRef const & | ref | ) | [inline] |
Definition at line 42 of file SiPixelRecHit.h.
References TrackerSingleRecHit::setClusterPixelRef().
{setClusterPixelRef(ref);}
void SiPixelRecHit::setHasBadPixels | ( | bool | flag | ) | [inline] |
Definition at line 133 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
{ SiPixelRecHitQuality::thePacking.setHasBadPixels( flag, qualWord_ ); }
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.
{ SiPixelRecHitQuality::thePacking.setIsOnEdge( flag, qualWord_ ); }
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.
{ SiPixelRecHitQuality::thePacking.setQBin( qbin, qualWord_ ); }
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().
void SiPixelRecHit::setSpansTwoROCs | ( | bool | flag | ) | [inline] |
Definition at line 136 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
{ SiPixelRecHitQuality::thePacking.setSpansTwoROCs( flag, qualWord_ ); }
bool SiPixelRecHit::spansTwoROCs | ( | ) | const [inline] |
Definition at line 111 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
{ return SiPixelRecHitQuality::thePacking.spansTwoROCs( qualWord_ ); }
Definition at line 53 of file SiPixelRecHit.h.
Referenced by hasBadPixels(), hasFilledProb(), isOnEdge(), probabilityQ(), probabilityX(), probabilityXY(), probabilityY(), qBin(), rawQualityWord(), setHasBadPixels(), setHasFilledProb(), setIsOnEdge(), setProbabilityQ(), setProbabilityXY(), setQBin(), setRawQualityWord(), setSpansTwoROCs(), and spansTwoROCs().