CMS 3D CMS Logo

ThroughputService.h
Go to the documentation of this file.
1 #ifndef ThroughputService_h
2 #define ThroughputService_h
3 
4 // C++ headers
5 #include <string>
6 #include <chrono>
7 #include <functional>
8 
9 // TBB headers
10 #include <tbb/concurrent_unordered_map.h>
11 #include <tbb/concurrent_unordered_set.h>
12 
13 // ROOT headers
14 #include <TH1F.h>
15 
16 // CMSSW headers
29 
31 public:
34 
35 private:
36  void preallocate(edm::service::SystemBounds const& bounds);
37  void preGlobalBeginRun(edm::GlobalContext const& gc);
38  void preSourceEvent(edm::StreamID sid);
39  void postEvent(edm::StreamContext const & sc);
40 
41 public:
42  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
43 
44 private:
47 
48  std::chrono::steady_clock::time_point m_startup;
49 
50  // histogram-related data members
51  const double m_time_range;
52  const double m_time_resolution;
53 
54  // DQM service-related data members
56  const bool m_dqm_bynproc;
57 };
58 
59 #endif // ! ThroughputService_h
void preallocate(edm::service::SystemBounds const &bounds)
void preSourceEvent(edm::StreamID sid)
void postEvent(edm::StreamContext const &sc)
void preGlobalBeginRun(edm::GlobalContext const &gc)
ConcurrentMonitorElement m_sourced_events
std::chrono::steady_clock::time_point m_startup
std::string m_dqm_path
ThroughputService(const edm::ParameterSet &, edm::ActivityRegistry &)
ConcurrentMonitorElement m_retired_events
const double m_time_resolution
const double m_time_range
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const bool m_dqm_bynproc