5 #include <boost/format.hpp>
18 descriptions.
add(
"ThroughputService", desc);
22 m_stream_histograms(),
24 m_time_range( config.getUntrackedParameter<double>(
"timeRange") ),
25 m_time_resolution( config.getUntrackedParameter<double>(
"timeResolution") ),
26 m_dqm_path( config.getUntrackedParameter<std::
string>(
"dqmPath" ) )
66 stream.sourced_events = booker.book1D(
"throughput_sourced",
"Throughput (sourced events)", bins, 0., range)->getTH1F();
67 stream.sourced_events ->SetXTitle(
"time [s]");
68 stream.sourced_events ->SetYTitle(y_axis_title.c_str());
69 stream.retired_events = booker.book1D(
"throughput_retired",
"Throughput (retired events)", bins, 0., range)->getTH1F();
70 stream.retired_events ->SetXTitle(
"time [s]");
71 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)
clock_gettime_monotonic::time_point m_startup
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
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)