CMS 3D CMS Logo

RPCMultiplicityTest.h

Go to the documentation of this file.
00001 #ifndef RPCMultiplicityTest_H
00002 #define RPCMultiplicityTest_H
00003 
00004 
00015 //#include "DataFormats/Common/interface/Handle.h"
00016 #include <FWCore/Framework/interface/Run.h>
00017 #include "FWCore/Framework/interface/Frameworkfwd.h"
00018 #include <FWCore/Framework/interface/EDAnalyzer.h>
00019 #include <FWCore/Framework/interface/ESHandle.h>
00020 #include <FWCore/Framework/interface/Event.h>
00021 #include <FWCore/Framework/interface/MakerMacros.h>
00022 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00023 #include <FWCore/Framework/interface/LuminosityBlock.h>
00024 #include "FWCore/ServiceRegistry/interface/Service.h"
00025 
00026 #include "DQMServices/Core/interface/MonitorElement.h"
00027 //#include "DQMServices/Daemon/interface/MonitorDaemon.h"
00028 
00029 #include "Geometry/RPCGeometry/interface/RPCGeometry.h"
00030 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
00031 //#include "Geometry/Records/interface/MuonGeometryRecord.h"
00032 
00033 #include "DQM/RPCMonitorClient/interface/RPCClient.h"
00034 
00035 #include <memory>
00036 #include <iostream>
00037 #include <fstream>
00038 #include <string>
00039 #include <vector>
00040 #include <map>
00041 
00042 class QTestHandle;
00043 class DQMOldReceiver;
00044 class DQMStore;
00045 class RPCDetId;
00046 
00047 
00048 class RPCMultiplicityTest: public RPCClient {
00049 public:
00050 
00052   RPCMultiplicityTest(const edm::ParameterSet& ps);
00053   
00055   virtual ~RPCMultiplicityTest();
00056 
00058   void beginJob( DQMStore * dbe);
00059 
00060   //Begin Run
00061    void beginRun(const edm::Run& r, const edm::EventSetup& c);
00062   
00063   
00065   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
00066 
00068   void analyze(const edm::Event& iEvent, const edm::EventSetup& c);
00069 
00071   void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00072  
00073   //End Run
00074   void endRun(const edm::Run& r, const edm::EventSetup& c);             
00075   
00077   void endJob();
00078 
00079 
00080  protected:
00081 
00083    MonitorElement*getMEs(RPCDetId & detId);
00084  
00085 
00086 private:
00087 
00088   int nevents;
00089   unsigned int nLumiSegs;
00090    int prescaleFactor;
00091   int run; 
00092   int lumiBlock;
00093   char dateTime[32];
00094 
00095   //configurable in cfg file
00096   bool referenceOldChannels;
00097   bool getQualityTestsFromFile;
00098   std::ifstream referenceFile_;
00099   
00100   std::ofstream myfile; 
00101 
00102   DQMStore* dbe_;
00103   //  QTestHandle *qtHandler;
00104   // DQMOldReceiver * mui_;
00105 
00106   edm::ParameterSet parameters;
00107   edm::ESHandle<RPCGeometry> muonGeom;
00108   //edm::ESHandle<DTTtrig> tTrigMap;
00109 
00110   // std::map< std::string , MonitorElement* > OccupancyHistos;
00111   std::map<RPCDetId,MonitorElement*>  meCollection;
00112 };
00113 
00114 #endif

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