CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DQM/EcalCommon/interface/EcalDQMStatusWriter.h

Go to the documentation of this file.
00001 #ifndef EcalDQMStatusWriter_h
00002 #define EcalDQMStatusWriter_h
00003 
00004 /*
00005  * \file EcalDQMStatusWriter.h
00006  *
00007  * $Date: 2010/08/09 09:00:10 $
00008  * $Revision: 1.7 $
00009  * \author G. Della Ricca
00010  *
00011 */
00012 
00013 #include <string>
00014 #include <map>
00015 #include <iostream>
00016 #include <fstream>
00017 #include <cstdio>
00018 #include <typeinfo>
00019 #include <sstream>
00020 
00021 #include "FWCore/Framework/interface/Event.h"
00022 #include "FWCore/Framework/interface/EventSetup.h"
00023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00024 #include "FWCore/Framework/interface/EDAnalyzer.h"
00025 
00026 #include "CondFormats/EcalObjects/interface/EcalDQMChannelStatus.h"
00027 #include "CondFormats/EcalObjects/interface/EcalDQMTowerStatus.h"
00028 
00029 class EcalDQMStatusWriter : public edm::EDAnalyzer {
00030 
00031 public:
00032 
00033 EcalDQMStatusWriter(const edm::ParameterSet& ps);
00034 virtual ~EcalDQMStatusWriter() {};
00035 
00036 void analyze(const edm::Event & e, const edm::EventSetup & c) {};
00037 
00038 void beginRun(const edm::Run & r, const edm::EventSetup & c);
00039 
00040 private:
00041 
00042 EcalDQMChannelStatus* readEcalDQMChannelStatusFromFile(const char *);
00043 EcalDQMTowerStatus* readEcalDQMTowerStatusFromFile(const char *);
00044 
00045 uint32_t convert(uint32_t c);
00046 
00047 bool verbose_;
00048 std::vector<std::string> objectName_;
00049 std::vector<std::string> inpFileName_;
00050 std::vector<unsigned long long> since_;
00051 
00052 };
00053 #endif