00001 #ifndef DTGlobalRecoTask_H 00002 #define DTGlobalRecoTask_H 00003 00004 /* 00005 * \file DTGlobalRecoTask.h 00006 * 00007 * $Date: 2008/03/01 00:39:53 $ 00008 * $Revision: 1.3 $ 00009 * \author M. Zanetti - INFN Padova 00010 * 00011 */ 00012 00013 #include "FWCore/Framework/interface/Frameworkfwd.h" 00014 #include <FWCore/Framework/interface/EDAnalyzer.h> 00015 00016 #include <FWCore/Framework/interface/Event.h> 00017 #include <FWCore/Framework/interface/MakerMacros.h> 00018 00019 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00020 00021 #include "DQMServices/Core/interface/DQMStore.h" 00022 #include "FWCore/ServiceRegistry/interface/Service.h" 00023 00024 #include <iostream> 00025 #include <fstream> 00026 #include <vector> 00027 00028 class DTGlobalRecoTask: public edm::EDAnalyzer{ 00029 00030 friend class DTMonitorModule; 00031 00032 public: 00033 00035 DTGlobalRecoTask(const edm::ParameterSet& ps, DQMStore* dbe, 00036 const edm::EventSetup& context); 00037 00039 virtual ~DTGlobalRecoTask(); 00040 00041 protected: 00042 00044 void analyze(const edm::Event& e, const edm::EventSetup& c); 00045 00046 // BeginJob 00047 void beginJob(const edm::EventSetup& c); 00048 00049 // EndJob 00050 void endJob(void); 00051 00052 private: 00053 00054 int nevents; 00055 00056 // My monitor elements 00057 00058 std::ofstream logFile; 00059 00060 }; 00061 00062 #endif