ATLAS Offline Software
BunchDataUtil.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef COOLLUMIUTILITIES_BUNCHDATAUTIL_H
13 #define COOLLUMIUTILITIES_BUNCHDATAUTIL_H
14 
15 #include <vector>
16 #include <string>
17 
18 #include "CoralBase/AttributeList.h"
19 #include "CoolKernel/Record.h"
21 
23 
24  public:
25  BunchDataUtil();
26 
27  int nx1Storage(const cool::Record& rec);
28  int ny1Storage(const cool::Record& rec);
29 
30  int nx1Storage(const coral::AttributeList& attrList1) const;
31  int ny1Storage(const coral::AttributeList& attrList1) const;
32 
33  int nx2Storage(const cool::Record& rec);
34  int ny2Storage(const cool::Record& rec);
35 
36  int nx2Storage(const coral::AttributeList& attrList1) const;
37  int ny2Storage(const coral::AttributeList& attrList1) const;
38 
39  unsigned int nBunch1Data() const;
40  unsigned int nBunch2Data() const;
41 
42  const std::vector<unsigned int>& bunch1Data() const;
43  const std::vector<unsigned int>& bunch2Data() const;
44 
45  // Clear all data vectors
46  void clear();
47 
48  // Fill values from COOL, returns false on error
49  bool setValue(const coral::AttributeList& attrList1);
50  // bool setValue(const coral::AttributeList& attrList2);
51  bool setValue(const cool::Record& rec);
52 
53  bool setCollidingBCID1s(std::vector<unsigned int> &);
54  bool setCollidingBCID2s(std::vector<unsigned int> &);
55 
56  // Error string contains error from setValue() operation
57  std::string error;
58 
59  private:
60  // Data
61 
62  std::vector<unsigned int> m_collidingBCID1s;
63  std::vector<unsigned int> m_collidingBCID2s;
64 
65  std::vector<unsigned int> m_bunch1Data;
66  std::vector<unsigned int> m_bunch2Data;
68 
69 };
70 
71 #endif
BunchDataUtil::setValue
bool setValue(const coral::AttributeList &attrList1)
Definition: BunchDataUtil.cxx:142
BunchDataUtil::ny2Storage
int ny2Storage(const cool::Record &rec)
Definition: BunchDataUtil.cxx:59
BunchDataUtil::nBunch2Data
unsigned int nBunch2Data() const
Definition: BunchDataUtil.cxx:31
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
BunchDataUtil::setCollidingBCID1s
bool setCollidingBCID1s(std::vector< unsigned int > &)
Definition: BunchDataUtil.cxx:128
BunchDataUtil::m_blobUtil
class LumiBlobUtil m_blobUtil
Definition: BunchDataUtil.h:67
LumiBlobUtil.h
BunchDataUtil::m_bunch1Data
std::vector< unsigned int > m_bunch1Data
Definition: BunchDataUtil.h:65
BunchDataUtil::nBunch1Data
unsigned int nBunch1Data() const
Definition: BunchDataUtil.cxx:27
BunchDataUtil::bunch2Data
const std::vector< unsigned int > & bunch2Data() const
Definition: BunchDataUtil.cxx:39
BunchDataUtil::ny1Storage
int ny1Storage(const cool::Record &rec)
Definition: BunchDataUtil.cxx:49
LumiBlobUtil
Utility class to to decode data from FILLPARAMS COOL folder
Definition: LumiBlobUtil.h:21
BunchDataUtil
Utility class to to decode data from FILLPARAMS COOL folder
Definition: BunchDataUtil.h:22
BunchDataUtil::clear
void clear()
Definition: BunchDataUtil.cxx:21
BunchDataUtil::setCollidingBCID2s
bool setCollidingBCID2s(std::vector< unsigned int > &)
Definition: BunchDataUtil.cxx:134
BunchDataUtil::m_bunch2Data
std::vector< unsigned int > m_bunch2Data
Definition: BunchDataUtil.h:66
BunchDataUtil::BunchDataUtil
BunchDataUtil()
Definition: BunchDataUtil.cxx:14
BunchDataUtil::error
std::string error
Definition: BunchDataUtil.h:57
BunchDataUtil::m_collidingBCID1s
std::vector< unsigned int > m_collidingBCID1s
Definition: BunchDataUtil.h:62
BunchDataUtil::bunch1Data
const std::vector< unsigned int > & bunch1Data() const
Definition: BunchDataUtil.cxx:35
BunchDataUtil::m_collidingBCID2s
std::vector< unsigned int > m_collidingBCID2s
Definition: BunchDataUtil.h:63
BunchDataUtil::nx1Storage
int nx1Storage(const cool::Record &rec)
Definition: BunchDataUtil.cxx:44
BunchDataUtil::nx2Storage
int nx2Storage(const cool::Record &rec)
Definition: BunchDataUtil.cxx:54