Utility class to to decode data from FILLPARAMS COOL folder.
More...
#include <FillParamsUtil.h>
Utility class to to decode data from FILLPARAMS COOL folder.
Can be used with FillParamsTool or python FillParamsData
- Author
- E.Torrence
Definition at line 21 of file FillParamsUtil.h.
◆ FillParamsUtil()
FillParamsUtil::FillParamsUtil |
( |
| ) |
|
◆ beam1Bunches()
const std::vector< unsigned int > & FillParamsUtil::beam1Bunches |
( |
| ) |
const |
◆ beam2Bunches()
const std::vector< unsigned int > & FillParamsUtil::beam2Bunches |
( |
| ) |
const |
◆ clear()
void FillParamsUtil::clear |
( |
| ) |
|
◆ luminousBunches()
const std::vector< unsigned int > & FillParamsUtil::luminousBunches |
( |
| ) |
const |
◆ nBeam1Bunches()
unsigned int FillParamsUtil::nBeam1Bunches |
( |
| ) |
const |
◆ nBeam2Bunches()
unsigned int FillParamsUtil::nBeam2Bunches |
( |
| ) |
const |
◆ nLuminousBunches()
unsigned int FillParamsUtil::nLuminousBunches |
( |
| ) |
const |
◆ setValue() [1/2]
bool FillParamsUtil::setValue |
( |
const cool::Record & |
rec | ) |
|
◆ setValue() [2/2]
bool FillParamsUtil::setValue |
( |
const coral::AttributeList & |
attrList | ) |
|
Definition at line 76 of file FillParamsUtil.cxx.
83 if (attrList[
"BCIDmasks"].isNull()) {
84 error =
"BCIDmasks is NULL!";
89 cool::UInt32 nb1 = attrList[
"Beam1Bunches"].data<cool::UInt32>();
90 cool::UInt32 nb2 = attrList[
"Beam2Bunches"].data<cool::UInt32>();
91 cool::UInt32 ncol = attrList[
"LuminousBunches"].data<cool::UInt32>();
96 if (
static_cast<cool::UInt32
>(
blob.size() ) != 2 * (nb1 + nb2 + ncol)) {
98 ss <<
"BCIDmasks length " <<
blob.size() <<
" != 2 * " << (nb1+nb2+ncol) <<
"!";
108 for (
unsigned int i = 0;
i < nb1;
i++,
p++) {
114 for (
unsigned int i = 0;
i < nb2;
i++,
p++) {
122 for (
unsigned int i = 0;
i < ncol;
i++,
p++) {
129 for (
unsigned int i = (nb1+nb2+ncol);
i <
blob.size();
i++,
p++) {
◆ error
std::string FillParamsUtil::error |
◆ m_beam1Bunches
std::vector<unsigned int> FillParamsUtil::m_beam1Bunches |
|
private |
◆ m_beam2Bunches
std::vector<unsigned int> FillParamsUtil::m_beam2Bunches |
|
private |
◆ m_luminousBunches
std::vector<unsigned int> FillParamsUtil::m_luminousBunches |
|
private |
The documentation for this class was generated from the following files: