CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions
SiPixelRecHit Class Referencefinal

Our base class. More...

#include <SiPixelRecHit.h>

Inheritance diagram for SiPixelRecHit:
TrackerSingleRecHit BaseTrackerRecHit TrackingRecHit

Public Types

typedef edm::Ref< edmNew::DetSetVector< SiPixelCluster >, SiPixelClusterClusterRef
 
- Public Types inherited from TrackerSingleRecHit
typedef BaseTrackerRecHit Base
 
typedef OmniClusterRef::ClusterMTDRef ClusterMTDRef
 
typedef OmniClusterRef::Phase2Cluster1DRef ClusterPhase2Ref
 
typedef OmniClusterRef::ClusterPixelRef ClusterPixelRef
 
typedef OmniClusterRef::ClusterStripRef ClusterStripRef
 
- Public Types inherited from TrackingRecHit
typedef std::vector< ConstRecHitPointerConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector< ConstRecHitPointerRecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type {
  valid = 0, missing = 1, inactive = 2, bad = 3,
  missing_inner = 4, missing_outer = 5, inactive_inner = 6, inactive_outer = 7
}
 

Public Member Functions

bool canImproveWithTrack () const override
 
SiPixelRecHitclone () const override
 
RecHitPointer cloneSH () const override
 
ClusterRef cluster () const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float clusterProbability (unsigned int flags=0) const
 
int dimension () const override
 
void getKfComponents (KfComponentsHolder &holder) const override
 
bool hasBadPixels () const
 
bool hasFilledProb () const
 
bool isOnEdge () const
 
bool isPixel () const override
 
float probabilityQ () const
 
float probabilityX () const
 
float probabilityXY () const
 
float probabilityY () const
 
int qBin () const
 
SiPixelRecHitQuality::QualWordType rawQualityWord () const
 
void setClusterRef (ClusterRef const &ref)
 
 SiPixelRecHit ()
 
 SiPixelRecHit (const LocalPoint &pos, const LocalError &err, SiPixelRecHitQuality::QualWordType qual, GeomDet const &idet, ClusterRef const &clus)
 
bool spansTwoROCs () const
 
 ~SiPixelRecHit () override
 
- Public Member Functions inherited from TrackerSingleRecHit
ClusterMTDRef cluster_mtd () const
 
ClusterPhase2Ref cluster_phase2OT () const
 
ClusterPixelRef cluster_pixel () const
 
ClusterStripRef cluster_strip () const
 
const GeomDetUnitdetUnit () const override
 
OmniClusterRef const & firstClusterRef () const final
 
FTLCluster const & mtdCluster () const
 
OmniClusterRef const & omniCluster () const
 
OmniClusterRefomniCluster ()
 
OmniClusterRef const & omniClusterRef () const
 
OmniClusterRefomniClusterRef ()
 
Phase2TrackerCluster1D const & phase2OTCluster () const
 
SiPixelCluster const & pixelCluster () const
 
std::vector< const TrackingRecHit * > recHits () const override
 Access to component RecHits (if any) More...
 
std::vector< TrackingRecHit * > recHits () override
 Non-const access to component RecHits (if any) More...
 
bool sameCluster (OmniClusterRef const &oh) const
 
void setClusterMTDRef (ClusterMTDRef const &ref)
 
void setClusterPhase2Ref (ClusterPhase2Ref const &ref)
 
void setClusterPixelRef (ClusterPixelRef const &ref)
 
void setClusterStripRef (ClusterStripRef const &ref)
 
bool sharesInput (const TrackingRecHit *other, SharedInputType what) const final
 
bool sharesInput (TrackerSingleRecHit const &other) const
 
SiStripCluster const & stripCluster () const
 
 TrackerSingleRecHit ()
 
 TrackerSingleRecHit (DetId id, OmniClusterRef const &clus)
 
template<typename CluRef >
 TrackerSingleRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, CluRef const &clus)
 
template<typename CluRef >
 TrackerSingleRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt, CluRef const &clus)
 
- Public Member Functions inherited from BaseTrackerRecHit
 BaseTrackerRecHit ()
 
 BaseTrackerRecHit (DetId id, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const GeomDet &idet, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt)
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
void getKfComponents1D (KfComponentsHolder &holder) const
 
void getKfComponents2D (KfComponentsHolder &holder) const
 
GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
bool hasPositionAndError () const override
 to be redefined by daughter class More...
 
BaseTrackerRecHit const * hit () const final
 
bool isMatched () const
 
bool isMulti () const
 
virtual bool isPhase2 () const
 
bool isProjected () const
 
bool isProjMono () const
 
bool isProjStereo () const
 
bool isSingle () const
 
LocalPoint localPosition () const override
 
LocalError localPositionError () const override
 
const LocalErrorlocalPositionErrorFast () const
 
const LocalPointlocalPositionFast () const
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
trackerHitRTTI::RTTI rtti () const
 
bool sameDetModule (TrackingRecHit const &hit) const
 
const Surfacesurface () const final
 
 ~BaseTrackerRecHit () override
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
const GeomDetdet () const
 
DetId geographicalId () const
 
unsigned int getRTTI () const
 
Type getType () const
 
bool isValid () const
 
id_type rawId () const
 
virtual void recHitsV (std::vector< const TrackingRecHit *> &) const
 
virtual void recHitsV (std::vector< TrackingRecHit *> &)
 
virtual void setDet (const GeomDet &idet)
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Member Functions

SiPixelRecHitclone_ (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
 
RecHitPointer cloneSH_ (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
 

Additional Inherited Members

- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 
- Protected Attributes inherited from BaseTrackerRecHit
LocalError err_
 
LocalPoint pos_
 
unsigned int 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 23 of file SiPixelRecHit.h.

Member Typedef Documentation

◆ ClusterRef

Definition at line 25 of file SiPixelRecHit.h.

Constructor & Destructor Documentation

◆ SiPixelRecHit() [1/2]

SiPixelRecHit::SiPixelRecHit ( )
inline

Definition at line 27 of file SiPixelRecHit.h.

Referenced by clone().

27 {}

◆ ~SiPixelRecHit()

SiPixelRecHit::~SiPixelRecHit ( )
inlineoverride

Definition at line 29 of file SiPixelRecHit.h.

29 {}

◆ SiPixelRecHit() [2/2]

SiPixelRecHit::SiPixelRecHit ( const LocalPoint pos,
const LocalError err,
SiPixelRecHitQuality::QualWordType  qual,
GeomDet const &  idet,
ClusterRef const &  clus 
)
inline

Member Function Documentation

◆ canImproveWithTrack()

bool SiPixelRecHit::canImproveWithTrack ( ) const
inlineoverridevirtual

Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy. In order to avoid redundent copies one should call canImproveWithTrack() before calling clone( const TrajectoryStateOnSurface&). this will be done inside the TkCloner itself

Reimplemented from TrackingRecHit.

Definition at line 54 of file SiPixelRecHit.h.

54 { return true; }

◆ clone()

SiPixelRecHit* SiPixelRecHit::clone ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 42 of file SiPixelRecHit.h.

References SiPixelRecHit().

42 { return new SiPixelRecHit(*this); }

◆ clone_()

SiPixelRecHit* SiPixelRecHit::clone_ ( TkCloner const &  cloner,
TrajectoryStateOnSurface const &  tsos 
) const
inlineoverrideprivatevirtual

Reimplemented from TrackingRecHit.

Definition at line 58 of file SiPixelRecHit.h.

58  {
59  return cloner(*this, tsos).release();
60  }

◆ cloneSH()

RecHitPointer SiPixelRecHit::cloneSH ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 44 of file SiPixelRecHit.h.

44 { return std::make_shared<SiPixelRecHit>(*this); }

◆ cloneSH_()

RecHitPointer SiPixelRecHit::cloneSH_ ( TkCloner const &  cloner,
TrajectoryStateOnSurface const &  tsos 
) const
inlineoverrideprivatevirtual

Reimplemented from TrackingRecHit.

Definition at line 62 of file SiPixelRecHit.h.

References TkCloner::makeShared().

62  {
63  return cloner.makeShared(*this, tsos);
64  }

◆ cluster()

ClusterRef SiPixelRecHit::cluster ( ) const
inline

◆ clusterProbability() [1/2]

virtual float BaseTrackerRecHit::clusterProbability
inline

cluster probability, overloaded by pixel rechits.

Definition at line 108 of file BaseTrackerRecHit.h.

108 { return 1.f; }

◆ clusterProbability() [2/2]

float SiPixelRecHit::clusterProbability ( unsigned int  flags = 0) const

Definition at line 9 of file SiPixelRecHit.cc.

References HLT_2024v10_cff::flags, hasFilledProb(), probabilityQ(), and probabilityXY().

Referenced by SiPixelTrackResidualSource::analyze(), SiPixelHitEfficiencySource::analyze(), SiPixelErrorEstimation::analyze(), PrimaryVertexValidation::analyze(), TrackerDpgAnalysis::analyze(), ApeEstimator::fillHitVariables(), and FilterScrapingPixelProbability::filter().

9  {
10  if (!hasFilledProb()) {
11  return 1;
12  } else if (flags == 1) {
13  return probabilityXY() * probabilityQ();
14  } else if (flags == 2) {
15  return probabilityQ();
16  } else {
17  return probabilityXY();
18  }
19 }
bool hasFilledProb() const
float probabilityXY() const
Definition: SiPixelRecHit.h:86
float probabilityQ() const
Definition: SiPixelRecHit.h:87

◆ dimension()

int SiPixelRecHit::dimension ( ) const
inlineoverridevirtual

Implements BaseTrackerRecHit.

Definition at line 51 of file SiPixelRecHit.h.

51 { return 2; }

◆ getKfComponents()

void SiPixelRecHit::getKfComponents ( KfComponentsHolder holder) const
inlineoverridevirtual

Implements BaseTrackerRecHit.

Definition at line 52 of file SiPixelRecHit.h.

References BaseTrackerRecHit::getKfComponents2D().

52 { getKfComponents2D(holder); }
void getKfComponents2D(KfComponentsHolder &holder) const

◆ hasBadPixels()

bool SiPixelRecHit::hasBadPixels ( ) const
inline

◆ hasFilledProb()

bool SiPixelRecHit::hasFilledProb ( ) const
inline

◆ isOnEdge()

bool SiPixelRecHit::isOnEdge ( ) const
inline

◆ isPixel()

bool SiPixelRecHit::isPixel ( ) const
inlineoverridevirtual

Reimplemented from BaseTrackerRecHit.

Definition at line 40 of file SiPixelRecHit.h.

40 { return true; }

◆ probabilityQ()

float SiPixelRecHit::probabilityQ ( ) const
inline

◆ probabilityX()

float SiPixelRecHit::probabilityX ( ) const
inline

◆ probabilityXY()

float SiPixelRecHit::probabilityXY ( ) const
inline

◆ probabilityY()

float SiPixelRecHit::probabilityY ( ) const
inline

◆ qBin()

int SiPixelRecHit::qBin ( ) const
inline

◆ rawQualityWord()

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

Definition at line 78 of file SiPixelRecHit.h.

References BaseTrackerRecHit::qualWord_.

Referenced by HIPAlignmentAlgorithm::run().

78 { return qualWord_; }
unsigned int qualWord_

◆ setClusterRef()

void SiPixelRecHit::setClusterRef ( ClusterRef const &  ref)
inline

Definition at line 49 of file SiPixelRecHit.h.

References TrackerSingleRecHit::setClusterPixelRef().

49 { setClusterPixelRef(ref); }
void setClusterPixelRef(ClusterPixelRef const &ref)

◆ spansTwoROCs()

bool SiPixelRecHit::spansTwoROCs ( ) const
inline