Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:02

0001 #ifndef FWCore_ServiceRegistry_SystemBounds_h
0002 #define FWCore_ServiceRegistry_SystemBounds_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/ServiceRegistry
0006 // Class  :     SystemBounds
0007 //
0008 /**\class SystemBounds SystemBounds.h "SystemBounds.h"
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Sun, 08 Sep 2013 16:16:25 GMT
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 
0025 // forward declarations
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       // ---------- const member functions ---------------------
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       // ---------- member data --------------------------------
0042       unsigned int m_nStreams;
0043       unsigned int m_nLumis;
0044       unsigned int m_nRuns;
0045       unsigned int m_nThreads;
0046     };
0047 
0048   }  // namespace service
0049 }  // namespace edm
0050 
0051 #endif