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 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().
: BaseSiTrackerRecHit2DLocalPos(), qualWord_(0), cluster_() {}
SiPixelRecHit::~SiPixelRecHit | ( | ) | [inline] |
Definition at line 34 of file SiPixelRecHit.h.
{}
SiPixelRecHit::SiPixelRecHit | ( | const LocalPoint & | , |
const LocalError & | , | ||
const DetId & | , | ||
ClusterRef const & | cluster | ||
) |
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] |
Definition at line 42 of file SiPixelRecHit.h.
References cluster_.
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(), TrackHitFilter::keepThisHit(), HitComparator::less(), PlotRecHits::printPixelRecHit(), HLTTrackClusterRemover::process(), TrackClusterRemover::process(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), fireworks::pushNearbyPixelHits(), ClusterRemovalRefSetter::reKey(), HIPAlignmentAlgorithm::run(), sharesInput(), and TSiPixelRecHit::TSiPixelRecHit().
{ return cluster_;}
float SiPixelRecHit::clusterProbability | ( | unsigned int | flags = 0 | ) | const |
Definition at line 29 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(); } }
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] |
Definition at line 117 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 104 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
{ return SiPixelRecHitQuality::thePacking.isOnEdge( qualWord_ ); }
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] |
Definition at line 97 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
Referenced by reco::modules::TrackerTrackHitFilter::checkStoN().
{ return SiPixelRecHitQuality::thePacking.qBin( qualWord_ ); }
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().
{ cluster_ = ref; }
void SiPixelRecHit::setHasBadPixels | ( | bool | flag | ) | [inline] |
Definition at line 134 of file SiPixelRecHit.h.
References qualWord_, and SiPixelRecHitQuality::thePacking.
{ SiPixelRecHitQuality::thePacking.setHasBadPixels( flag, qualWord_ ); }
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.
{ SiPixelRecHitQuality::thePacking.setIsOnEdge( flag, qualWord_ ); }
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.
{ SiPixelRecHitQuality::thePacking.setQBin( qbin, qualWord_ ); }
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.
{ SiPixelRecHitQuality::thePacking.setSpansTwoROCs( flag, qualWord_ ); }
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_ ); }
SiPixelClusterRefNew SiPixelRecHit::cluster_ [private] |
Definition at line 146 of file SiPixelRecHit.h.
Referenced by cluster(), setClusterRef(), and sharesInput().
Definition at line 54 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().