ATLAS Offline Software
Loading...
Searching...
No Matches
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
11CoraCoolObject::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
15CoraCoolObject::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
22void CoraCoolObject::add(const coral::AttributeList& data) {
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}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
cool::ValidityKey until() const
cool::ValidityKey m_since
cool::ValidityKey since() const
const coral::AttributeListSpecification * m_spec
void add(const coral::AttributeList &data)
AttrListVec m_payload
CoraCoolObject(const cool::ValidityKey &since, const cool::ValidityKey &until, const cool::ChannelId &chan)
cool::ValidityKey m_until
cool::ChannelId m_chan