CMS 3D CMS Logo

CaloMETAnalyzer.h

Go to the documentation of this file.
00001 #ifndef CaloMETAnalyzer_H
00002 #define CaloMETAnalyzer_H
00003 
00004 
00015 #include <memory>
00016 #include <fstream>
00017 #include "FWCore/Framework/interface/Frameworkfwd.h"
00018 #include "DQMOffline/JetMET/src/CaloMETAnalyzerBase.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/METReco/interface/CaloMETCollection.h"
00026 #include "DataFormats/METReco/interface/CaloMET.h"
00027 //
00028 #include "DataFormats/HLTReco/interface/TriggerObject.h"
00029 #include "FWCore/Framework/interface/TriggerNames.h"
00030 #include "DataFormats/Common/interface/TriggerResults.h"
00031 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
00032 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
00033 
00034 class CaloMETAnalyzer : public CaloMETAnalyzerBase {
00035  public:
00036 
00038   CaloMETAnalyzer(const edm::ParameterSet&);
00039   
00041   virtual ~CaloMETAnalyzer();
00042 
00044   void beginJob(edm::EventSetup const& iSetup, DQMStore *dbe);
00045 
00047   void analyze(const edm::Event&, const edm::EventSetup&, 
00048                const edm::TriggerResults&,
00049                const reco::CaloMET& caloMET, const reco::CaloMET& caloMETNoHF);
00050 
00051   int evtCounter;
00052 
00053  private:
00054   // ----------member data ---------------------------
00055   
00056   edm::ParameterSet parameters;
00057   // Switch for verbosity
00058   std::string metname;
00059   // CaloMET Label
00060   //edm::InputTag theCaloMETCollectionLabel;
00061   //edm::InputTag theCaloMETNoHFCollectionLabel;
00062 
00064   unsigned int nHLTPathsJetMB_;
00065   // list of Jet or MB HLT triggers
00066   std::vector<std::string > HLTPathsJetMBByName_;
00067   // list of Jet or MB HLT trigger index
00068   std::vector<unsigned int> HLTPathsJetMBByIndex_;
00069 
00070   //histo binning parameters
00071   int    etaBin;
00072   double etaMin;
00073   double etaMax;
00074 
00075   int    phiBin;
00076   double phiMin;
00077   double phiMax;
00078 
00079   int    ptBin;
00080   double ptMin;
00081   double ptMax;
00082 
00083   //the histos
00084   MonitorElement* jetME;
00085 
00086   MonitorElement* hNevents;
00087   MonitorElement* hCaloMEx;
00088   MonitorElement* hCaloMEy;
00089   MonitorElement* hCaloEz;
00090   MonitorElement* hCaloMETSig;
00091   MonitorElement* hCaloMET;
00092   MonitorElement* hCaloMETPhi;
00093   MonitorElement* hCaloSumET;
00094   MonitorElement* hCaloMExLS;
00095   MonitorElement* hCaloMEyLS;
00096 
00097   MonitorElement* hCaloMaxEtInEmTowers;
00098   MonitorElement* hCaloMaxEtInHadTowers;
00099   MonitorElement* hCaloEtFractionHadronic;
00100   MonitorElement* hCaloEmEtFraction;
00101 
00102   MonitorElement* hCaloHadEtInHB;
00103   MonitorElement* hCaloHadEtInHO;
00104   MonitorElement* hCaloHadEtInHE;
00105   MonitorElement* hCaloHadEtInHF;
00106   MonitorElement* hCaloHadEtInEB;
00107   MonitorElement* hCaloHadEtInEE;
00108   MonitorElement* hCaloEmEtInHF;
00109   MonitorElement* hCaloEmEtInEE;
00110   MonitorElement* hCaloEmEtInEB;
00111 
00112   MonitorElement* hCaloMExNoHF;
00113   MonitorElement* hCaloMEyNoHF;
00114   MonitorElement* hCaloEzNoHF;
00115   MonitorElement* hCaloMETSigNoHF;
00116   MonitorElement* hCaloMETNoHF;
00117   MonitorElement* hCaloMETPhiNoHF;
00118   MonitorElement* hCaloSumETNoHF;
00119   MonitorElement* hCaloMExNoHFLS;
00120   MonitorElement* hCaloMEyNoHFLS;
00121 
00122 };
00123 #endif

Generated on Tue Jun 9 17:33:45 2009 for CMSSW by  doxygen 1.5.4