25 mIsSuccessfulInit(false),
26 mIsConstraintsRec(false),
27 mIsReadEntryOk(false),
28 mDataTreeName(
"o2sim"),
29 mDataBranchName(
"data"),
65 LOG(warning) <<
"MilleRecordReader::connectToChain() - input chain already initialized";
70 LOG(fatal) <<
"MilleRecordReader::connectToChain() - input chain is a null pointer";
73 Long64_t nEntries = ch->GetEntries();
75 LOG(fatal) <<
"MilleRecordReader::connectToChain() - input chain is empty";
83 "MilleRecordReader::connectToChain() - found %lld derivatives records",
87 "MilleRecordReader::connectToChain() - found %lld constraints records",
99 LOG(error) <<
"MilleRecordReader::readNextEntry() - aborted, connectToChain() was not ok !";
109 LOGF(info,
"MilleRecordReader::readNextEntry() - read entry %i",
mCurrentDataID);
120 LOG(error) <<
"MilleRecordReader::readEntry() - aborted, connectToChain() was not ok !";
129 LOGF(info,
"MilleRecordReader::readEntry() - read entry %i",
mCurrentDataID);
ClassImp(o2::fwdalign::MilleRecordReader)
Class dedicated to read MillePedeRecords from ROOT files.
Store residuals and local/global deriavtives from a single track processing.
void Print(const Option_t *opt="") const override
print itself
Long64_t mCurrentDataID
counter indicating the ID of the current record in the tree
void changeDataBranchName(const bool isConstraintsRec=true)
choose data records filename
o2::fwdalign::MillePedeRecord * mRecord
the running record
MilleRecordReader()
constructor
void readNextEntry(const bool doPrint=false)
read the next entry in the tree
TChain * mDataTree
TChain container that stores the records.
bool mIsReadEntryOk
boolean to know if the last operation readNextEntry() was ok
virtual ~MilleRecordReader()
destructor
bool mIsConstraintsRec
boolean to know if these are data records or constraints records
void readEntry(const Long_t id, const bool doPrint=false)
read the entry # id in the tree
bool mIsSuccessfulInit
boolean to monitor the success of the initialization
void connectToChain(TChain *ch)
connect to input TChain
bool isReaderOk() const
check if connect to input TChain went well
TString mDataBranchName
name of the branch where records will be stored
Long64_t mNEntries
number of entries in the read TChain
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"