Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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::hasFilledProb
bool hasFilledProb() const
Definition:
SiPixelRecHit.h:104
SiPixelRecHit.h
SiPixelRecHit::probabilityXY
float probabilityXY() const
Definition:
SiPixelRecHit.h:86
BaseTrackerRecHit::clusterProbability
virtual float clusterProbability() const
cluster probability, overloaded by pixel rechits.
Definition:
BaseTrackerRecHit.h:108
SiPixelRecHit::probabilityQ
float probabilityQ() const
Definition:
SiPixelRecHit.h:87
Generated for CMSSW Reference Manual by
1.8.5