Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:05

0001 #ifndef CondFormats_DQMObjects_DQMSummary_h
0002 #define CondFormats_DQMObjects_DQMSummary_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 #include <iostream>
0007 #include <string>
0008 #include <vector>
0009 
0010 /*
0011  *  \class DQMSummary
0012  *  
0013  *  hosting DQM information  
0014  *
0015  *  \author Salvatore Di Guida (diguida) - CERN (Mar-27-2009)
0016  *
0017 */
0018 
0019 class DQMSummary {
0020 public:
0021   long long m_run;
0022   struct RunItem {
0023     long long m_lumisec;
0024     struct LumiItem {
0025       std::string m_subsystem;
0026       std::string m_reportcontent;
0027       std::string m_type;
0028       double m_status;
0029 
0030       COND_SERIALIZABLE;
0031     };
0032     std::vector<LumiItem> m_lumisummary;
0033 
0034     COND_SERIALIZABLE;
0035   };
0036   DQMSummary() {}
0037   virtual ~DQMSummary() {}
0038   std::vector<RunItem> m_summary;
0039   void printAllValues() const {
0040     std::cout << "run number = " << m_run << std::endl;
0041     std::vector<RunItem>::const_iterator runIt;
0042     for (runIt = m_summary.begin(); runIt != m_summary.end(); ++runIt) {
0043       std::cout << "--- lumisection = " << runIt->m_lumisec << std::endl;
0044       std::vector<RunItem::LumiItem>::const_iterator lumiIt;
0045       for (lumiIt = runIt->m_lumisummary.begin(); lumiIt != runIt->m_lumisummary.end(); ++lumiIt) {
0046         std::cout << "------ subsystem: " << lumiIt->m_subsystem << ", report content: " << lumiIt->m_reportcontent
0047                   << ", type: " << lumiIt->m_type << ", status = " << lumiIt->m_status << std::endl;
0048       }
0049     }
0050   }
0051 
0052   COND_SERIALIZABLE;
0053 };
0054 
0055 #endif