ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
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:
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
std::vector< unsigned int > m_collidingBCID1s
unsigned int nBunch2Data() const
const std::vector< unsigned int > & bunch1Data() const
int nx2Storage(const cool::Record &rec)
bool setValue(const coral::AttributeList &attrList1)
int nx1Storage(const cool::Record &rec)
std::vector< unsigned int > m_bunch2Data
std::vector< unsigned int > m_collidingBCID2s
bool setCollidingBCID1s(std::vector< unsigned int > &)
const std::vector< unsigned int > & bunch2Data() const
bool setCollidingBCID2s(std::vector< unsigned int > &)
int ny1Storage(const cool::Record &rec)
unsigned int nBunch1Data() const
int ny2Storage(const cool::Record &rec)
std::vector< unsigned int > m_bunch1Data
class LumiBlobUtil m_blobUtil