ATLAS Offline Software
CoraCoolObject.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // CoraCoolObject.cxx
6 // implementation forCoraCoolObject
7 // Richard Hawkings, started 10/06
8 
10 
11 CoraCoolObject::CoraCoolObject(const cool::ValidityKey& since,
12  const cool::ValidityKey& until, const cool::ChannelId& chan):
13  m_since(since), m_until(until), m_chan(chan), m_spec(0) {}
14 
15 CoraCoolObject::CoraCoolObject(const cool::ValidityKey& since,
16  const cool::ValidityKey& until, const cool::ChannelId& chan,
17  const coral::AttributeListSpecification* spec):
18  m_since(since), m_until(until), m_chan(chan), m_spec(spec) {}
19 
21 
23  if (m_spec==0) {
24  m_payload.push_back(data);
25  } else {
26  m_payload.emplace_back(*m_spec,true);
27  m_payload.back().fastCopyData(data);
28  }
29 }
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
CoraCoolObject::CoraCoolObject
CoraCoolObject(const cool::ValidityKey &since, const cool::ValidityKey &until, const cool::ChannelId &chan)
Definition: CoraCoolObject.cxx:11
CoraCoolObjectIter::m_spec
coral::AttributeListSpecification * m_spec
Definition: CoraCoolObjectIter.h:113
CaloCondBlobAlgs_fillNoiseFromASCII.spec
spec
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:47
CoraCoolObject::~CoraCoolObject
~CoraCoolObject()
Definition: CoraCoolObject.cxx:20
CoraCoolObject::m_payload
AttrListVec m_payload
Definition: CoraCoolObject.h:53
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
CoraCoolObject::add
void add(const coral::AttributeList &data)
Definition: CoraCoolObject.cxx:22
CoraCoolObject.h
dq_defect_copy_defect_database.since
def since
Definition: dq_defect_copy_defect_database.py:54
dq_defect_copy_defect_database.until
def until
Definition: dq_defect_copy_defect_database.py:55
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
CoraCoolObject::m_spec
const coral::AttributeListSpecification * m_spec
Definition: CoraCoolObject.h:54