00001 #ifndef TrackingMonitor_H 00002 #define TrackingMonitor_H 00003 // -*- C++ -*- 00004 // 00005 // Package: TrackingMonitor 00006 // Class: TrackingMonitor 00007 // 00011 // Original Author: Suchandra Dutta, Giorgia Mila 00012 // Created: Thu 28 22:45:30 CEST 2008 00013 // $Id: TrackingMonitor.h,v 1.1 2008/12/11 11:57:23 giorgia Exp $ 00014 00015 #include <memory> 00016 #include <fstream> 00017 #include "FWCore/Framework/interface/Frameworkfwd.h" 00018 #include "FWCore/Framework/interface/EDAnalyzer.h" 00019 #include "FWCore/Framework/interface/Event.h" 00020 #include "FWCore/Framework/interface/MakerMacros.h" 00021 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00022 #include "FWCore/ServiceRegistry/interface/Service.h" 00023 #include "DQMServices/Core/interface/MonitorElement.h" 00024 00025 class DQMStore; 00026 class TrackAnalyzer; 00027 00028 class TrackingMonitor : public edm::EDAnalyzer { 00029 public: 00030 explicit TrackingMonitor(const edm::ParameterSet&); 00031 ~TrackingMonitor(); 00032 virtual void beginJob(edm::EventSetup const& iSetup); 00033 virtual void endJob(void); 00034 00035 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00036 00037 private: 00038 00039 // ----------member data --------------------------- 00040 00041 // unsigned int minTracks_; 00042 00043 std::string histname; //for naming the histograms according to algorithm used 00044 00045 DQMStore * dqmStore_; 00046 edm::ParameterSet conf_; 00047 00048 // the track analyzer 00049 TrackAnalyzer * theTrackAnalyzer; 00050 00051 MonitorElement * NumberOfTracks; 00052 MonitorElement * NumberOfMeanRecHitsPerTrack; 00053 MonitorElement * NumberOfMeanLayersPerTrack; 00054 00055 }; 00056 #endif