|
|
Go to the documentation of this file.
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);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
FileBasedEmptySource(edm::ParameterSet const &, edm::InputSourceDescription const &)
unsigned int m_eventsPerLumi
unsigned int m_currentLumi
std::string m_pathForLastLumiFile
void initialize(edm::EventID &id, edm::TimeValue_t &time, edm::TimeValue_t &interval) override
void produce(edm::Event &e) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
boost::posix_time::ptime m_currentLumiTime
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &time, edm::EventAuxiliary::ExperimentType &eType) override
void setComment(std::string const &value)
~FileBasedEmptySource() override
Time_t from_boost(boost::posix_time::ptime bt)
unsigned long long Time_t
cond::UnpackedTime unpack(cond::Time_t iValue)
unsigned int m_currentRun
unsigned long long TimeValue_t
unsigned long long m_eventId