CMS 3D CMS Logo

SiPixelRecHit.cc
Go to the documentation of this file.
2 
3 
4 //--- The overall probability. flags is the 32-bit-packed set of flags that
5 //--- our own concrete implementation of clusterProbability() uses to direct
6 //--- the computation based on the information stored in the quality word
7 //--- (and which was computed by the CPE). The default of flags==0 returns
8 //--- probX*probY*(1-log(probX*probY)) because of Morris' note.
9 //--- Flags are static and kept in the transient rec hit.
10 float SiPixelRecHit::clusterProbability(unsigned int flags) const
11 {
12  if (!hasFilledProb()) {
13  return 1;
14  }
15  else if (flags == 1) {
16  return probabilityXY() * probabilityQ();
17  }
18  else if (flags == 2) {
19  return probabilityQ();
20  }
21  else {
22  return probabilityXY();
23  }
24 }
25 
bool hasFilledProb() const
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135
float probabilityXY() const
Definition: SiPixelRecHit.h:96
virtual float clusterProbability() const
cluster probability, overloaded by pixel rechits.
float probabilityQ() const
Definition: SiPixelRecHit.h:99