16#ifndef ALICEO2_FWDALIGN_MILLERECORD_WRITER_H
17#define ALICEO2_FWDALIGN_MILLERECORD_WRITER_H
Class to store the data of single track processing.
Store residuals and local/global deriavtives from a single track processing.
TString mDataFileName
name of the output file that will store the record TTree
virtual ~MilleRecordWriter()
destructor
void setCyclicAutoSave(const long nEntries)
Set the number of entries to be used by TTree::AutoSave()
bool isInitOk() const
check if init went well
void setDataFileName(TString fname)
choose data records filename
Long64_t mCurrentDataID
counter increasing when adding a record to the tree
MilleRecordWriter()
constructor
void init()
init output file and tree
TTree * mDataTree
TTree container that stores the records.
bool mIsSuccessfulInit
boolean to monitor the success of the initialization
o2::fwdalign::MillePedeRecord * mRecord
the running record
bool mIsConstraintsRec
boolean to know if these are data records or constraints records
TFile * mDataFile
output file where the records are written
TString mDataTreeName
name of the record TTree
void setRecordRun(int run)
assign run
TString mDataBranchName
name of the branch where records will be stored
ClassDef(MilleRecordWriter, 0)
long mNEntriesAutoSave
max entries in the buffer after which TTree::AutoSave() is automatically used
void terminate()
write tree and close output file
Long64_t getCurrentDataID() const
return the ID of the current record in the TTree
void changeDataBranchName(const bool isConstraintsRec=true)
choose data records filename
void setRecordWeight(double wgh)
assign weight
void fillRecordTree(const bool doPrint=false)
fill tree
o2::fwdalign::MillePedeRecord * getRecord()
return the record
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...