Utility class to to decode data from FILLPARAMS COOL folder
More...
#include <BunchDataUtil.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 22 of file BunchDataUtil.h.
◆ BunchDataUtil()
BunchDataUtil::BunchDataUtil |
( |
| ) |
|
◆ bunch1Data()
const std::vector< unsigned int > & BunchDataUtil::bunch1Data |
( |
| ) |
const |
◆ bunch2Data()
const std::vector< unsigned int > & BunchDataUtil::bunch2Data |
( |
| ) |
const |
◆ clear()
void BunchDataUtil::clear |
( |
| ) |
|
◆ nBunch1Data()
unsigned int BunchDataUtil::nBunch1Data |
( |
| ) |
const |
◆ nBunch2Data()
unsigned int BunchDataUtil::nBunch2Data |
( |
| ) |
const |
◆ nx1Storage() [1/2]
int BunchDataUtil::nx1Storage |
( |
const cool::Record & |
rec | ) |
|
◆ nx1Storage() [2/2]
int BunchDataUtil::nx1Storage |
( |
const coral::AttributeList & |
attrList1 | ) |
const |
Definition at line 64 of file BunchDataUtil.cxx.
69 if (blobBC.size() == 0) {
72 unsigned int tmk = *
k;
◆ nx2Storage() [1/2]
int BunchDataUtil::nx2Storage |
( |
const cool::Record & |
rec | ) |
|
◆ nx2Storage() [2/2]
int BunchDataUtil::nx2Storage |
( |
const coral::AttributeList & |
attrList1 | ) |
const |
Definition at line 94 of file BunchDataUtil.cxx.
98 if (blobBC.size() == 0) {
101 unsigned int tmk = *
k;
◆ ny1Storage() [1/2]
int BunchDataUtil::ny1Storage |
( |
const cool::Record & |
rec | ) |
|
◆ ny1Storage() [2/2]
int BunchDataUtil::ny1Storage |
( |
const coral::AttributeList & |
attrList1 | ) |
const |
Definition at line 79 of file BunchDataUtil.cxx.
84 if (blobBC.size() == 0) {
87 unsigned int tmk = *
k;
◆ ny2Storage() [1/2]
int BunchDataUtil::ny2Storage |
( |
const cool::Record & |
rec | ) |
|
◆ ny2Storage() [2/2]
int BunchDataUtil::ny2Storage |
( |
const coral::AttributeList & |
attrList1 | ) |
const |
Definition at line 107 of file BunchDataUtil.cxx.
109 const uint8_t *
k=
static_cast<const uint8_t*
>(blobBC.startingAddress());
112 if (blobBC.size() == 0) {
115 unsigned int tmk = *
k;
◆ setCollidingBCID1s()
bool BunchDataUtil::setCollidingBCID1s |
( |
std::vector< unsigned int > & |
p | ) |
|
◆ setCollidingBCID2s()
bool BunchDataUtil::setCollidingBCID2s |
( |
std::vector< unsigned int > & |
pp | ) |
|
◆ setValue() [1/2]
bool BunchDataUtil::setValue |
( |
const cool::Record & |
rec | ) |
|
◆ setValue() [2/2]
bool BunchDataUtil::setValue |
( |
const coral::AttributeList & |
attrList1 | ) |
|
Definition at line 142 of file BunchDataUtil.cxx.
148 if (attrList1[
"B1BunchIntensities"].isNull()) {
149 error =
"BunchCode is NULL!";
153 cool::Float AI1 = attrList1[
"B1BunchAverage"].data<cool::Float>();
154 cool::Float AI2 = attrList1[
"B2BunchAverage"].data<cool::Float>();
160 std::cout <<
"Dette skulle vaere beam1 " << std::endl;
163 std::cout <<
"This should be beam 2 " << std::endl;
◆ error
std::string BunchDataUtil::error |
◆ m_blobUtil
◆ m_bunch1Data
std::vector<unsigned int> BunchDataUtil::m_bunch1Data |
|
private |
◆ m_bunch2Data
std::vector<unsigned int> BunchDataUtil::m_bunch2Data |
|
private |
◆ m_collidingBCID1s
std::vector<unsigned int> BunchDataUtil::m_collidingBCID1s |
|
private |
◆ m_collidingBCID2s
std::vector<unsigned int> BunchDataUtil::m_collidingBCID2s |
|
private |
The documentation for this class was generated from the following files: