CMS 3D CMS Logo

SystemBounds.h
Go to the documentation of this file.
1 #ifndef FWCore_ServiceRegistry_SystemBounds_h
2 #define FWCore_ServiceRegistry_SystemBounds_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/ServiceRegistry
6 // Class : SystemBounds
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sun, 08 Sep 2013 16:16:25 GMT
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 
27 namespace edm {
28  namespace service {
29  class SystemBounds {
30  public:
31  SystemBounds(unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns, unsigned int iNThreads)
32  : m_nStreams(iNStreams), m_nLumis(iNLumis), m_nRuns(iNRuns), m_nThreads(iNThreads) {}
33 
34  // ---------- const member functions ---------------------
35  unsigned int maxNumberOfStreams() const { return m_nStreams; }
36  unsigned int maxNumberOfConcurrentRuns() const { return m_nRuns; }
37  unsigned int maxNumberOfConcurrentLuminosityBlocks() const { return m_nLumis; }
38  unsigned int maxNumberOfThreads() const { return m_nThreads; }
39 
40  private:
41  // ---------- member data --------------------------------
42  unsigned int m_nStreams;
43  unsigned int m_nLumis;
44  unsigned int m_nRuns;
45  unsigned int m_nThreads;
46  };
47 
48  } // namespace service
49 } // namespace edm
50 
51 #endif
unsigned int maxNumberOfStreams() const
Definition: SystemBounds.h:35
SystemBounds(unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns, unsigned int iNThreads)
Definition: SystemBounds.h:31
unsigned int maxNumberOfThreads() const
Definition: SystemBounds.h:38
unsigned int maxNumberOfConcurrentRuns() const
Definition: SystemBounds.h:36
HLT enums.
unsigned int maxNumberOfConcurrentLuminosityBlocks() const
Definition: SystemBounds.h:37