![]() |
![]() |
00001 #ifndef EETimingTask_H 00002 #define EETimingTask_H 00003 00004 /* 00005 * \file EETimingTask.h 00006 * 00007 * $Date: 2011/09/15 21:54:51 $ 00008 * $Revision: 1.22 $ 00009 * \author G. Della Ricca 00010 * 00011 */ 00012 00013 #include "FWCore/Framework/interface/EDAnalyzer.h" 00014 #include "FWCore/Framework/interface/Event.h" 00015 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00016 00017 #include "FWCore/Framework/interface/ESHandle.h" 00018 #include "Geometry/Records/interface/CaloGeometryRecord.h" 00019 00020 #include "Geometry/CaloGeometry/interface/CaloGeometry.h" 00021 #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h" 00022 00023 class MonitorElement; 00024 class DQMStore; 00025 00026 class EETimingTask: public edm::EDAnalyzer{ 00027 00028 public: 00029 00031 EETimingTask(const edm::ParameterSet& ps); 00032 00034 virtual ~EETimingTask(); 00035 00036 static const float shiftProf2D; 00037 00038 protected: 00039 00041 void analyze(const edm::Event& e, const edm::EventSetup& c); 00042 00044 void beginJob(void); 00045 00047 void endJob(void); 00048 00050 void beginRun(const edm::Run & r, const edm::EventSetup & c); 00051 00053 void endRun(const edm::Run & r, const edm::EventSetup & c); 00054 00056 void reset(void); 00057 00059 void setup(void); 00060 00062 void cleanup(void); 00063 00064 private: 00065 00066 int ievt_; 00067 00068 DQMStore* dqmStore_; 00069 00070 std::string prefixME_; 00071 00072 bool enableCleanup_; 00073 00074 bool mergeRuns_; 00075 00076 float energyThreshold_; 00077 00078 edm::InputTag EcalRawDataCollection_; 00079 edm::InputTag EcalRecHitCollection_; 00080 edm::InputTag L1GtEvmReadoutRecord_; 00081 00082 MonitorElement* meTime_[18]; 00083 MonitorElement* meTimeMap_[18]; 00084 MonitorElement* meTimeAmpli_[18]; 00085 00086 MonitorElement* meTimeAmpliSummary_[2]; 00087 MonitorElement* meTimeSummary1D_[2]; 00088 MonitorElement* meTimeSummaryMap_[2]; 00089 MonitorElement* meTimeDelta_, *meTimeDelta2D_; 00090 00091 edm::ESHandle<CaloGeometry> pGeometry_; 00092 00093 bool init_; 00094 bool initCaloGeometry_; 00095 00096 bool useBeamStatus_; 00097 bool stableBeamsDeclared_; 00098 00099 }; 00100 00101 const float EETimingTask::shiftProf2D = 50.; 00102 00103 #endif