ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
IOVDbNamespace::ReadFromFileMetaData Class Reference

#include <ReadFromFileMetaData.h>

Inheritance diagram for IOVDbNamespace::ReadFromFileMetaData:
Collaboration diagram for IOVDbNamespace::ReadFromFileMetaData:

Public Member Functions

 ReadFromFileMetaData ()=delete
 
 ReadFromFileMetaData (const ReadFromFileMetaData &)=delete
 
ReadFromFileMetaDataoperator= (const ReadFromFileMetaData &)=delete
 
 ReadFromFileMetaData (const IOVMetaDataContainer *m_metacon, const IOVTime &refTime, const bool useEpochTimestamp)
 
 ReadFromFileMetaData (const IOVMetaDataContainer *m_metacon, const cool::ValidityKey &refTimeKey, const bool useEpochTimestamp)
 
 ~ReadFromFileMetaData ()
 
bool isValid ()
 
IOVDbNamespace::FolderType folderType ()
 
CondAttrListCollectionattrListCollection ()
 
AthenaAttributeListattributeList ()
 
unsigned int numberOfObjects ()
 
std::string stringAddress ()
 
bool poolPayloadRequested ()
 
IOVRange range ()
 

Private Attributes

const IOVMetaDataContainerm_metaContainer {}
 
IOVTime m_referenceTime {}
 
const IOVPayloadContainerm_payload {}
 
CondAttrListCollectionm_pptr {}
 
AthenaAttributeListm_attrList {}
 
CondAttrListCollectionm_attrListColl {}
 
IOVDbNamespace::FolderType m_folderType {UNKNOWN}
 
bool m_newedPtr {}
 

Detailed Description

Definition at line 31 of file ReadFromFileMetaData.h.

Constructor & Destructor Documentation

◆ ReadFromFileMetaData() [1/4]

IOVDbNamespace::ReadFromFileMetaData::ReadFromFileMetaData ( )
delete

◆ ReadFromFileMetaData() [2/4]

IOVDbNamespace::ReadFromFileMetaData::ReadFromFileMetaData ( const ReadFromFileMetaData )
delete

◆ ReadFromFileMetaData() [3/4]

IOVDbNamespace::ReadFromFileMetaData::ReadFromFileMetaData ( const IOVMetaDataContainer m_metacon,
const IOVTime refTime,
const bool  useEpochTimestamp 
)

Definition at line 17 of file ReadFromFileMetaData.cxx.

18  :
19  m_metaContainer(container),
20  m_referenceTime(refTime) {
21  m_payload = (container) ? (container->payloadContainer()) : (nullptr);
22  if (m_payload){
24  if (pitr!=m_payload->end()){
25  m_pptr=*pitr;
26  } else {
27  m_pptr = new CondAttrListCollection(not useEpochTimestamp);
28  m_newedPtr=true;
29  }
31  }
32  }

◆ ReadFromFileMetaData() [4/4]

IOVDbNamespace::ReadFromFileMetaData::ReadFromFileMetaData ( const IOVMetaDataContainer m_metacon,
const cool::ValidityKey &  refTimeKey,
const bool  useEpochTimestamp 
)

Definition at line 34 of file ReadFromFileMetaData.cxx.

36  : ReadFromFileMetaData( container,
37  makeEpochOrRunLumi(refTimeKey,useEpochTimestamp),
38  useEpochTimestamp )
39  { }

◆ ~ReadFromFileMetaData()

IOVDbNamespace::ReadFromFileMetaData::~ReadFromFileMetaData ( )

Definition at line 41 of file ReadFromFileMetaData.cxx.

41  {
42  if (m_newedPtr) delete m_pptr;
43  }

Member Function Documentation

◆ attributeList()

AthenaAttributeList * IOVDbNamespace::ReadFromFileMetaData::attributeList ( )

Definition at line 102 of file ReadFromFileMetaData.cxx.

102  {
104  return m_attrList;
105  }

◆ attrListCollection()

CondAttrListCollection * IOVDbNamespace::ReadFromFileMetaData::attrListCollection ( )

Definition at line 94 of file ReadFromFileMetaData.cxx.

94  {
95  if ((m_folderType!=PoolRef) and (m_folderType!=AttrList)) {
97  }
98  return m_attrListColl;
99  }

◆ folderType()

IOVDbNamespace::FolderType IOVDbNamespace::ReadFromFileMetaData::folderType ( )

Definition at line 53 of file ReadFromFileMetaData.cxx.

53  {
54  return m_folderType;
55  }

◆ isValid()

bool IOVDbNamespace::ReadFromFileMetaData::isValid ( )

Definition at line 47 of file ReadFromFileMetaData.cxx.

47  {
48  return (m_metaContainer and m_payload);
49  }

◆ numberOfObjects()

unsigned int IOVDbNamespace::ReadFromFileMetaData::numberOfObjects ( )

Definition at line 58 of file ReadFromFileMetaData.cxx.

58  {
59  return m_pptr->size();
60  }

◆ operator=()

ReadFromFileMetaData& IOVDbNamespace::ReadFromFileMetaData::operator= ( const ReadFromFileMetaData )
delete

◆ poolPayloadRequested()

bool IOVDbNamespace::ReadFromFileMetaData::poolPayloadRequested ( )

Definition at line 80 of file ReadFromFileMetaData.cxx.

80  {
82  }

◆ range()

IOVRange IOVDbNamespace::ReadFromFileMetaData::range ( )

Definition at line 85 of file ReadFromFileMetaData.cxx.

85  {
87  return (m_pptr->iov_begin())->second;
88  } else {
89  return m_pptr->minRange();
90  }
91  }

◆ stringAddress()

std::string IOVDbNamespace::ReadFromFileMetaData::stringAddress ( )

Definition at line 63 of file ReadFromFileMetaData.cxx.

63  {
64  std::string strAddress{};
66  const coral::AttributeList& payload1=m_pptr->begin()->second;
67  if (m_folderType==PoolRef) {
68  // single channel with PoolRef
69  strAddress=payload1[0].data<std::string>();
70  } else {
71  // create an AthenaAttributeList for this data
72  strAddress="POOLContainer_AthenaAttributeList][CLID=x";
73  }
74  }
75  return strAddress;
76  }

Member Data Documentation

◆ m_attrList

AthenaAttributeList* IOVDbNamespace::ReadFromFileMetaData::m_attrList {}
private

Definition at line 55 of file ReadFromFileMetaData.h.

◆ m_attrListColl

CondAttrListCollection* IOVDbNamespace::ReadFromFileMetaData::m_attrListColl {}
private

Definition at line 56 of file ReadFromFileMetaData.h.

◆ m_folderType

IOVDbNamespace::FolderType IOVDbNamespace::ReadFromFileMetaData::m_folderType {UNKNOWN}
private

Definition at line 57 of file ReadFromFileMetaData.h.

◆ m_metaContainer

const IOVMetaDataContainer* IOVDbNamespace::ReadFromFileMetaData::m_metaContainer {}
private

Definition at line 51 of file ReadFromFileMetaData.h.

◆ m_newedPtr

bool IOVDbNamespace::ReadFromFileMetaData::m_newedPtr {}
private

Definition at line 58 of file ReadFromFileMetaData.h.

◆ m_payload

const IOVPayloadContainer* IOVDbNamespace::ReadFromFileMetaData::m_payload {}
private

Definition at line 53 of file ReadFromFileMetaData.h.

◆ m_pptr

CondAttrListCollection* IOVDbNamespace::ReadFromFileMetaData::m_pptr {}
private

Definition at line 54 of file ReadFromFileMetaData.h.

◆ m_referenceTime

IOVTime IOVDbNamespace::ReadFromFileMetaData::m_referenceTime {}
private

Definition at line 52 of file ReadFromFileMetaData.h.


The documentation for this class was generated from the following files:
CondAttrListCollection::minRange
const IOVRange & minRange() const
Current minimal IOVRange.
Definition: CondAttrListCollection.h:438
CondAttrListCollection::begin
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
Definition: CondAttrListCollection.h:309
IOVDbNamespace::PoolRefColl
@ PoolRefColl
Definition: FolderTypes.h:31
IOVDbNamespace::PoolRef
@ PoolRef
Definition: FolderTypes.h:30
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
IOVDbNamespace::makeEpochOrRunLumi
IOVTime makeEpochOrRunLumi(const cool::ValidityKey key, const bool timeIsEpoch)
Create an IOVTime in ns of epoch or run-lumi (determined by the bool) from a ValidityKey.
Definition: IOVDbCoolFunctions.cxx:87
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
IOVDbNamespace::ReadFromFileMetaData::m_attrListColl
CondAttrListCollection * m_attrListColl
Definition: ReadFromFileMetaData.h:56
IOVDbNamespace::ReadFromFileMetaData::m_payload
const IOVPayloadContainer * m_payload
Definition: ReadFromFileMetaData.h:53
IOVDbNamespace::ReadFromFileMetaData::m_newedPtr
bool m_newedPtr
Definition: ReadFromFileMetaData.h:58
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
IOVDbNamespace::ReadFromFileMetaData::m_pptr
CondAttrListCollection * m_pptr
Definition: ReadFromFileMetaData.h:54
CondAttrListCollection::iov_begin
iov_const_iterator iov_begin() const
Access to Chan/IOV pairs via iterators.
Definition: CondAttrListCollection.h:337
CondAttrListCollection::size
size_type size() const
number of Chan/AttributeList pairs
Definition: CondAttrListCollection.h:322
IOVPayloadContainer::const_iterator
payloadVec::const_iterator const_iterator
Definition: IOVPayloadContainer.h:39
IOVPayloadContainer::end
const_iterator end() const
End of payload vector.
Definition: IOVPayloadContainer.h:114
IOVDbNamespace::AttrList
@ AttrList
Definition: FolderTypes.h:28
IOVDbNamespace::ReadFromFileMetaData::m_folderType
IOVDbNamespace::FolderType m_folderType
Definition: ReadFromFileMetaData.h:57
IOVDbNamespace::ReadFromFileMetaData::ReadFromFileMetaData
ReadFromFileMetaData()=delete
IOVDbNamespace::determineFolderType
FolderType determineFolderType(const std::string &folderDescription, const std::string &spec, const std::vector< cool::ChannelId > &chans)
Determine folder type with optional check using clid service to check clid matches typename.
Definition: FolderTypes.cxx:17
IOVDbNamespace::ReadFromFileMetaData::m_metaContainer
const IOVMetaDataContainer * m_metaContainer
Definition: ReadFromFileMetaData.h:51
IOVDbNamespace::ReadFromFileMetaData::m_attrList
AthenaAttributeList * m_attrList
Definition: ReadFromFileMetaData.h:55
IOVPayloadContainer::find
const_iterator find(const IOVTime &time) const
find the first payload that has a IOVRange which includes the
Definition: IOVPayloadContainer.h:136
IOVDbNamespace::ReadFromFileMetaData::m_referenceTime
IOVTime m_referenceTime
Definition: ReadFromFileMetaData.h:52