10 edm::LogWarning(
"SiPixelQualityProbabilities") <<
"PU bin: " << puBin <<
" is already in the map!" << std::endl;
19 const unsigned int puBin)
const {
25 throw cms::Exception(
"SiPixelQualityProbabilities") <<
"No Probabilities are defined for PU bin " << puBin <<
"\n";
31 const unsigned int puBin) {
37 throw cms::Exception(
"SiPixelQualityProbabilities") <<
"No Probabilities are defined for PU bin " << puBin <<
"\n";
43 edm::LogVerbatim(
"SiPixelQualityProbabilities") <<
"SiPixelQualityProbabilities::printAll()";
44 edm::LogVerbatim(
"SiPixelQualityProbabilities") <<
" ================================================================" 45 "===================================================";
48 for (
const auto &
entry :
it->second) {
50 <<
"SiPixelQuality snapshot: " <<
entry.first <<
" |probability: " <<
entry.second << std::endl;
58 os <<
"PU :" <<
it->first <<
" \n ";
59 for (
const auto &
entry :
it->second) {
60 os <<
"SiPixelQuality snapshot: " <<
entry.first <<
" |probability: " <<
entry.second << std::endl;
67 std::vector<unsigned int>
bins;
Log< level::Info, true > LogVerbatim
std::vector< unsigned int > getPileUpBins() const
void setProbabilities(const unsigned int puBin, const probabilityVec &theProbabilities)
std::vector< std::pair< std::string, float > > probabilityVec
probabilityVec getProbabilities(const unsigned int puBin) const
void print(std::ostream &os) const
std::ostream & operator<<(std::ostream &os, SiPixelQualityProbabilities theProbabilities)
probabilityMap m_probabilities
Log< level::Warning, false > LogWarning