CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/DQMOffline/JetMET/interface/JetMETDQMOfflineClient.h

Go to the documentation of this file.
00001 #ifndef DQMOFFLINE_JETMET_JETMETDQMOFFLINECLIENT
00002 #define DQMOFFLINE_JETMET_JETMETDQMOFFLINECLIENT
00003 
00004 // -*- C++ -*-
00005 //
00006 // Package:    JetMETDQMOffline
00007 // Class:      JetMETDQMOffline
00008 // 
00009 /*
00010  Description: This is a DQM client meant to plot JetMET quantities 
00011 */
00012 
00013 //
00014 // Originally create by:  Kenichi Hatakeyama
00015 //                        July 2009
00016 //
00017 
00018 #include <memory>
00019 #include <unistd.h>
00020 #include <FWCore/Framework/interface/EDAnalyzer.h>
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include "DQMServices/Core/interface/MonitorElement.h"
00023 #include "DQMServices/Core/interface/DQMStore.h"
00024 #include "DataFormats/Common/interface/Handle.h"
00025 #include "FWCore/Framework/interface/Event.h"
00026 #include "FWCore/Framework/interface/EventSetup.h"
00027 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00028 #include "FWCore/ServiceRegistry/interface/Service.h"
00029 #include "DataFormats/Math/interface/LorentzVector.h"
00030 
00031 #include "DataFormats/Common/interface/TriggerResults.h"
00032 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
00033 #include "DataFormats/HLTReco/interface/TriggerObject.h"
00034 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
00035 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
00036 
00037 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
00038 #include "DataFormats/METReco/interface/CaloMETCollection.h"
00039 #include "DataFormats/METReco/interface/CaloMET.h"
00040 
00041 #include <iostream>
00042 #include <fstream>
00043 #include <vector>
00044 
00045 class DQMStore;
00046 class MonitorElement;
00047 
00048 class JetMETDQMOfflineClient : public edm::EDAnalyzer {
00049  
00050  private:
00051   DQMStore* dbe_; //dbe seems to be the standard name for this, I dont know why. We of course dont own it
00052 
00053   edm::ParameterSet conf_;
00054 
00055   bool verbose_;
00056 
00057   std::string dirName_;
00058   std::string dirNameJet_;
00059   std::string dirNameMET_;
00060 
00061  public:
00062   explicit JetMETDQMOfflineClient(const edm::ParameterSet& );
00063   virtual ~JetMETDQMOfflineClient();
00064   
00065   virtual void beginJob(void);
00066   virtual void endJob();
00067   virtual void beginRun(const edm::Run& run, const edm::EventSetup& c);
00068   virtual void endRun(const edm::Run& run, const edm::EventSetup& c);
00069   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00070   virtual void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c);
00071   virtual void runClient_();   
00072 
00073 };
00074  
00075 #endif