CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/DQMOffline/JetMET/interface/JetPtAnalyzer.h

Go to the documentation of this file.
00001 #ifndef JetPtAnalyzer_H
00002 #define JetPtAnalyzer_H
00003 
00004 
00014 #include <memory>
00015 #include <fstream>
00016 #include "FWCore/Framework/interface/Frameworkfwd.h"
00017 #include "DQMOffline/JetMET/interface/JetAnalyzerBase.h"
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/Framework/interface/MakerMacros.h"
00020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00021 #include "FWCore/ServiceRegistry/interface/Service.h"
00022 #include "DQMServices/Core/interface/DQMStore.h"
00023 #include "DQMServices/Core/interface/MonitorElement.h"
00024 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
00025 #include "DataFormats/JetReco/interface/CaloJet.h"
00026 //
00027 #include "DataFormats/HLTReco/interface/TriggerObject.h"
00028 #include "DataFormats/Common/interface/TriggerResults.h"
00029 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
00030 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
00031 #include "RecoJets/JetProducers/interface/JetIDHelper.h"
00032 
00033 #include <string>
00034 
00035 class JetPtAnalyzer : public JetAnalyzerBase {
00036  public:
00037 
00039   //  JetPtAnalyzer(const edm::ParameterSet&, JetServiceProxy *theService);
00040   JetPtAnalyzer(const edm::ParameterSet&);
00041   
00043   virtual ~JetPtAnalyzer();
00044 
00046   void beginJob(DQMStore * dbe);
00047 
00049   void endJob();
00050 
00052   void analyze(const edm::Event&, const edm::EventSetup&, 
00053                const reco::CaloJetCollection& caloJets);
00054 
00055   void setSource(std::string source) {
00056     _source = source;
00057   }
00058 
00059  private:
00060   // ----------member data ---------------------------
00061   
00062   edm::ParameterSet parameters;
00063   // Switch for verbosity
00064   std::string jetname;
00065   std::string _source;
00066   // Calo Jet Label
00067   edm::InputTag theCaloJetCollectionLabel;
00068 
00069   // JetID helper
00070   reco::helper::JetIDHelper *jetID;
00071 
00072   //histo binning parameters
00073   int    etaBin;
00074   double etaMin;
00075   double etaMax;
00076 
00077   int    phiBin;
00078   double phiMin;
00079   double phiMax;
00080 
00081   int    ptBin;
00082   double ptMin;
00083   double ptMax;
00084 
00085   //the histos
00086   MonitorElement* jetME;
00087   MonitorElement* mEta;
00088   MonitorElement* mPhi;
00089  
00090   MonitorElement* mConstituents;
00091   MonitorElement* mHFrac;
00092   MonitorElement* mEFrac;
00093 
00094   MonitorElement* mNJets;
00095 
00096   // CaloJet specific
00097   MonitorElement* mMaxEInEmTowers;
00098   MonitorElement* mMaxEInHadTowers;
00099   MonitorElement* mHadEnergyInHO;
00100   MonitorElement* mHadEnergyInHB;
00101   MonitorElement* mHadEnergyInHF;
00102   MonitorElement* mHadEnergyInHE;
00103   MonitorElement* mEmEnergyInEB;
00104   MonitorElement* mEmEnergyInEE;
00105   MonitorElement* mEmEnergyInHF;
00106   MonitorElement* mN90Hits;
00107   MonitorElement* mresEMF;
00108   MonitorElement* mfHPD;
00109   MonitorElement* mfRBX;
00110 
00111 
00112 };
00113 #endif