00001 #ifndef HcalQIEDataCheck_h 00002 #define HcalQIEDataCheck_h 00003 00004 // 00005 // R.Ofierzynski 9.12.2007 00006 // 00007 00008 #include <string> 00009 #include <iostream> 00010 #include <fstream> 00011 #include <sstream> 00012 #include <map> 00013 #include <vector> 00014 #include <algorithm> 00015 00016 #include "FWCore/Framework/interface/EDAnalyzer.h" 00017 #include "FWCore/Framework/interface/Event.h" 00018 #include "FWCore/Framework/interface/ESHandle.h" 00019 #include "FWCore/Framework/interface/MakerMacros.h" 00020 00021 #include "FWCore/Framework/interface/EventSetup.h" 00022 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00023 00024 #include "CondFormats/HcalObjects/interface/HcalQIEData.h" 00025 #include "CondFormats/HcalObjects/interface/HcalQIECoder.h" 00026 #include "CondFormats/HcalObjects/interface/HcalQIEShape.h" 00027 #include "CondFormats/HcalObjects/interface/HcalElectronicsMap.h" 00028 00029 #include "DataFormats/HcalDetId/interface/HcalGenericDetId.h" 00030 #include "DataFormats/DetId/interface/DetId.h" 00031 00032 #include "CondFormats/DataRecord/interface/HcalQIEDataRcd.h" 00033 #include "CondFormats/DataRecord/interface/HcalElectronicsMapRcd.h" 00034 00035 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h" 00036 #include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h" 00037 00038 class HcalQIEDataCheck: public edm::EDAnalyzer 00039 { 00040 public: 00041 HcalQIEDataCheck(edm::ParameterSet const& ps); 00042 00043 ~HcalQIEDataCheck(); 00044 00045 void analyze(const edm::Event& ev, const edm::EventSetup& es); 00046 00047 private: 00048 std::string outfile; 00049 std::string dumprefs; 00050 std::string dumpupdate; 00051 bool checkemapflag; 00052 bool validateflag; 00053 // double epsilon; 00054 // vecDetId getMissingDetIds(std::vector<HcalPedestalWidths> &); 00055 00056 00057 }; 00058 #endif