CMS 3D CMS Logo

SiPixelQualityProbabilities.h
Go to the documentation of this file.
1 #ifndef CondFormats_SiPixelObjects_SiPixelQualityProbabilities_h
2 #define CondFormats_SiPixelObjects_SiPixelQualityProbabilities_h
3 
5 
6 #include <map>
7 #include <string>
8 #include <vector>
9 
11 public:
12  typedef std::vector<std::pair<std::string, float> > probabilityVec;
13  typedef std::map<unsigned int, probabilityVec> probabilityMap;
14 
18 
19  void setProbabilities(const unsigned int puBin, const probabilityVec& theProbabilities);
20 
22 
23  probabilityVec getProbabilities(const unsigned int puBin) const;
24  const probabilityVec& getProbabilities(const unsigned int puBin);
25 
26  double size() const { return m_probabilities.size(); }
27  double nelements(const int puBin) const { return m_probabilities.at(puBin).size(); }
28  std::vector<unsigned int> getPileUpBins() const;
29 
30  void printAll() const;
31 
32  //dumping values on output stream
33  void print(std::ostream& os) const;
34 
35 private:
37 
39 };
40 
41 std::ostream& operator<<(std::ostream&, SiPixelQualityProbabilities theProbabilities);
42 
43 #endif //CondFormats_SiPixelObjects_SiPixelQualityProbabilities_h
SiPixelQualityProbabilities::nelements
double nelements(const int puBin) const
Definition: SiPixelQualityProbabilities.h:27
SiPixelQualityProbabilities::getPileUpBins
std::vector< unsigned int > getPileUpBins() const
Definition: SiPixelQualityProbabilities.cc:66
SiPixelQualityProbabilities::getProbabilities
probabilityVec getProbabilities(const unsigned int puBin) const
Definition: SiPixelQualityProbabilities.cc:18
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelQualityProbabilities::SiPixelQualityProbabilities
SiPixelQualityProbabilities(const SiPixelQualityProbabilities &rhs)
Definition: SiPixelQualityProbabilities.h:16
SiPixelQualityProbabilities::SiPixelQualityProbabilities
SiPixelQualityProbabilities()
Definition: SiPixelQualityProbabilities.h:15
SiPixelQualityProbabilities::printAll
void printAll() const
Definition: SiPixelQualityProbabilities.cc:42
SiPixelQualityProbabilities::size
double size() const
Definition: SiPixelQualityProbabilities.h:26
SiPixelQualityProbabilities::~SiPixelQualityProbabilities
virtual ~SiPixelQualityProbabilities()
Definition: SiPixelQualityProbabilities.h:17
SiPixelQualityProbabilities::setProbabilities
void setProbabilities(const unsigned int puBin, const probabilityVec &theProbabilities)
Definition: SiPixelQualityProbabilities.cc:8
SiPixelQualityProbabilities::getProbability_Map
const probabilityMap & getProbability_Map() const
Definition: SiPixelQualityProbabilities.h:21
SiPixelQualityProbabilities::probabilityMap
std::map< unsigned int, probabilityVec > probabilityMap
Definition: SiPixelQualityProbabilities.h:13
Serializable.h
operator<<
std::ostream & operator<<(std::ostream &, SiPixelQualityProbabilities theProbabilities)
Definition: SiPixelQualityProbabilities.cc:77
SiPixelQualityProbabilities::m_probabilities
probabilityMap m_probabilities
Definition: SiPixelQualityProbabilities.h:36
SiPixelQualityProbabilities
Definition: SiPixelQualityProbabilities.h:10
SiPixelQualityProbabilities::probabilityVec
std::vector< std::pair< std::string, float > > probabilityVec
Definition: SiPixelQualityProbabilities.h:12
SiPixelQualityProbabilities::print
void print(std::ostream &os) const
Definition: SiPixelQualityProbabilities.cc:56