1 #ifndef DataFormats_SiPixelRecHitQuality_h
2 #define DataFormats_SiPixelRecHitQuality_h 1
68 edm::LogWarning(
"ObsoleteVariable") <<
"Since 39x, probabilityX and probabilityY have been replaced by probabilityXY and probabilityQ";
72 edm::LogWarning(
"ObsoleteVariable") <<
"Since 39x, probabilityX and probabilityY have been replaced by probabilityXY and probabilityQ";
78 if(raw<0 || raw >16383) {
79 edm::LogWarning(
"OutOfBounds") <<
"Probability XY outside the bounds of the quality word. Defaulting to Prob=0. Raw = " << raw <<
" QualityWord = " << qualWord;
88 if(raw<0 || raw >255) {
89 edm::LogWarning(
"OutOfBounds") <<
"Probability Q outside the bounds of the quality word. Defaulting to Prob=0. Raw = " << raw <<
" QualityWord = " << qualWord;
100 if(qbin<0 || qbin >7) {
101 edm::LogWarning(
"OutOfBounds") <<
"Qbin outside the bounds of the quality word. Defaulting to Qbin=0. Qbin = " << qbin <<
" QualityWord = " << qualWord;
129 if(prob<0 || prob>1) {
130 edm::LogWarning(
"OutOfBounds") <<
"Prob XY outside the bounds of the quality word. Defaulting to Prob=0. Prob = " << prob <<
" QualityWord = " << qualWord;
134 unsigned int raw = (int) (draw+0.5);
139 if(prob<0 || prob>1) {
140 edm::LogWarning(
"OutOfBounds") <<
"Prob Q outside the bounds of the quality word. Defaulting to Prob=0. Prob = " << prob <<
" QualityWord = " << qualWord;
144 unsigned int raw = (int) (draw+0.5);
151 if(qbin<0 || qbin >7) {
152 edm::LogWarning(
"OutOfBounds") <<
"Qbin outside the bounds of the quality word. Defaulting to Qbin=0. Qbin = " << qbin <<
" QualityWord = " << qualWord;
float probabilityQ(QualWordType qualWord) const
void setProbabilityXY(float prob, QualWordType &qualWord) const
double probX_1_over_log_units
bool spansTwoROCs(QualWordType qualWord) const
static const Packing thePacking
void draw(std::vector< TH2F > &graphData, std::string filename)
float probabilityXY(QualWordType qualWord) const
double probY_1_over_log_units
void setHasBadPixels(bool flag, QualWordType &qualWord) const
void setProbabilityQ(float prob, QualWordType &qualWord) const
float probabilityY(QualWordType qualWord) const
int qBin(QualWordType qualWord) const
void setSpansTwoROCs(bool flag, QualWordType &qualWord) const
float probabilityX(QualWordType qualWord) const
void setIsOnEdge(bool flag, QualWordType &qualWord) const
bool isOnEdge(QualWordType qualWord) const
unsigned int QualWordType
bool hasBadPixels(QualWordType qualWord) const
void setHasFilledProb(bool flag, QualWordType &qualWord) const
void setQBin(int qbin, QualWordType &qualWord) const
QualWordType hasFilledProb_mask
Power< A, B >::type pow(const A &a, const B &b)
bool hasFilledProb(QualWordType qualWord) const