Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
TrackerRecHit2D
src
SiPixelRecHit.cc
Go to the documentation of this file.
1
#include "
DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h
"
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
SiPixelRecHit.h
flags
std::vector< Variable::Flags > flags
Definition:
MVATrainer.cc:135
Generated for CMSSW Reference Manual by
1.8.5