Project
Loading...
Searching...
No Matches
o2::fwdalign::MilleRecordReader Class Reference

#include <MilleRecordReader.h>

Public Member Functions

 MilleRecordReader ()
 constructor
 
virtual ~MilleRecordReader ()
 destructor
 
void changeDataBranchName (const bool isConstraintsRec=true)
 choose data records filename
 
void connectToChain (TChain *ch)
 connect to input TChain
 
bool isReaderOk () const
 check if connect to input TChain went well
 
bool isReadEntryOk () const
 check if the last operation readNextEntry() was ok
 
o2::fwdalign::MillePedeRecordgetRecord ()
 return the record
 
long getCurrentDataID () const
 return the ID of the current record in the TTree
 
void readNextEntry (const bool doPrint=false)
 read the next entry in the tree
 
void readEntry (const Long_t id, const bool doPrint=false)
 read the entry # id in the tree
 
Long64_t getNEntries () const
 return the number of entries
 
TString getDataTreeName () const
 return the name of record data tree
 

Protected Member Functions

 ClassDef (MilleRecordReader, 0)
 

Protected Attributes

TChain * mDataTree
 TChain container that stores the records.
 
bool mIsSuccessfulInit
 boolean to monitor the success of the initialization
 
bool mIsConstraintsRec
 boolean to know if these are data records or constraints records
 
bool mIsReadEntryOk
 boolean to know if the last operation readNextEntry() was ok
 
TString mDataTreeName
 name of the record TTree/TChain
 
TString mDataBranchName
 name of the branch where records will be stored
 
o2::fwdalign::MillePedeRecordmRecord
 the running record
 
Long64_t mCurrentDataID
 counter indicating the ID of the current record in the tree
 
Long64_t mNEntries
 number of entries in the read TChain
 

Detailed Description

Definition at line 32 of file MilleRecordReader.h.

Constructor & Destructor Documentation

◆ MilleRecordReader()

MilleRecordReader::MilleRecordReader ( )

constructor

Definition at line 23 of file MilleRecordReader.cxx.

◆ ~MilleRecordReader()

MilleRecordReader::~MilleRecordReader ( )
virtual

destructor

Definition at line 38 of file MilleRecordReader.cxx.

Member Function Documentation

◆ changeDataBranchName()

void MilleRecordReader::changeDataBranchName ( const bool  isConstraintsRec = true)

choose data records filename

Definition at line 49 of file MilleRecordReader.cxx.

◆ ClassDef()

o2::fwdalign::MilleRecordReader::ClassDef ( MilleRecordReader  ,
 
)
protected

◆ connectToChain()

void MilleRecordReader::connectToChain ( TChain *  ch)

connect to input TChain

Definition at line 60 of file MilleRecordReader.cxx.

◆ getCurrentDataID()

long o2::fwdalign::MilleRecordReader::getCurrentDataID ( ) const
inline

return the ID of the current record in the TTree

Definition at line 57 of file MilleRecordReader.h.

◆ getDataTreeName()

TString o2::fwdalign::MilleRecordReader::getDataTreeName ( ) const
inline

return the name of record data tree

Definition at line 69 of file MilleRecordReader.h.

◆ getNEntries()

Long64_t o2::fwdalign::MilleRecordReader::getNEntries ( ) const
inline

return the number of entries

Definition at line 66 of file MilleRecordReader.h.

◆ getRecord()

o2::fwdalign::MillePedeRecord * o2::fwdalign::MilleRecordReader::getRecord ( )
inline

return the record

Definition at line 54 of file MilleRecordReader.h.

◆ isReadEntryOk()

bool o2::fwdalign::MilleRecordReader::isReadEntryOk ( ) const
inline

check if the last operation readNextEntry() was ok

Definition at line 51 of file MilleRecordReader.h.

◆ isReaderOk()

bool o2::fwdalign::MilleRecordReader::isReaderOk ( ) const
inline

check if connect to input TChain went well

Definition at line 48 of file MilleRecordReader.h.

◆ readEntry()

void MilleRecordReader::readEntry ( const Long_t  id,
const bool  doPrint = false 
)

read the entry # id in the tree

Definition at line 116 of file MilleRecordReader.cxx.

◆ readNextEntry()

void MilleRecordReader::readNextEntry ( const bool  doPrint = false)

read the next entry in the tree

Definition at line 95 of file MilleRecordReader.cxx.

Member Data Documentation

◆ mCurrentDataID

Long64_t o2::fwdalign::MilleRecordReader::mCurrentDataID
protected

counter indicating the ID of the current record in the tree

Definition at line 79 of file MilleRecordReader.h.

◆ mDataBranchName

TString o2::fwdalign::MilleRecordReader::mDataBranchName
protected

name of the branch where records will be stored

Definition at line 77 of file MilleRecordReader.h.

◆ mDataTree

TChain* o2::fwdalign::MilleRecordReader::mDataTree
protected

TChain container that stores the records.

Definition at line 72 of file MilleRecordReader.h.

◆ mDataTreeName

TString o2::fwdalign::MilleRecordReader::mDataTreeName
protected

name of the record TTree/TChain

Definition at line 76 of file MilleRecordReader.h.

◆ mIsConstraintsRec

bool o2::fwdalign::MilleRecordReader::mIsConstraintsRec
protected

boolean to know if these are data records or constraints records

Definition at line 74 of file MilleRecordReader.h.

◆ mIsReadEntryOk

bool o2::fwdalign::MilleRecordReader::mIsReadEntryOk
protected

boolean to know if the last operation readNextEntry() was ok

Definition at line 75 of file MilleRecordReader.h.

◆ mIsSuccessfulInit

bool o2::fwdalign::MilleRecordReader::mIsSuccessfulInit
protected

boolean to monitor the success of the initialization

Definition at line 73 of file MilleRecordReader.h.

◆ mNEntries

Long64_t o2::fwdalign::MilleRecordReader::mNEntries
protected

number of entries in the read TChain

Definition at line 80 of file MilleRecordReader.h.

◆ mRecord

o2::fwdalign::MillePedeRecord* o2::fwdalign::MilleRecordReader::mRecord
protected

the running record

Definition at line 78 of file MilleRecordReader.h.


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