CMS 3D CMS Logo

CaloTowerAnalyzer.h

Go to the documentation of this file.
00001 #ifndef CALOTOWERANALYZER_H
00002 #define CALOTOWERANALYZER_H
00003 
00004 // author: Bobby Scurlock (The University of Florida)
00005 // date: 8/24/2006
00006 // modification: Mike Schmitt
00007 // date: 02.28.2007
00008 // note: code rewrite
00009 
00010 #include "DQMServices/Core/interface/DQMStore.h"
00011 
00012 #include "FWCore/Framework/interface/Frameworkfwd.h"
00013 #include "FWCore/Framework/interface/EDAnalyzer.h"
00014 
00015 #include <string>
00016 #include <map>
00017 #include "DQMServices/Core/interface/MonitorElement.h"
00018 
00019 class CaloTowerAnalyzer: public edm::EDAnalyzer {
00020 public:
00021 
00022   explicit CaloTowerAnalyzer(const edm::ParameterSet&);
00023 
00024   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00025   virtual void beginJob(const edm::EventSetup&);
00026   virtual void endJob();
00027 
00028 private:
00029 
00030   // DAQ Tools
00031   DQMStore* dbe_;
00032   std::map<std::string, MonitorElement*> me;
00033 
00034   // Inputs from Configuration
00035   std::string outputFile_;
00036   std::string geometryFile_;
00037   edm::InputTag caloTowersLabel_;
00038   bool debug_;
00039   bool dumpGeometry_;
00040   double energyThreshold_;
00041 
00042   // Helper Functions
00043   void FillGeometry(const edm::EventSetup&);
00044   void DumpGeometry();
00045 
00046   int Nevents;
00047 };
00048 
00049 #endif

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