CMS 3D CMS Logo

SiPixelRecHit.cc
Go to the documentation of this file.
2 
3 //--- The overall probability. flags is the 32-bit-packed set of flags that
4 //--- our own concrete implementation of clusterProbability() uses to direct
5 //--- the computation based on the information stored in the quality word
6 //--- (and which was computed by the CPE). The default of flags==0 returns
7 //--- probX*probY*(1-log(probX*probY)) because of Morris' note.
8 //--- Flags are static and kept in the transient rec hit.
9 float SiPixelRecHit::clusterProbability(unsigned int flags) const {
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 }
BaseTrackerRecHit::clusterProbability
virtual float clusterProbability() const
cluster probability, overloaded by pixel rechits.
Definition: BaseTrackerRecHit.h:108
SiPixelRecHit::hasFilledProb
bool hasFilledProb() const
Definition: SiPixelRecHit.h:104
SiPixelRecHit::probabilityQ
float probabilityQ() const
Definition: SiPixelRecHit.h:87
SiPixelRecHit::probabilityXY
float probabilityXY() const
Definition: SiPixelRecHit.h:86
SiPixelRecHit.h
HLT_FULL_cff.flags
flags
Definition: HLT_FULL_cff.py:13216