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 {
30  {
31 
32  public:
33  SystemBounds(unsigned int iNStreams,
34  unsigned int iNLumis,
35  unsigned int iNRuns,
36  unsigned int iNThreads) :
37  m_nStreams(iNStreams),
38  m_nLumis(iNLumis),
39  m_nRuns(iNRuns),
40  m_nThreads(iNThreads){}
41 
42  // ---------- const member functions ---------------------
43  unsigned int maxNumberOfStreams() const {return m_nStreams; }
44  unsigned int maxNumberOfConcurrentRuns() const {return m_nRuns;}
45  unsigned int maxNumberOfConcurrentLuminosityBlocks() const {return m_nLumis;}
46  unsigned int maxNumberOfThreads() const { return m_nThreads; }
47 
48  private:
49 
50  // ---------- member data --------------------------------
51  unsigned int m_nStreams;
52  unsigned int m_nLumis;
53  unsigned int m_nRuns;
54  unsigned int m_nThreads;
55  };
56 
57  }
58 }
59 
60 
61 #endif
unsigned int maxNumberOfThreads() const
Definition: SystemBounds.h:46
SystemBounds(unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns, unsigned int iNThreads)
Definition: SystemBounds.h:33
unsigned int maxNumberOfStreams() const
Definition: SystemBounds.h:43
unsigned int maxNumberOfConcurrentLuminosityBlocks() const
Definition: SystemBounds.h:45
HLT enums.
unsigned int maxNumberOfConcurrentRuns() const
Definition: SystemBounds.h:44