1 #ifndef DataFormats_SiPixelRecHitQuality_h
2 #define DataFormats_SiPixelRecHitQuality_h 1
11 #include <boost/cstdint.hpp>
70 edm::LogWarning(
"ObsoleteVariable") <<
"Since 39x, probabilityX and probabilityY have been replaced by probabilityXY and probabilityQ";
74 edm::LogWarning(
"ObsoleteVariable") <<
"Since 39x, probabilityX and probabilityY have been replaced by probabilityXY and probabilityQ";
80 if(raw<0 || raw >16383) {
81 edm::LogWarning(
"OutOfBounds") <<
"Probability XY outside the bounds of the quality word. Defaulting to Prob=0. Raw = " << raw <<
" QualityWord = " << qualWord;
90 if(raw<0 || raw >255) {
91 edm::LogWarning(
"OutOfBounds") <<
"Probability Q outside the bounds of the quality word. Defaulting to Prob=0. Raw = " << raw <<
" QualityWord = " << qualWord;
102 if(qbin<0 || qbin >7) {
103 edm::LogWarning(
"OutOfBounds") <<
"Qbin outside the bounds of the quality word. Defaulting to Qbin=0. Qbin = " << qbin <<
" QualityWord = " << qualWord;
131 if(prob<0 || prob>1) {
132 edm::LogWarning(
"OutOfBounds") <<
"Prob XY outside the bounds of the quality word. Defaulting to Prob=0. Prob = " << prob <<
" QualityWord = " << qualWord;
136 unsigned int raw = (int) (draw+0.5);
141 if(prob<0 || prob>1) {
142 edm::LogWarning(
"OutOfBounds") <<
"Prob Q outside the bounds of the quality word. Defaulting to Prob=0. Prob = " << prob <<
" QualityWord = " << qualWord;
146 unsigned int raw = (int) (draw+0.5);
153 if(qbin<0 || qbin >7) {
154 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
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