CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQM/SiPixelMonitorRawData/interface/SiPixelHLTSource.h

Go to the documentation of this file.
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 
00036 
00037 #include "FWCore/Framework/interface/EDProducer.h"
00038 #include "FWCore/Framework/interface/Event.h"
00039 #include "FWCore/Framework/interface/EventSetup.h"
00040 #include "DataFormats/Common/interface/Handle.h"
00041 #include "FWCore/Framework/interface/ESHandle.h"
00042 
00043 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00044 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
00045 
00046 #include <boost/cstdint.hpp>
00047 
00048  class SiPixelHLTSource : public edm::EDAnalyzer {
00049     public:
00050        explicit SiPixelHLTSource(const edm::ParameterSet& conf);
00051        ~SiPixelHLTSource();
00052 
00053        virtual void analyze(const edm::Event&, const edm::EventSetup&);
00054        virtual void beginJob() ;
00055        virtual void endJob() ;
00056        virtual void beginRun(const edm::Run&, edm::EventSetup const&) ;
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        std::string dirName_;
00067        int eventNo;
00068        DQMStore* theDMBE;
00069        MonitorElement* meRawWords_;
00070        MonitorElement* meNCRCs_;
00071        MonitorElement* meNErrors_;
00072        bool firstRun;
00073  };
00074 
00075 #endif