00001 #ifndef SiPixelMonitorRawData_SiPixelHLTSource_h 00002 #define SiPixelMonitorRawData_SiPixelHLTSource_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiPixelMonitorRawData 00006 // Class : SiPixelHLTSource 00007 // 00019 // 00020 // Original Author: Andrew York 00021 // 00022 00023 #include <memory> 00024 00025 // user include files 00026 #include "DQMServices/Core/interface/MonitorElement.h" 00027 #include "FWCore/Framework/interface/Frameworkfwd.h" 00028 #include "FWCore/Framework/interface/EDAnalyzer.h" 00029 #include "FWCore/Framework/interface/MakerMacros.h" 00030 00031 #include "DQMServices/Core/interface/DQMStore.h" 00032 00033 #include "DataFormats/Common/interface/DetSetVector.h" 00034 #include "DataFormats/SiPixelRawData/interface/SiPixelRawDataError.h" 00035 #include "DataFormats/Common/interface/EDProduct.h" 00036 00037 00038 #include "FWCore/Framework/interface/EDProducer.h" 00039 #include "FWCore/Framework/interface/Event.h" 00040 #include "FWCore/Framework/interface/EventSetup.h" 00041 #include "DataFormats/Common/interface/Handle.h" 00042 #include "FWCore/Framework/interface/ESHandle.h" 00043 00044 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00045 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h" 00046 00047 #include <boost/cstdint.hpp> 00048 00049 class SiPixelHLTSource : public edm::EDAnalyzer { 00050 public: 00051 explicit SiPixelHLTSource(const edm::ParameterSet& conf); 00052 ~SiPixelHLTSource(); 00053 00054 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00055 virtual void beginJob(edm::EventSetup const&) ; 00056 virtual void endJob() ; 00057 virtual void bookMEs(); 00058 00059 private: 00060 edm::ParameterSet conf_; 00061 edm::InputTag rawin_; 00062 edm::InputTag errin_; 00063 edm::ESHandle<TrackerGeometry> pDD; 00064 bool saveFile; 00065 bool slowDown; 00066 int eventNo; 00067 DQMStore* theDMBE; 00068 MonitorElement* meRawWords_; 00069 MonitorElement* meNCRCs_; 00070 MonitorElement* meNErrors_; 00071 }; 00072 00073 #endif