File indexing completed on 2024-04-06 12:13:02
0001 #ifndef FWCore_ServiceRegistry_SystemBounds_h
0002 #define FWCore_ServiceRegistry_SystemBounds_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 namespace edm {
0028 namespace service {
0029 class SystemBounds {
0030 public:
0031 SystemBounds(unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns, unsigned int iNThreads)
0032 : m_nStreams(iNStreams), m_nLumis(iNLumis), m_nRuns(iNRuns), m_nThreads(iNThreads) {}
0033
0034
0035 unsigned int maxNumberOfStreams() const { return m_nStreams; }
0036 unsigned int maxNumberOfConcurrentRuns() const { return m_nRuns; }
0037 unsigned int maxNumberOfConcurrentLuminosityBlocks() const { return m_nLumis; }
0038 unsigned int maxNumberOfThreads() const { return m_nThreads; }
0039
0040 private:
0041
0042 unsigned int m_nStreams;
0043 unsigned int m_nLumis;
0044 unsigned int m_nRuns;
0045 unsigned int m_nThreads;
0046 };
0047
0048 }
0049 }
0050
0051 #endif