CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/Validation/RecoTau/plugins/DQMHistAdder.h

Go to the documentation of this file.
00001 #ifndef ElectroWeakAnalysis_EWKTau_DQMHistAdder_h
00002 #define ElectroWeakAnalysis_EWKTau_DQMHistAdder_h
00003 
00014 // framework & common header files
00015 #include "FWCore/Framework/interface/EDAnalyzer.h"
00016 #include "FWCore/Framework/interface/Event.h"
00017 #include "FWCore/Framework/interface/EventSetup.h"
00018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00019 
00020 #include "DQMServices/Core/interface/DQMDefinitions.h"
00021 
00022 #include <TH1.h>
00023 
00024 #include <vector>
00025 #include <string>
00026 
00027 class DQMHistAdder : public edm::EDAnalyzer
00028 {
00029   typedef std::vector<std::string> vstring;
00030 
00031   struct cfgEntryAddJob
00032   {
00033     cfgEntryAddJob(const std::string&, const edm::ParameterSet&);
00034     void print() const;
00035     std::string name_;
00036     vstring dqmDirectories_input_;
00037     std::string dqmDirectory_output_;
00038   };
00039 
00040  public:
00041   explicit DQMHistAdder(const edm::ParameterSet&);
00042   virtual ~DQMHistAdder();
00043   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00044   virtual void endJob();  
00045 
00046 private:
00047   std::map<std::string, cfgEntryAddJob> addJobs_;
00048   int cfgError_;
00049 };
00050 
00051 #endif
00052 
00053