Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:20

0001 #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
0002 
0003 //--- The overall probability.  flags is the 32-bit-packed set of flags that
0004 //--- our own concrete implementation of clusterProbability() uses to direct
0005 //--- the computation based on the information stored in the quality word
0006 //--- (and which was computed by the CPE).  The default of flags==0 returns
0007 //--- probX*probY*(1-log(probX*probY)) because of Morris' note.
0008 //--- Flags are static and kept in the transient rec hit.
0009 float SiPixelRecHit::clusterProbability(unsigned int flags) const {
0010   if (!hasFilledProb()) {
0011     return 1;
0012   } else if (flags == 1) {
0013     return probabilityXY() * probabilityQ();
0014   } else if (flags == 2) {
0015     return probabilityQ();
0016   } else {
0017     return probabilityXY();
0018   }
0019 }