Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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&);
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
json
nlohmann::json json
Definition: HistogramDef.cxx:9
CoralUtilities::compressBlob
bool compressBlob(const char *, coral::Blob &)
Definition: blobaccess.cxx:20
tree
TChain * tree
Definition: tile_monitor.h:30
python.subdetectors.tile.Blob
Blob
Definition: tile.py:17
CoralUtilities::readBlobAsJson
bool readBlobAsJson(const coral::Blob &, nlohmann::json &)
Definition: blobaccess.cxx:94
coral
Definition: ISecondaryEventSelector.h:19
CoralUtilities::writeBlobFromTTree
bool writeBlobFromTTree(TTree *, coral::Blob &)
Definition: blobaccess.cxx:39
CoralUtilities::readBlobAsString
bool readBlobAsString(const coral::Blob &, std::string &)
Definition: blobaccess.cxx:85
CoralUtilities::uncompressBlob
bool uncompressBlob(const coral::Blob &, std::unique_ptr< unsigned char[]> &, unsigned long &)
Definition: blobaccess.cxx:61
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CoralUtilities::writeBlobFromJson
bool writeBlobFromJson(const nlohmann::json &, coral::Blob &)
Definition: blobaccess.cxx:35
CoralUtilities
Definition: blobaccess.h: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:107
CoralUtilities::writeBlobFromString
bool writeBlobFromString(const std::string_view, coral::Blob &)
Definition: blobaccess.cxx:31
CaloCondBlobAlgs_fillNoiseFromASCII.blob
blob
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:96