16#ifndef ALICEO2_TREESTREAM_H
17#define ALICEO2_TREESTREAM_H
47 const TClass*
cls =
nullptr;
48 const void*
ptr =
nullptr;
59 Double_t
getSize() {
return mTree.GetZipBytes(); }
63 const char*
getName()
const {
return mTree.GetName(); }
65 int getID()
const {
return mID; }
160 template <
class T,
typename std::enable_if<!std::is_po
inter<GPU
generic() T>
::value,
bool>
::type* =
nullptr>
172 std::vector<TreeDataElement> mElements;
173 std::vector<TBranch*> mBranches;
175 int mCurrentIndex = 0;
177 int mNextNameCounter = 0;
188 TClass* pClass =
nullptr;
190 pClass = TClass::GetClass(
typeid(*obj));
193 if (mCurrentIndex >=
static_cast<int>(mElements.size())) {
194 mElements.emplace_back();
195 auto& element = mElements.back();
196 element.cls = pClass;
197 TString
name = mNextName;
199 if (mNextNameCounter > 0) {
200 name += mNextNameCounter;
203 name = TString::Format(
"B%d",
static_cast<int>(mElements.size()));
205 element.name =
name.Data();
208 auto& element = mElements[mCurrentIndex];
210 element.cls = pClass;
212 if (element.cls != pClass && pClass) {
Class for time synchronization of RawReader instances.
TreeStream & operator<<(const T *obj)
Int_t CheckIn(Char_t type, const void *pointer)
const char * getName() const
TreeStream & operator<<(const ULong64_t &l)
TreeStream & operator<<(const Char_t &c)
TreeStream & operator<<(const Short_t &h)
TreeStream & operator<<(const Double_t &d)
TreeStream & operator<<(const UInt_t &i)
TreeStream & operator<<(const UChar_t &c)
TreeStream & operator<<(const Long64_t &l)
TreeStream & operator<<(const int8_t &i)
TreeStream & operator<<(const Int_t &i)
virtual ~TreeStream()=default
TreeStream & operator<<(const Bool_t &b)
TreeStream & operator<<(const UShort_t &h)
TreeStream & operator<<(const ULong_t &l)
TreeStream & operator<<(const Long_t &l)
TreeStream & operator<<(const Float_t &f)
TreeStream & operator<<(const T &obj)
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
GLsizei const GLfloat * value
GLint GLint GLsizei GLint GLenum GLenum type
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Common utility functions.
std::string name
name of the element
const void * ptr
pointer to element
const TClass * cls
data type pointer