CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondFormats/SiPixelObjects/interface/SiPixelDetSummary.h

Go to the documentation of this file.
00001 #ifndef SiPixelDetSummary_h
00002 #define SiPixelDetSummary_h
00003 
00004 #include "DataFormats/DetId/interface/DetId.h"
00005 
00006 #include <sstream>
00007 #include <map>
00008 #include <cmath>
00009 #include <iomanip>
00010 #include <iostream>
00011 
00025 class SiPixelDetSummary {
00026 public:
00027   SiPixelDetSummary(int verbose = 0);
00028   
00029   void add(const DetId &detid, const float &value);
00030   void add(const DetId &detid);
00031   
00032   void print(std::stringstream &ss, const bool mean = true) const;
00033   
00034   std::map<int, int> getCounts() { return fCountMap;  }
00035   
00036 protected:
00037   std::map<int, double> fMeanMap;
00038   std::map<int, double> fRmsMap;
00039   std::map<int, int> fCountMap;
00040   bool fComputeMean;
00041   int  fVerbose;
00042 };
00043 
00044 #endif