![]() |
![]() |
00001 #ifndef CondCore_Modules_EmptyIOVSource_h 00002 #define CondCore_Modules_EmptyIOVSource_h 00003 // 00004 // Package: CondCore/Modules 00005 // Class : EmptyIOVSource 00006 // 00010 // 00011 // Author: Zhen Xie 00012 // 00013 00014 #include "FWCore/Framework/interface/ConfigurableInputSource.h" 00015 #include "CondCore/DBCommon/interface/Time.h" 00016 #include <set> 00017 namespace cond { 00018 class EmptyIOVSource : public edm::ConfigurableInputSource { 00019 public: 00020 EmptyIOVSource(edm::ParameterSet const&, edm::InputSourceDescription const&); 00021 ~EmptyIOVSource(); 00022 private: 00023 virtual bool produce(edm::Event & e); 00024 virtual void setRunAndEventInfo(); 00025 private: 00026 std::string m_timeType; 00027 unsigned long long m_firstValid; 00028 unsigned long long m_lastValid; 00029 //unsigned long long m_currentValid; 00030 unsigned long long m_interval; 00031 std::set<cond::Time_t> m_iovs; 00032 std::set<cond::Time_t>::iterator m_iovit; 00033 std::set<cond::Time_t>::iterator m_current; 00034 }; 00035 } 00036 #endif