Project
Loading...
Searching...
No Matches
o2::tpc::CMVFileHandle Struct Reference

#include <CMVHelper.h>

Public Member Functions

bool open (const std::string &path)
 Open path and set up branch addresses. Returns false on any error.
 
const CMVPerTFgetEntry (long long iEntry)
 Load entry iEntry and return a pointer to the decoded CMVPerTF, or nullptr on error.
 
void close ()
 Release all resources.
 

Public Attributes

TFile * file {nullptr}
 
TTree * tree {nullptr}
 
bool isCompressed {false}
 
CMVPerTFCompressedtfCompressed {nullptr}
 
CMVPerTFtfRaw {nullptr}
 
CMVPerTFtfDecoded {nullptr}
 scratch buffer used when decompressing
 
long firstTFInTree {-1}
 first global TF index from tree UserInfo ("firstTF"); -1 if absent
 
long lastTFInTree {-1}
 last global TF index from tree UserInfo ("lastTF"); -1 if absent
 

Detailed Description

Definition at line 30 of file CMVHelper.h.

Member Function Documentation

◆ close()

void o2::tpc::CMVFileHandle::close ( )

Release all resources.

Definition at line 81 of file CMVHelper.cxx.

◆ getEntry()

const CMVPerTF * o2::tpc::CMVFileHandle::getEntry ( long long  iEntry)

Load entry iEntry and return a pointer to the decoded CMVPerTF, or nullptr on error.

Definition at line 68 of file CMVHelper.cxx.

◆ open()

bool o2::tpc::CMVFileHandle::open ( const std::string &  path)

Open path and set up branch addresses. Returns false on any error.

Definition at line 26 of file CMVHelper.cxx.

Member Data Documentation

◆ file

TFile* o2::tpc::CMVFileHandle::file {nullptr}

Definition at line 31 of file CMVHelper.h.

◆ firstTFInTree

long o2::tpc::CMVFileHandle::firstTFInTree {-1}

first global TF index from tree UserInfo ("firstTF"); -1 if absent

Definition at line 37 of file CMVHelper.h.

◆ isCompressed

bool o2::tpc::CMVFileHandle::isCompressed {false}

Definition at line 33 of file CMVHelper.h.

◆ lastTFInTree

long o2::tpc::CMVFileHandle::lastTFInTree {-1}

last global TF index from tree UserInfo ("lastTF"); -1 if absent

Definition at line 38 of file CMVHelper.h.

◆ tfCompressed

CMVPerTFCompressed* o2::tpc::CMVFileHandle::tfCompressed {nullptr}

Definition at line 34 of file CMVHelper.h.

◆ tfDecoded

CMVPerTF* o2::tpc::CMVFileHandle::tfDecoded {nullptr}

scratch buffer used when decompressing

Definition at line 36 of file CMVHelper.h.

◆ tfRaw

CMVPerTF* o2::tpc::CMVFileHandle::tfRaw {nullptr}

Definition at line 35 of file CMVHelper.h.

◆ tree

TTree* o2::tpc::CMVFileHandle::tree {nullptr}

Definition at line 32 of file CMVHelper.h.


The documentation for this struct was generated from the following files: