epic-drich-beam-test-analysis
ePIC dRICH beam test analysis framework
Loading...
Searching...
No Matches
alcor_data_streamer Class Reference

Public Member Functions

Construction & destruction
 alcor_data_streamer (const std::string &fname)
 Open fname and bind to the "alcor" TTree.
 
 alcor_data_streamer (alcor_data_streamer &&other) noexcept
 Transfer ownership of file/tree resources from other.
 
alcor_data_streameroperator= (alcor_data_streamer &&other) noexcept
 Move-assign; source is left invalid after the operation.
 
 alcor_data_streamer (const alcor_data_streamer &)=delete
 
alcor_data_streameroperator= (const alcor_data_streamer &)=delete
 
 ~alcor_data_streamer () noexcept
 Reset branch addresses, close and delete the underlying TFile.
 
Status checks
bool is_valid () const noexcept
 true if the file and TTree were opened successfully.
 
bool eof () const noexcept
 true once the cursor has passed the last entry.
 
Accessors
std::string get_filename () const noexcept
 Path of the underlying ROOT file.
 
const alcor_datacurrent () const noexcept
 Read-only view of the entry last loaded by read_next().
 
alcor_datacurrent () noexcept
 Mutable view of the entry last loaded by read_next().
 
Long64_t entry () const noexcept
 Zero-based index of the entry that will be read next.
 
Long64_t entries () const noexcept
 Total number of entries in the TTree.
 
Reading
bool read_next () noexcept
 Load the next entry into current(); returns false at EOF or on error.
 
void rewind () noexcept
 Reset the cursor to 0 without re-opening the file.
 

Constructor & Destructor Documentation

◆ alcor_data_streamer() [1/2]

alcor_data_streamer::alcor_data_streamer ( const std::string &  fname)
explicit

Open fname and bind to the "alcor" TTree.

Parameters
fnamePath to the ROOT file to read.

◆ alcor_data_streamer() [2/2]

alcor_data_streamer::alcor_data_streamer ( alcor_data_streamer &&  other)
noexcept

Transfer ownership of file/tree resources from other.

Parameters
otherSource streamer; left in an invalid state after the move.

Member Function Documentation

◆ operator=()

alcor_data_streamer & alcor_data_streamer::operator= ( alcor_data_streamer &&  other)
noexcept

Move-assign; source is left invalid after the operation.

Parameters
otherSource streamer to move from.
Returns
Reference to *this.

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