42 : edm::ProducerSourceBase(pset, desc,
true),
43 m_interval(pset.getParameter<unsigned int>(
"interval")),
45 m_eventsPerLumi(pset.getUntrackedParameter<unsigned int>(
"numberEventsInLuminosityBlock")),
46 m_pathForLastLumiFile(pset.getParameter<std::
string>(
"pathForLastLumiFile")),
49 m_currentLumiTime() {}
64 std::cout <<
"Error: last lumi file can't be read." << std::endl;
69 unsigned int runId =
t.first;
70 unsigned int lumiId =
t.second;
72 boost::posix_time::ptime
now = boost::posix_time::microsec_clock::local_time();
84 std::cout <<
"###### setRunAndEventInfo Run: " << runId <<
" lumi: " << lumiId <<
" event id: " <<
m_eventId
85 <<
" time:" << boost::posix_time::to_simple_string(now) << std::endl;
99 std::cout <<
"Error: last lumi file can't be read." << std::endl;
105 unsigned int runId =
t.first;
106 unsigned int lumiId =
t.second;
107 std::cout <<
"###### initialize Run: " << runId <<
" lumi: " << lumiId << std::endl;
110 boost::posix_time::ptime
now = boost::posix_time::microsec_clock::local_time();
119 desc.
setComment(
"Creates runs, lumis and events containing no products.");
120 ProducerSourceBase::fillDescription(desc);
129 desc.
add<
unsigned int>(
"interval");
130 desc.
add<
unsigned int>(
"maxEvents");
132 descriptions.
add(
"source", desc);
boost::posix_time::ptime m_currentLumiTime
void setComment(std::string const &value)
unsigned int m_currentRun
unsigned long long Time_t
std::string m_pathForLastLumiFile
unsigned long long m_eventId
unsigned int m_eventsPerLumi
ParameterDescriptionBase * add(U const &iLabel, T const &value)
unsigned long long TimeValue_t
Time_t from_boost(boost::posix_time::ptime bt)
FileBasedEmptySource(edm::ParameterSet const &, edm::InputSourceDescription const &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int m_currentLumi
void initialize(edm::EventID &id, edm::TimeValue_t &time, edm::TimeValue_t &interval) override
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &eType) override
void produce(edm::Event &e) override
~FileBasedEmptySource() override
cond::UnpackedTime unpack(cond::Time_t iValue)