|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "CoralBase/AttributeListException.h"
10 #include "CoralBase/Blob.h"
12 #include "TBufferFile.h"
17 ,
const std::string&
name
21 declareInterface<ILArHVPathologyDbTool>(
this);
29 return StatusCode::SUCCESS;
34 return StatusCode::SUCCESS;
42 (*attrList)[
"blobVersion"].data<
unsigned int>()=(
unsigned int)0;
45 TClass*
klass = TClass::GetClass(
"LArHVPathologiesDb");
53 TBufferFile buf(TBuffer::kWrite);
55 if(buf.WriteObjectAny(&pathologyContainer,
klass)!=1) {
60 blob.resize(buf.Length());
61 void* adr =
blob.startingAddress();
62 memcpy(adr,buf.Buffer(),buf.Length());
70 coral::AttributeListSpecification*
spec =
new coral::AttributeListSpecification();
71 spec->extend(
"blobVersion",
"unsigned int");
72 spec->extend(
"Constants",
"blob");
81 const unsigned blobVersion=attrList[
"blobVersion"].data<
unsigned int>();
89 TClass*
klass = TClass::GetClass(
"LArHVPathologiesDb");
98 TBufferFile buf(TBuffer::kRead,
blob.size(),
data,
false);
101 }
catch (coral::AttributeListException &
e) {
char data[hepevt_bytes_allocation_ATLAS]
This class describe the base functionalities of a HypoTool used by the ComboAlg.
::StatusCode StatusCode
StatusCode definition for legacy code.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
#define ATLAS_THREAD_SAFE