ATLAS Offline Software
Loading...
Searching...
No Matches
BunchLumisUtil Class Reference

#include <BunchLumisUtil.h>

Collaboration diagram for BunchLumisUtil:

Public Member Functions

 BunchLumisUtil ()
unsigned int nBunchLumis () const
int nxStorage (const cool::Record &rec)
int nyStorage (const cool::Record &rec)
int nxStorage (const coral::AttributeList &attrList1) const
int nyStorage (const coral::AttributeList &attrList1) const
const std::vector< double > & bunchLumis () const
void clear ()
bool setValue (const coral::AttributeList &attrList1)
bool setValue (const cool::Record &rec)
bool setCollidingBCIDs (std::vector< unsigned int > &)

Public Attributes

std::string error

Private Attributes

std::vector< double > m_bunchLumis
std::vector< unsigned int > m_collidingBCIDs
class LumiBlobUtil m_blobUtil

Detailed Description

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 BunchLumisUtil.h.

Constructor & Destructor Documentation

◆ BunchLumisUtil()

BunchLumisUtil::BunchLumisUtil ( )

Definition at line 14 of file BunchLumisUtil.cxx.

14 {
15 // Clear vectors
16 this->clear();
17 error.clear();
18}
std::string error

Member Function Documentation

◆ bunchLumis()

const std::vector< double > & BunchLumisUtil::bunchLumis ( ) const

Definition at line 53 of file BunchLumisUtil.cxx.

53 {
54 return m_bunchLumis;
55}
std::vector< double > m_bunchLumis

◆ clear()

void BunchLumisUtil::clear ( )

Definition at line 22 of file BunchLumisUtil.cxx.

22 {
23 m_bunchLumis.clear();
24}

◆ nBunchLumis()

unsigned int BunchLumisUtil::nBunchLumis ( ) const

Definition at line 28 of file BunchLumisUtil.cxx.

28 {
29 return m_bunchLumis.size();
30}

◆ nxStorage() [1/2]

int BunchLumisUtil::nxStorage ( const cool::Record & rec)

Definition at line 33 of file BunchLumisUtil.cxx.

33 {
34 return nxStorage(rec.attributeList());
35}
int nxStorage(const cool::Record &rec)

◆ nxStorage() [2/2]

int BunchLumisUtil::nxStorage ( const coral::AttributeList & attrList1) const

Definition at line 43 of file BunchLumisUtil.cxx.

43 {
44 return m_blobUtil.xvalue(attrList1);
45}
class LumiBlobUtil m_blobUtil

◆ nyStorage() [1/2]

int BunchLumisUtil::nyStorage ( const cool::Record & rec)

Definition at line 38 of file BunchLumisUtil.cxx.

38 {
39 return nyStorage(rec.attributeList());
40}
int nyStorage(const cool::Record &rec)

◆ nyStorage() [2/2]

int BunchLumisUtil::nyStorage ( const coral::AttributeList & attrList1) const

Definition at line 48 of file BunchLumisUtil.cxx.

48 {
49 return m_blobUtil.yvalue(attrList1);
50}

◆ setCollidingBCIDs()

bool BunchLumisUtil::setCollidingBCIDs ( std::vector< unsigned int > & p)

Definition at line 64 of file BunchLumisUtil.cxx.

64 {
66 return true;
67}
std::vector< unsigned int > m_collidingBCIDs

◆ setValue() [1/2]

bool BunchLumisUtil::setValue ( const cool::Record & rec)

Definition at line 59 of file BunchLumisUtil.cxx.

59 {
60 return setValue(rec.attributeList());
61}
bool setValue(const coral::AttributeList &attrList1)

◆ setValue() [2/2]

bool BunchLumisUtil::setValue ( const coral::AttributeList & attrList1)

Definition at line 72 of file BunchLumisUtil.cxx.

72 {
73 // First, clear old values
74 this->clear();
75 error.clear();
76 // Check if there is any data
77 if (attrList1["BunchRawInstLum"].isNull()) {
78 error = "BunchCode is NULL!";
79 return false;
80 }
81
82 // Defines the blob and integer from COOL
83 cool::Float ARI = attrList1["AverageRawInstLum"].data<cool::Float>();
84 const coral::Blob &blobBC = attrList1["BunchRawInstLum"].data<coral::Blob>();
85
86 // m_blobUtil.setValue(attrList1);
87
88 m_blobUtil.unpack(ARI,blobBC,m_collidingBCIDs);
89
90 return true;
91}

Member Data Documentation

◆ error

std::string BunchLumisUtil::error

Definition at line 50 of file BunchLumisUtil.h.

◆ m_blobUtil

class LumiBlobUtil BunchLumisUtil::m_blobUtil
private

Definition at line 60 of file BunchLumisUtil.h.

◆ m_bunchLumis

std::vector<double> BunchLumisUtil::m_bunchLumis
private

Definition at line 56 of file BunchLumisUtil.h.

◆ m_collidingBCIDs

std::vector<unsigned int> BunchLumisUtil::m_collidingBCIDs
private

Definition at line 58 of file BunchLumisUtil.h.


The documentation for this class was generated from the following files: