ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
BunchLumisUtil Class Reference

Utility class to to decode data from FILLPARAMS COOL folder
More...

#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 }

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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ 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 
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 58 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:
BunchLumisUtil::clear
void clear()
Definition: BunchLumisUtil.cxx:22
BunchLumisUtil::nyStorage
int nyStorage(const cool::Record &rec)
Definition: BunchLumisUtil.cxx:38
BunchLumisUtil::m_bunchLumis
std::vector< double > m_bunchLumis
Definition: BunchLumisUtil.h:56
BunchLumisUtil::setValue
bool setValue(const coral::AttributeList &attrList1)
Definition: BunchLumisUtil.cxx:72
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
LumiBlobUtil::yvalue
int yvalue(const cool::Record &rec)
Definition: LumiBlobUtil.cxx:33
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LumiBlobUtil::xvalue
int xvalue(const cool::Record &rec)
Definition: LumiBlobUtil.cxx:28
BunchLumisUtil::m_blobUtil
class LumiBlobUtil m_blobUtil
Definition: BunchLumisUtil.h:60
BunchLumisUtil::m_collidingBCIDs
std::vector< unsigned int > m_collidingBCIDs
Definition: BunchLumisUtil.h:58
LumiBlobUtil::unpack
bool unpack(const cool::Float &ARI, const coral::Blob &blobBC, const std::vector< unsigned int > &PV)
Definition: LumiBlobUtil.cxx:90
error
Definition: IImpactPoint3dEstimator.h:70
BunchLumisUtil::nxStorage
int nxStorage(const cool::Record &rec)
Definition: BunchLumisUtil.cxx:33