Go to the documentation of this file.00001 #ifndef L1TRPCTPG_H
00002 #define L1TRPCTPG_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include <memory>
00015 #include <unistd.h>
00016
00017
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
00053
00054
00055 class L1TRPCTPG : public edm::EDAnalyzer {
00056
00057 public:
00058
00059
00060 L1TRPCTPG(const edm::ParameterSet& ps);
00061
00062
00063 virtual ~L1TRPCTPG();
00064
00065
00066 std::map<std::string, MonitorElement*> L1TRPCBookME(RPCDetId & detId);
00067
00068 protected:
00069
00070 void analyze(const edm::Event& e, const edm::EventSetup& c);
00071
00072
00073 void beginJob(void);
00074
00075
00076 void endJob(void);
00077
00078 private:
00079
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_;
00096 std::string outputFile_;
00097 bool verbose_;
00098 bool monitorDaemon_;
00099 ofstream logFile_;
00100 edm::InputTag rpctpgSource_;
00101 edm::InputTag rpctfSource_ ;
00102
00103 };
00104
00105 #endif