CMS 3D CMS Logo

GlobalTest.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Class:      GlobalTest
00004 // 
00010 //
00011 // Original Author:  Ursula Berthon
00012 //         Created:  Fri Sep 23 11:38:38 CEST 2005
00013 // $Id: GlobalTest.h,v 1.3 2008/02/29 20:48:53 ksmith Exp $
00014 //
00015 //
00016 
00017 
00018 // system include files
00019 #include "FWCore/Framework/interface/Frameworkfwd.h"
00020 #include "FWCore/Framework/interface/EDAnalyzer.h"
00021 
00022 #include "FWCore/Framework/interface/Event.h"
00023 #include "FWCore/Framework/interface/MakerMacros.h"
00024 
00025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00026 //DQM services for histogram
00027 #include "DQMServices/Core/interface/DQMStore.h"
00028 #include "FWCore/ServiceRegistry/interface/Service.h"
00029 #include "DQMServices/Core/interface/MonitorElement.h"
00030 
00031 class TFile;
00032 class MonitorElement;
00033 
00034 //
00035 // class declaration
00036 //
00037 
00038 class GlobalTest : public edm::EDAnalyzer {
00039 public:
00040   explicit GlobalTest(const edm::ParameterSet&);
00041   ~GlobalTest();
00042 
00043   void beginJob(edm::EventSetup const&iSetup);
00044   void endJob();
00045 
00046   virtual void analyze(const edm::Event&, const edm::EventSetup&);
00047 
00048 private:
00049   std::string filename_;
00050   int minbunch_;
00051   int maxbunch_;
00052   TFile *histfile_;
00053 
00054   const static int nMaxH=10;
00055   MonitorElement * nrPileupsH_[nMaxH];
00056   MonitorElement * nrVerticesH_[nMaxH];
00057   MonitorElement * nrTracksH_[nMaxH];
00058   MonitorElement * trackPartIdH_[nMaxH];
00059   MonitorElement * caloEnergyEBH_[nMaxH];
00060   MonitorElement * caloEnergyEEH_[nMaxH];
00061 
00062   DQMStore* dbe_;
00063 };
00064 

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