00001 #ifndef SiStripBadModuleByHandBuilder_H 00002 #define SiStripBadModuleByHandBuilder_H 00003 00004 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00005 #include "FWCore/Utilities/interface/Exception.h" 00006 #include "FWCore/Framework/interface/ESHandle.h" 00007 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00008 00009 #include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h" 00010 #include "CondFormats/SiStripObjects/interface/SiStripBadStrip.h" 00011 #include "FWCore/ParameterSet/interface/FileInPath.h" 00012 #include "CalibTracker/SiStripCommon/interface/SiStripDetInfoFileReader.h" 00013 #include <vector> 00014 00015 #include <ext/hash_map> 00016 00017 class SiStripBadModuleByHandBuilder : public ConditionDBWriter<SiStripBadStrip> { 00018 00019 public: 00020 00021 explicit SiStripBadModuleByHandBuilder(const edm::ParameterSet&); 00022 ~SiStripBadModuleByHandBuilder(); 00023 00024 00025 private: 00026 00027 SiStripBadStrip* getNewObject(); 00028 00029 private: 00030 edm::FileInPath fp_; 00031 bool printdebug_; 00032 std::vector<uint32_t> BadModuleList_; 00033 SiStripDetInfoFileReader* reader; 00034 00035 }; 00036 #endif