00001 #ifndef SiStripMonitorDigi_SiStripBaselineValidator_h 00002 #define SiStripMonitorDigi_SiStripBaselineValidator_h 00003 00004 // framework & common header files 00005 #include "FWCore/Framework/interface/EDAnalyzer.h" 00006 #include "FWCore/Framework/interface/Event.h" 00007 #include "FWCore/Framework/interface/EventSetup.h" 00008 #include "FWCore/Framework/interface/Run.h" 00009 #include "FWCore/Framework/interface/ESHandle.h" 00010 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00011 00012 //DQM services 00013 #include "DQMServices/Core/interface/DQMStore.h" 00014 #include "FWCore/ServiceRegistry/interface/Service.h" 00015 #include "DQMServices/Core/interface/MonitorElement.h" 00016 00017 00018 #include <iostream> 00019 #include <stdlib.h> 00020 00021 /*#include "DataFormats/TrackReco/interface/Track.h" 00022 #include "DataFormats/TrackCandidate/interface/TrackCandidateCollection.h" 00023 #include "DataFormats/TrackCandidate/interface/TrackCandidate.h" 00024 #include "DataFormats/TrackReco/interface/Track.h" 00025 #include "DataFormats/TrackReco/interface/TrackFwd.h" 00026 #include "DataFormats/VertexReco/interface/VertexFwd.h" 00027 #include "DataFormats/VertexReco/interface/Vertex.h" 00028 */ 00029 00030 00031 00032 //using namespace reco; 00033 00034 class DQMStore; 00035 00036 class SiStripBaselineValidator : public edm::EDAnalyzer 00037 { 00038 public: 00039 explicit SiStripBaselineValidator(const edm::ParameterSet&); 00040 virtual ~SiStripBaselineValidator(); 00041 00042 virtual void beginJob(); 00043 virtual void endJob(); 00044 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00045 00046 private: 00047 00048 DQMStore *dbe; 00049 00050 MonitorElement *h1NumbadAPVsRes_; 00051 MonitorElement *h1ADC_vs_strip_; 00052 00053 edm::InputTag srcProcessedRawDigi_; 00054 // edm::InputTag hiSelectedTracks; 00055 std::string outputFile_; 00056 bool createOutputFile_; 00057 00058 }; 00059 #endif