ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
CoralUtilities
CoralUtilities
blobaccess.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CORALUTILITIES_BLOBACCESS_H
6
#define CORALUTILITIES_BLOBACCESS_H
7
8
#include <string>
9
#include <memory>
10
#include <string_view>
11
#include "nlohmann/json.hpp"
12
13
class
TTree;
14
class
TMemFile;
15
16
namespace
coral
{
17
class
Blob
;
18
}
19
20
namespace
CoralUtilities
{
21
22
bool
compressBlob
(
const
char
* , coral::Blob&);
23
bool
writeBlobFromString
(
const
std::string_view, coral::Blob&);
24
bool
writeBlobFromJson
(
const
nlohmann::json& , coral::Blob&);
25
bool
writeBlobFromTTree
( TTree* , coral::Blob&);
26
27
bool
uncompressBlob
(
const
coral::Blob&, std::unique_ptr<
unsigned
char
[]>&,
unsigned
long
&);
28
bool
readBlobAsString
(
const
coral::Blob&, std::string& );
29
bool
readBlobAsJson
(
const
coral::Blob&, nlohmann::json& );
37
bool
readBlobAsTTree
(
const
coral::Blob& blob, std::unique_ptr<TTree>&
tree
,
38
const
std::string_view name =
"tree"
);
39
40
}
41
42
#endif
CoralUtilities
Definition
blobaccess.h:20
CoralUtilities::writeBlobFromJson
bool writeBlobFromJson(const nlohmann::json &, coral::Blob &)
Definition
blobaccess.cxx:37
CoralUtilities::readBlobAsString
bool readBlobAsString(const coral::Blob &, std::string &)
Definition
blobaccess.cxx:87
CoralUtilities::writeBlobFromTTree
bool writeBlobFromTTree(TTree *, coral::Blob &)
Definition
blobaccess.cxx:41
CoralUtilities::uncompressBlob
bool uncompressBlob(const coral::Blob &, std::unique_ptr< unsigned char[]> &, unsigned long &)
Definition
blobaccess.cxx:63
CoralUtilities::compressBlob
bool compressBlob(const char *, coral::Blob &)
Definition
blobaccess.cxx:20
CoralUtilities::readBlobAsTTree
bool readBlobAsTTree(const coral::Blob &blob, std::unique_ptr< TTree > &tree, const std::string_view name="tree")
Interprets the coral::Blob as a TTree instance.
Definition
blobaccess.cxx:109
CoralUtilities::writeBlobFromString
bool writeBlobFromString(const std::string_view, coral::Blob &)
Definition
blobaccess.cxx:33
CoralUtilities::readBlobAsJson
bool readBlobAsJson(const coral::Blob &, nlohmann::json &)
Definition
blobaccess.cxx:96
coral
Definition
ISecondaryEventSelector.h:19
python.subdetectors.tile.Blob
Blob
Definition
tile.py:17
tree
TChain * tree
Definition
tile_monitor.h:30
Generated on
for ATLAS Offline Software by
1.17.0