00001 #ifndef CondFormats_SiStripObjects_DaqScopeModeAnalysis_H 00002 #define CondFormats_SiStripObjects_DaqScopeModeAnalysis_H 00003 00004 #include "CondFormats/SiStripObjects/interface/CommissioningAnalysis.h" 00005 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h" 00006 #include <boost/cstdint.hpp> 00007 #include <sstream> 00008 #include <vector> 00009 00016 class DaqScopeModeAnalysis : public CommissioningAnalysis { 00017 00018 public: 00019 00020 DaqScopeModeAnalysis( const uint32_t& key ); 00021 00022 DaqScopeModeAnalysis(); 00023 00024 virtual ~DaqScopeModeAnalysis() {;} 00025 00026 friend class DaqScopeModeAlgorithm; 00027 00028 inline const float& entries() const; 00029 00030 inline const float& mean() const; 00031 00032 inline const float& median() const; 00033 00034 inline const float& mode() const; 00035 00036 inline const float& rms() const; 00037 00038 inline const float& min() const; 00039 00040 inline const float& max() const; 00041 00042 void print( std::stringstream&, uint32_t not_used = 0 ); 00043 00044 void reset(); 00045 00046 private: 00047 00048 float entries_; 00049 00050 float mean_; 00051 00052 float median_; 00053 00054 float mode_; 00055 00056 float rms_; 00057 00058 float min_; 00059 00060 float max_; 00061 00062 }; 00063 00064 const float& DaqScopeModeAnalysis::entries() const { return entries_; } 00065 const float& DaqScopeModeAnalysis::mean() const { return mean_; } 00066 const float& DaqScopeModeAnalysis::median() const { return median_; } 00067 const float& DaqScopeModeAnalysis::mode() const { return mode_; } 00068 const float& DaqScopeModeAnalysis::rms() const { return rms_; } 00069 const float& DaqScopeModeAnalysis::min() const { return min_; } 00070 const float& DaqScopeModeAnalysis::max() const { return max_; } 00071 00072 #endif // CondFormats_SiStripObjects_DaqScopeModeAnalysis_H 00073 00074 00075