src
DataFormats
TrackerRecHit2D
src
SiPixelRecHit.cc
Go to the documentation of this file.
1
#include "
DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h
"
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
}
SiPixelRecHit.h
SiPixelRecHit::hasFilledProb
bool hasFilledProb() const
Definition:
SiPixelRecHit.h:104
BaseTrackerRecHit::clusterProbability
virtual float clusterProbability() const
cluster probability, overloaded by pixel rechits.
Definition:
BaseTrackerRecHit.h:108
SiPixelRecHit::probabilityXY
float probabilityXY() const
Definition:
SiPixelRecHit.h:86
HLT_2023v12_cff.flags
flags
Definition:
HLT_2023v12_cff.py:10075
SiPixelRecHit::probabilityQ
float probabilityQ() const
Definition:
SiPixelRecHit.h:87
Generated for CMSSW Reference Manual by
1.8.14