Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef FWCore_Framework_PreallocationConfiguration_h
0002 #define FWCore_Framework_PreallocationConfiguration_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     FWCore/Framework
0006 // Class  :     PreallocationConfiguration
0007 //
0008 /**\class edm::PreallocationConfiguration PreallocationConfiguration.h "PreallocationConfiguration.h"
0009 
0010  Description: Holds number of simultaneous Streams, LuminosityBlocks and Runs the job will allow.
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Sun, 11 Aug 2013 19:27:57 GMT
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 
0025 // forward declarations
0026 namespace edm {
0027   class PreallocationConfiguration {
0028   public:
0029     PreallocationConfiguration() : PreallocationConfiguration(1, 1, 1, 1) {}
0030     PreallocationConfiguration(unsigned int iNThreads, unsigned int iNStreams, unsigned int iNLumis, unsigned int iNRuns)
0031         : m_nthreads(iNThreads), m_nStreams(iNStreams), m_nLumis(iNLumis), m_nRuns(iNRuns) {}
0032 
0033     // ---------- const member functions ---------------------
0034     unsigned int numberOfThreads() const { return m_nthreads; }
0035     unsigned int numberOfStreams() const { return m_nStreams; }
0036     unsigned int numberOfLuminosityBlocks() const { return m_nLumis; }
0037     unsigned int numberOfRuns() const { return m_nRuns; }
0038 
0039   private:
0040     //PreallocationConfiguration(const PreallocationConfiguration&) = delete; // stop default
0041 
0042     //const PreallocationConfiguration& operator=(const PreallocationConfiguration&) = delete; // stop default
0043 
0044     // ---------- member data --------------------------------
0045     unsigned int m_nthreads;
0046     unsigned int m_nStreams;
0047     unsigned int m_nLumis;
0048     unsigned int m_nRuns;
0049   };
0050 }  // namespace edm
0051 
0052 #endif