CMS 3D CMS Logo

LHCInfoVectorizedFields.h
Go to the documentation of this file.
1 #ifndef CondFormats_RunInfo_LHCInfoVectorizedFields_H
2 #define CondFormats_RunInfo_LHCInfoVectorizedFields_H
3 
5 #include <vector>
6 
8 public:
9  enum IntParamIndex { ISIZE = 0 };
10  enum FloatParamIndex { FSIZE = 0 };
11  enum TimeParamIndex { TSIZE = 0 };
12  enum StringParamIndex { SSIZE = 0 };
13 
15 
16 protected:
17  LHCInfoVectorizedFields(size_t iSize, size_t fSize, size_t tSize, size_t sSize);
18 
19  bool m_isData = false;
20  std::vector<std::vector<unsigned int> > m_intParams;
21  std::vector<std::vector<float> > m_floatParams;
22  std::vector<std::vector<unsigned long long> > m_timeParams;
23  std::vector<std::vector<std::string> > m_stringParams;
24 
25 public:
26  template <typename T>
27  static const T& getParams(const std::vector<T>& params, size_t index);
28 
29  template <typename T>
30  static T& accessParams(std::vector<T>& params, size_t index);
31 
32  template <typename T>
33  static const T& getOneParam(const std::vector<std::vector<T> >& params, size_t index);
34 
35  template <typename T>
36  static void setOneParam(std::vector<std::vector<T> >& params, size_t index, const T& value);
37 
38  template <typename T>
39  static void setParams(std::vector<T>& params, size_t index, const T& value);
40 
42 };
43 
44 #endif // CondFormats_RunInfo_LHCInfoVectorizedFields_H
static void setOneParam(std::vector< std::vector< T > > &params, size_t index, const T &value)
std::vector< std::vector< unsigned int > > m_intParams
std::vector< std::vector< std::string > > m_stringParams
static const T & getOneParam(const std::vector< std::vector< T > > &params, size_t index)
static void setParams(std::vector< T > &params, size_t index, const T &value)
std::vector< std::vector< unsigned long long > > m_timeParams
std::vector< std::vector< float > > m_floatParams
Definition: value.py:1
#define COND_SERIALIZABLE
Definition: Serializable.h:39
static const T & getParams(const std::vector< T > &params, size_t index)
long double T
static T & accessParams(std::vector< T > &params, size_t index)