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
27 
29 public:
32 
33 private:
34  void preallocate(edm::service::SystemBounds const & bounds);
36  void postStreamEndLumi(edm::StreamContext const& sc);
37  void postStreamEndRun(edm::StreamContext const & sc);
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:
45 
47  {
51  { }
52 
55  };
56 
57  std::vector<stream_histograms> m_stream_histograms;
58 
59  std::chrono::steady_clock::time_point m_startup;
60 
61  // histogram-related data members
62  double m_time_range;
64 
65  // DQM service-related data members
66  unsigned int m_module_id; // pseudo module id for the ThroughputService, needed by the thread-safe DQMStore
68 };
69 
70 #endif // ! ThroughputService_h
void preallocate(edm::service::SystemBounds const &bounds)
void preSourceEvent(edm::StreamID sid)
void postStreamEndLumi(edm::StreamContext const &sc)
void postEvent(edm::StreamContext const &sc)
#define nullptr
std::chrono::steady_clock::time_point m_startup
std::string m_dqm_path
void preStreamBeginRun(edm::StreamContext const &sc)
std::vector< stream_histograms > m_stream_histograms
ThroughputService(const edm::ParameterSet &, edm::ActivityRegistry &)
void postStreamEndRun(edm::StreamContext const &sc)
unsigned int m_module_id
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)