|
|
Go to the documentation of this file. 1 #ifndef DataFormats_SiPixelRecHitQuality_h
2 #define DataFormats_SiPixelRecHitQuality_h 1
60 <<
"Since 39x, probabilityX and probabilityY have been replaced by probabilityXY and probabilityQ";
65 <<
"Since 39x, probabilityX and probabilityY have been replaced by probabilityXY and probabilityQ";
71 if (raw < 0 || raw > 16383) {
73 <<
"Probability XY outside the bounds of the quality word. Defaulting to Prob=0. Raw = " << raw
74 <<
" QualityWord = " << qualWord;
83 if (raw < 0 || raw > 255) {
85 <<
"Probability Q outside the bounds of the quality word. Defaulting to Prob=0. Raw = " << raw
86 <<
" QualityWord = " << qualWord;
97 if (qbin < 0 || qbin > 7) {
98 edm::LogWarning(
"OutOfBounds") <<
"Qbin outside the bounds of the quality word. Defaulting to Qbin=0. Qbin = "
99 << qbin <<
" QualityWord = " << qualWord;
121 if (prob < 0 || prob > 1) {
123 <<
"Prob XY outside the bounds of the quality word. Defaulting to Prob=0. Prob = " <<
prob
124 <<
" QualityWord = " << qualWord;
128 unsigned int raw = (
int)(
draw + 0.5);
133 if (prob < 0 || prob > 1) {
134 edm::LogWarning(
"OutOfBounds") <<
"Prob Q outside the bounds of the quality word. Defaulting to Prob=0. Prob = "
135 <<
prob <<
" QualityWord = " << qualWord;
139 unsigned int raw = (
int)(
draw + 0.5);
145 if (qbin < 0 || qbin > 7) {
146 edm::LogWarning(
"OutOfBounds") <<
"Qbin outside the bounds of the quality word. Defaulting to Qbin=0. Qbin = "
147 << qbin <<
" QualityWord = " << qualWord;
float probabilityQ(QualWordType qualWord) const
double probX_1_over_log_units
bool hasFilledProb(QualWordType qualWord) const
float probabilityY(QualWordType qualWord) const
void setSpansTwoROCs(bool flag, QualWordType &qualWord) const
def draw(name, histos, styles=_defaultStyles, legendLabels=[], **kwargs)
double probY_1_over_log_units
void setIsOnEdge(bool flag, QualWordType &qualWord) const
bool isOnEdge(QualWordType qualWord) const
float probabilityXY(QualWordType qualWord) const
Log< level::Warning, false > LogWarning
int qBin(QualWordType qualWord) const
bool hasBadPixels(QualWordType qualWord) const
bool spansTwoROCs(QualWordType qualWord) const
static const Packing thePacking
unsigned int QualWordType
void setQBin(int qbin, QualWordType &qualWord) const
void setHasBadPixels(bool flag, QualWordType &qualWord) const
float probabilityX(QualWordType qualWord) const
void setProbabilityQ(float prob, QualWordType &qualWord) const
void setProbabilityXY(float prob, QualWordType &qualWord) const
Power< A, B >::type pow(const A &a, const B &b)
void setHasFilledProb(bool flag, QualWordType &qualWord) const
QualWordType hasFilledProb_mask