CMS 3D CMS Logo

SiPixelDetSummary.h
Go to the documentation of this file.
1 #ifndef SiPixelDetSummary_h
2 #define SiPixelDetSummary_h
3 
5 
6 #include <sstream>
7 #include <map>
8 #include <cmath>
9 #include <iomanip>
10 #include <iostream>
11 
26 public:
27  SiPixelDetSummary(int verbose = 0);
28 
29  void add(const DetId &detid, const float &value);
30  void add(const DetId &detid);
31 
32  void print(std::stringstream &ss, const bool mean = true) const;
33 
34  std::map<int, int> getCounts() { return fCountMap; }
35 
36 protected:
37  std::map<int, double> fMeanMap;
38  std::map<int, double> fRmsMap;
39  std::map<int, int> fCountMap;
41  int fVerbose;
42 };
43 
44 #endif
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
SiPixelDetSummary::SiPixelDetSummary
SiPixelDetSummary(int verbose=0)
Definition: SiPixelDetSummary.cc:9
SiPixelDetSummary::fMeanMap
std::map< int, double > fMeanMap
Definition: SiPixelDetSummary.h:37
SiPixelDetSummary::print
void print(std::stringstream &ss, const bool mean=true) const
Definition: SiPixelDetSummary.cc:67
SiPixelDetSummary::fRmsMap
std::map< int, double > fRmsMap
Definition: SiPixelDetSummary.h:38
SiPixelDetSummary::getCounts
std::map< int, int > getCounts()
Definition: SiPixelDetSummary.h:34
SiPixelDetSummary::fVerbose
int fVerbose
Definition: SiPixelDetSummary.h:41
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
DetId
Definition: DetId.h:17
verbose
static constexpr int verbose
Definition: HLTExoticaSubAnalysis.cc:25
value
Definition: value.py:1
DetId.h
SiPixelDetSummary
Definition: SiPixelDetSummary.h:25
SiPixelDetSummary::add
void add(const DetId &detid, const float &value)
Definition: SiPixelDetSummary.cc:30
SiPixelDetSummary::fCountMap
std::map< int, int > fCountMap
Definition: SiPixelDetSummary.h:39
SiPixelDetSummary::fComputeMean
bool fComputeMean
Definition: SiPixelDetSummary.h:40