00001 // Author : Samvel Khalatian (samvel at fnal dot gov) 00002 // Created: 06/29/07 00003 // Licence: GPL 00004 00005 #ifndef CALIBTRACKER_SISTRIPRUNSUMMARY_SISTRIPRUNSUMMARYWRITE_H 00006 #define CALIBTRACKER_SISTRIPRUNSUMMARY_SISTRIPRUNSUMMARYWRITE_H 00007 00008 #include <string> 00009 00010 #include "CommonTools/ConditionDBWriter/interface/ConditionDBWriter.h" 00011 #include "CondFormats/SiStripObjects/interface/SiStripRunSummary.h" 00012 00013 // Save Compile time by forwarding declarations 00014 #include "FWCore/Framework/interface/Frameworkfwd.h" 00015 00016 // class SiStripRunSummaryWrite: public edm::EDAnalyzer { 00017 class SiStripRunSummaryWrite: public ConditionDBWriter<SiStripRunSummary> { 00018 public: 00019 SiStripRunSummaryWrite( const edm::ParameterSet &roCONFIG); 00020 virtual ~SiStripRunSummaryWrite() {} 00021 00022 protected: 00023 // Leave possibility of inheritance 00024 void algoEndJob(); 00025 00026 private: 00027 virtual SiStripRunSummary *getNewObject(); 00028 00029 // Prevent object copying 00030 SiStripRunSummaryWrite( const SiStripRunSummaryWrite &); 00031 SiStripRunSummaryWrite &operator =( const SiStripRunSummaryWrite &); 00032 00033 std::string oFileXMLIn_; 00034 std::string oFlagTreeTxt_; 00035 }; 00036 00037 #endif // CALIBTRACKER_SISTRIPRUNSUMMARY_SISTRIPRUNSUMMARYWRITE_H