11 edm::LogWarning(
"SiPixelQualityProbabilities") <<
"PU bin: " << puBin <<
" is already in the map!"<<std::endl;
25 throw cms::Exception(
"SiPixelQualityProbabilities")<<
"No Probabilities are defined for PU bin " << puBin <<
"\n";
36 throw cms::Exception(
"SiPixelQualityProbabilities")<<
"No Probabilities are defined for PU bin " << puBin <<
"\n";
45 edm::LogVerbatim(
"SiPixelQualityProbabilities")<<
"SiPixelQualityProbabilities::printAll()";
46 edm::LogVerbatim(
"SiPixelQualityProbabilities")<<
" ===================================================================================================================";
48 edm::LogVerbatim(
"SiPixelQualityProbabilities")<<
"PU :"<< it->first <<
" \n ";
49 for (
const auto &
entry : it->second){
50 edm::LogVerbatim(
"SiPixelQualityProbabilities")<<
"SiPixelQuality snapshot: " <<
entry.first <<
" |probability: " <<
entry.second << std::endl;
60 os<<
"PU :"<< it->first <<
" \n ";
61 for (
const auto &
entry : it->second){
62 os<<
"SiPixelQuality snapshot: " <<
entry.first <<
" |probability: " <<
entry.second << std::endl;
71 std::vector<unsigned int>
bins;
75 bins.push_back(it->first);
83 theProbabilities.
print( ss );
void print(std::ostream &os) const
probabilityVec getProbabilities(const unsigned int puBin) const
void setProbabilities(const unsigned int puBin, const probabilityVec &theProbabilities)
std::vector< std::pair< std::string, float > > probabilityVec
std::vector< unsigned int > getPileUpBins() const
std::ostream & operator<<(std::ostream &os, SiPixelQualityProbabilities theProbabilities)
probabilityMap m_probabilities