ATLAS Offline Software
DataHeader_p5.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PERSISTENTDATAMODELTPCNV_DATAHEADER_P5_H
6 #define PERSISTENTDATAMODELTPCNV_DATAHEADER_P5_H
7 
15 #include <vector>
16 #include <string>
17 
22 public: // Constructor and Destructor
26 
28 
30 
31  const std::string& token() const;
32  long long int oid2() const;
33 
34 private:
35  std::string m_token;
36  long long int m_oid2;
37 };
38 
43 public: // Constructor and Destructor
47 
49 
50  const std::vector<std::string>& map() const;
51  void insertMap(const std::string& element);
52 
53  const std::vector<unsigned int>& params(unsigned int entry) const;
54  void insertParam(unsigned int param, unsigned int entry);
55 
56  unsigned int size() const;
57  void resize(unsigned int size);
58 
59 private:
60  std::vector<std::string> m_map;
61  std::vector<std::vector<unsigned int> > m_uints;
62 };
63 
68 public: // Constructor and Destructor
69  DataHeader_p5();
70  DataHeader_p5(const DataHeader_p5& rhs);
72 
74 
75  friend class DataHeaderCnv_p5;
76 
77  const std::vector<DataHeaderElement_p5>& elements() const;
78  const std::string& dhFormToken() const;
79  void setDhFormToken(const std::string& formToken,
80  const DataHeaderForm_p5& dhForm);
81  const std::string& dhFormMdx() const;
82 
83 private:
84  std::vector<DataHeaderElement_p5> m_dataHeader;
85  std::string m_dhFormToken;
86  std::string m_dhFormMdx;
87 };
88 
89 #endif
DataHeaderForm_p5::m_uints
std::vector< std::vector< unsigned int > > m_uints
Definition: DataHeader_p5.h:61
DataHeaderElement_p5::token
const std::string & token() const
Definition: DataHeader_p5.cxx:25
DataHeaderElement_p5::m_token
std::string m_token
Definition: DataHeader_p5.h:35
DataHeaderElement_p5::~DataHeaderElement_p5
~DataHeaderElement_p5()
Definition: DataHeader_p5.cxx:15
DataHeader_p5::m_dhFormToken
std::string m_dhFormToken
Definition: DataHeader_p5.h:85
DataHeader_p5::dhFormMdx
const std::string & dhFormMdx() const
Definition: DataHeader_p5.cxx:115
DataHeaderForm_p5
This class provides storage for the constant fields of the persistent DataHeader class.
Definition: DataHeader_p5.h:42
DataHeaderForm_p5::m_map
std::vector< std::string > m_map
Definition: DataHeader_p5.h:60
DataHeaderForm_p5::map
const std::vector< std::string > & map() const
Definition: DataHeader_p5.cxx:45
DataHeaderForm_p5::resize
void resize(unsigned int size)
Definition: DataHeader_p5.cxx:65
DataHeaderForm_p5::operator=
DataHeaderForm_p5 & operator=(const DataHeaderForm_p5 &rhs)
Definition: DataHeader_p5.cxx:37
DataHeaderElement_p5::operator=
DataHeaderElement_p5 & operator=(const DataHeaderElement_p5 &rhs)
Definition: DataHeader_p5.cxx:17
DataHeaderCnv_p5
This class provides the converter to customize the saving of DataHeader_p5.
Definition: DataHeaderCnv_p5.h:42
DataHeaderElement_p5::oid2
long long int oid2() const
Definition: DataHeader_p5.cxx:29
DataHeader_p5::dhFormToken
const std::string & dhFormToken() const
Definition: DataHeader_p5.cxx:90
DataHeaderForm_p5::params
const std::vector< unsigned int > & params(unsigned int entry) const
Definition: DataHeader_p5.cxx:53
DataHeader_p5::elements
const std::vector< DataHeaderElement_p5 > & elements() const
Definition: DataHeader_p5.cxx:86
DataHeader_p5::m_dataHeader
std::vector< DataHeaderElement_p5 > m_dataHeader
Definition: DataHeader_p5.h:84
DataHeaderForm_p5::size
unsigned int size() const
Definition: DataHeader_p5.cxx:61
DataHeaderElementCnv_p5
This class provides the converter to customize the saving of DataHeaderElement_p5.
Definition: DataHeaderCnv_p5.h:24
DataHeader_p5::setDhFormToken
void setDhFormToken(const std::string &formToken, const DataHeaderForm_p5 &dhForm)
Definition: DataHeader_p5.cxx:94
DataHeaderElement_p5::m_oid2
long long int m_oid2
Definition: DataHeader_p5.h:36
DataHeaderForm_p5::insertMap
void insertMap(const std::string &element)
Definition: DataHeader_p5.cxx:49
DataHeader_p5::~DataHeader_p5
~DataHeader_p5()
Definition: DataHeader_p5.cxx:74
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
DataHeader_p5::operator=
DataHeader_p5 & operator=(const DataHeader_p5 &rhs)
Definition: DataHeader_p5.cxx:77
DataHeaderElement_p5
This class provides a persistent representation for the DataHeaderElement class.
Definition: DataHeader_p5.h:21
DataHeaderForm_p5::DataHeaderForm_p5
DataHeaderForm_p5()
Definition: DataHeader_p5.cxx:34
DataHeaderForm_p5::insertParam
void insertParam(unsigned int param, unsigned int entry)
Definition: DataHeader_p5.cxx:57
DataHeader_p5
This class provides a persistent representation for the DataHeader class.
Definition: DataHeader_p5.h:67
DataHeader_p5::DataHeader_p5
DataHeader_p5()
Definition: DataHeader_p5.cxx:70
DataHeader_p5::m_dhFormMdx
std::string m_dhFormMdx
Definition: DataHeader_p5.h:86
DataHeaderForm_p5::~DataHeaderForm_p5
~DataHeaderForm_p5()
Definition: DataHeader_p5.cxx:36
DataHeaderElement_p5::DataHeaderElement_p5
DataHeaderElement_p5()
Definition: DataHeader_p5.cxx:12