CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DQMOffline/JetMET/interface/HTMHTAnalyzer.h

Go to the documentation of this file.
00001 #ifndef HTMHTAnalyzer_H
00002 #define HTMHTAnalyzer_H
00003 
00004 
00015 #include <memory>
00016 #include <fstream>
00017 #include "FWCore/Framework/interface/Frameworkfwd.h"
00018 #include "DQMOffline/JetMET/interface/JetAnalyzerBase.h"
00019 #include "FWCore/Framework/interface/Event.h"
00020 #include "FWCore/Framework/interface/MakerMacros.h"
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include "FWCore/ServiceRegistry/interface/Service.h"
00023 #include "DQMServices/Core/interface/DQMStore.h"
00024 #include "DQMServices/Core/interface/MonitorElement.h"
00025 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
00026 #include "DataFormats/JetReco/interface/CaloJet.h"
00027 //
00028 #include "DataFormats/HLTReco/interface/TriggerObject.h"
00029 #include "DataFormats/Common/interface/TriggerResults.h"
00030 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
00031 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
00032 
00033 class HTMHTAnalyzer : public JetAnalyzerBase {
00034  public:
00035 
00037   HTMHTAnalyzer(const edm::ParameterSet&);
00038   
00040   virtual ~HTMHTAnalyzer();
00041 
00043   void beginJob(DQMStore * dbe);
00044 
00046   void analyze(const edm::Event&, const edm::EventSetup&, 
00047                const edm::TriggerResults&);
00048 
00049   int evtCounter;
00050 
00051  private:
00052   // ----------member data ---------------------------
00053   
00054   edm::ParameterSet parameters;
00055   // Switch for verbosity
00056   int _verbose;
00057   
00058   std::string metname;
00059 
00060   std::string _source;
00061 
00062   edm::InputTag theJetCollectionForHTMHTLabel;
00063 
00064   // list of Jet or MB HLT triggers
00065   std::vector<std::string > HLTPathsJetMBByName_;
00066 
00067   int _trig_JetMB;
00068 
00069   // Pt threshold for Jets
00070   double _ptThreshold;
00071 
00072   //the histos
00073   MonitorElement* jetME;
00074 
00075   MonitorElement* hNevents;
00076 
00077   MonitorElement* hNJets;
00078 
00079   MonitorElement* hMHx;
00080   MonitorElement* hMHy;
00081   MonitorElement* hMHT;
00082   MonitorElement* hMHTPhi;
00083 
00084   MonitorElement* hHT;
00085 
00086 };
00087 #endif