File indexing completed on 2024-04-06 12:12:04
0001 #ifndef FWCore_Framework_PreallocationConfiguration_h
0002 #define FWCore_Framework_PreallocationConfiguration_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 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
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
0041
0042
0043
0044
0045 unsigned int m_nthreads;
0046 unsigned int m_nStreams;
0047 unsigned int m_nLumis;
0048 unsigned int m_nRuns;
0049 };
0050 }
0051
0052 #endif