CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/DQM/L1TMonitor/interface/L1TRPCTPG.h

Go to the documentation of this file.
00001 #ifndef L1TRPCTPG_H
00002 #define L1TRPCTPG_H
00003 
00004 /*
00005  * \file L1TRPCTPG.h
00006  *
00007  * $Date: 2009/11/19 14:34:40 $
00008  * $Revision: 1.7 $
00009  * \author J. Berryhill
00010  *
00011 */
00012 
00013 // system include files
00014 #include <memory>
00015 #include <unistd.h>
00016 
00017 // user include files
00018 
00019 #include "FWCore/Framework/interface/Frameworkfwd.h"
00020 #include "FWCore/Framework/interface/EDAnalyzer.h"
00021 #include "FWCore/Framework/interface/ESHandle.h"
00022 #include "FWCore/Framework/interface/Event.h"
00023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00024 #include "FWCore/Framework/interface/MakerMacros.h"
00025 #include "DataFormats/Common/interface/Handle.h"
00026 #include "DQMServices/Core/interface/DQMStore.h"
00027 #include "DQMServices/Core/interface/MonitorElement.h"
00028 #include "FWCore/ServiceRegistry/interface/Service.h"
00029 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00030 
00031 
00033 #include "DataFormats/RPCDigi/interface/RPCDigi.h"
00034 #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
00035 #include "DataFormats/MuonDetId/interface/RPCDetId.h"
00036 #include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
00037 #include "DataFormats/GeometrySurface/interface/LocalError.h"
00038 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
00039 
00041 #include "Geometry/RPCGeometry/interface/RPCGeometry.h"
00042 #include "Geometry/Records/interface/MuonGeometryRecord.h"
00043 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
00044 #include "Geometry/RPCGeometry/interface/RPCGeomServ.h"
00045 
00046 
00047 #include <iostream>
00048 #include <fstream>
00049 #include <vector>
00050 
00051 //
00052 // class decleration
00053 //
00054 
00055 class L1TRPCTPG : public edm::EDAnalyzer {
00056 
00057 public:
00058 
00059 // Constructor
00060 L1TRPCTPG(const edm::ParameterSet& ps);
00061 
00062 // Destructor
00063 virtual ~L1TRPCTPG();
00064 
00065 // Booking of MonitoringElemnt for one RPCDetId (= roll)
00066 std::map<std::string, MonitorElement*> L1TRPCBookME(RPCDetId & detId);
00067 
00068 protected:
00069 // Analyze
00070 void analyze(const edm::Event& e, const edm::EventSetup& c);
00071 
00072 // BeginJob
00073 void beginJob(void);
00074 
00075 // EndJob
00076 void endJob(void);
00077 
00078 private:
00079   // ----------member data ---------------------------
00080   DQMStore * dbe;
00081 
00082   MonitorElement* rpctpgndigi[3];
00083   MonitorElement* rpctpgbx;
00084 
00085   MonitorElement *  m_digiBxRPCBar;
00086 
00087   MonitorElement *  m_digiBxRPCEnd;
00088 
00089   MonitorElement *  m_digiBxDT;
00090 
00091   MonitorElement *  m_digiBxCSC;
00092   
00093   std::map<uint32_t, std::map<std::string, MonitorElement*> >  rpctpgmeCollection;
00094 
00095   int nev_; // Number of events processed
00096   std::string outputFile_; //file name for ROOT ouput
00097   bool verbose_;
00098   bool monitorDaemon_;
00099   ofstream logFile_;
00100   edm::InputTag rpctpgSource_;
00101   edm::InputTag rpctfSource_ ;
00102 
00103 };
00104 
00105 #endif