6 #include <boost/format.hpp>
19 descriptions.
add(
"ThroughputService", desc);
23 m_stream_histograms(),
25 m_time_range( config.getUntrackedParameter<double>(
"timeRange") ),
26 m_time_resolution( config.getUntrackedParameter<double>(
"timeResolution") ),
27 m_dqm_path( config.getUntrackedParameter<std::
string>(
"dqmPath" ) )
67 stream.sourced_events = booker.book1D(
"throughput_sourced",
"Throughput (sourced events)", bins, 0., range)->getTH1F();
68 stream.sourced_events ->SetXTitle(
"time [s]");
69 stream.sourced_events ->SetYTitle(y_axis_title.c_str());
70 stream.retired_events = booker.book1D(
"throughput_retired",
"Throughput (retired events)", bins, 0., range)->getTH1F();
71 stream.retired_events ->SetXTitle(
"time [s]");
72 stream.retired_events ->SetYTitle(y_axis_title.c_str());
void preallocate(edm::service::SystemBounds const &bounds)
void watchPreallocate(Preallocate::slot_type const &iSlot)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void preSourceEvent(edm::StreamID sid)
void watchPostEvent(PostEvent::slot_type const &iSlot)
void watchPostStreamEndLumi(PostStreamEndLumi::slot_type const &iSlot)
void postStreamEndLumi(edm::StreamContext const &sc)
void postEvent(edm::StreamContext const &sc)
string format
Some error handling for the usage.
LuminosityBlockNumber_t luminosityBlock() const
static unsigned int getUniqueID()
Returns a unique id each time called. Intended to be passed to ModuleDescription's constructor's modI...
unsigned int maxNumberOfStreams() const
std::chrono::steady_clock::time_point m_startup
void preStreamBeginRun(edm::StreamContext const &sc)
void watchPostStreamEndRun(PostStreamEndRun::slot_type const &iSlot)
StreamID const & streamID() const
std::vector< stream_histograms > m_stream_histograms
#define DEFINE_FWK_SERVICE(type)
unsigned int value() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ThroughputService(const edm::ParameterSet &, edm::ActivityRegistry &)
void watchPreStreamBeginRun(PreStreamBeginRun::slot_type const &iSlot)
void postStreamEndRun(edm::StreamContext const &sc)
EventID const & eventID() const
void watchPreSourceEvent(PreSourceEvent::slot_type const &iSlot)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)