Base class for ROOT-based I/O of Alignment parameters etc. More...
#include <AlignmentIORootBase.h>
Protected Member Functions | |
AlignmentIORootBase () | |
constructor More... | |
int | closeRoot (void) |
close IO More... | |
virtual void | createBranches (void)=0 |
create root branches More... | |
int | openRoot (const char *filename, int iteration, bool writemode) |
open IO More... | |
virtual void | setBranchAddresses (void)=0 |
set root branches More... | |
int | testFile (const char *filename, const TString &tname) |
test if file is existing and if so, what the highest iteration is More... | |
TString | treeName (int iter, const TString &tname) |
compose tree name More... | |
virtual | ~AlignmentIORootBase () |
destructor More... | |
Protected Attributes | |
bool | bWrite |
TTree * | tree |
TString | treename |
TString | treetxt |
Static Protected Attributes | |
static const int | itermax = 1000 |
static const int | nParMax = 20 |
Private Attributes | |
TFile * | myFile |
Base class for ROOT-based I/O of Alignment parameters etc.
Definition at line 11 of file AlignmentIORootBase.h.
|
inlineprotected |
|
protectedvirtual |
|
protected |
close IO
Definition at line 99 of file AlignmentIORootBase.cc.
References bWrite, myFile, and tree.
Referenced by AlignmentCorrelationsIORoot::close(), AlignableDataIORoot::close(), AlignmentParametersIORoot::close(), HIPUserVariablesIORoot::close(), and MillePedeVariablesIORoot::close().
|
protectedpure virtual |
create root branches
Implemented in MillePedeVariablesIORoot, HIPUserVariablesIORoot, AlignmentParametersIORoot, AlignableDataIORoot, and AlignmentCorrelationsIORoot.
Referenced by openRoot().
|
protected |
open IO
Definition at line 17 of file AlignmentIORootBase.cc.
References bWrite, createBranches(), lut2db_cfg::filename, align_cfg::iteration, myFile, NULL, setBranchAddresses(), testFile(), tree, treeName(), treename, treetxt, and TablePrint::write.
Referenced by AlignmentCorrelationsIORoot::open(), AlignableDataIORoot::open(), AlignmentParametersIORoot::open(), HIPUserVariablesIORoot::open(), and MillePedeVariablesIORoot::open().
|
protectedpure virtual |
set root branches
Implemented in MillePedeVariablesIORoot, HIPUserVariablesIORoot, AlignmentParametersIORoot, AlignableDataIORoot, and AlignmentCorrelationsIORoot.
Referenced by openRoot().
|
protected |
test if file is existing and if so, what the highest iteration is
Definition at line 116 of file AlignmentIORootBase.cc.
References itermax, NULL, and treeName().
Referenced by openRoot().
|
protected |
compose tree name
Definition at line 138 of file AlignmentIORootBase.cc.
Referenced by openRoot(), and testFile().
|
protected |
Definition at line 43 of file AlignmentIORootBase.h.
Referenced by AlignmentParametersIORoot::close(), closeRoot(), and openRoot().
|
staticprotected |
Definition at line 46 of file AlignmentIORootBase.h.
Referenced by testFile().
|
private |
Definition at line 49 of file AlignmentIORootBase.h.
Referenced by closeRoot(), openRoot(), and ~AlignmentIORootBase().
|
staticprotected |
Definition at line 45 of file AlignmentIORootBase.h.
Referenced by AlignmentCorrelationsIORoot::read().
|
protected |
Definition at line 40 of file AlignmentIORootBase.h.
Referenced by eventstfile.Events::__iter__(), svgfig.SVG::__str__(), AlignmentParametersIORoot::close(), closeRoot(), AlignmentCorrelationsIORoot::createBranches(), AlignableDataIORoot::createBranches(), AlignmentParametersIORoot::createBranches(), HIPUserVariablesIORoot::createBranches(), MillePedeVariablesIORoot::createBranches(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), AlignableDataIORoot::findEntry(), HIPUserVariablesIORoot::findEntry(), openRoot(), MetTreeProducer.MetTreeProducer::process(), AlignmentCorrelationsIORoot::read(), AlignableDataIORoot::readAbsRaw(), AlignmentParametersIORoot::readOne(), HIPUserVariablesIORoot::readOne(), MillePedeVariablesIORoot::readOne(), AlignableDataIORoot::readRelRaw(), python.cmstools.EventTree::SetAlias(), AlignmentCorrelationsIORoot::setBranchAddresses(), AlignableDataIORoot::setBranchAddresses(), AlignmentParametersIORoot::setBranchAddresses(), HIPUserVariablesIORoot::setBranchAddresses(), MillePedeVariablesIORoot::setBranchAddresses(), eventstfile.Events::to(), AlignmentCorrelationsIORoot::write(), AlignableDataIORoot::writeAbsRaw(), AlignmentParametersIORoot::writeOne(), HIPUserVariablesIORoot::writeOne(), MillePedeVariablesIORoot::writeOne(), and AlignableDataIORoot::writeRelRaw().
|
protected |
Definition at line 41 of file AlignmentIORootBase.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot(), AlignmentCorrelationsIORoot::AlignmentCorrelationsIORoot(), AlignmentParametersIORoot::AlignmentParametersIORoot(), HIPUserVariablesIORoot::HIPUserVariablesIORoot(), MillePedeVariablesIORoot::MillePedeVariablesIORoot(), and openRoot().
|
protected |
Definition at line 42 of file AlignmentIORootBase.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot(), AlignmentCorrelationsIORoot::AlignmentCorrelationsIORoot(), AlignmentParametersIORoot::AlignmentParametersIORoot(), HIPUserVariablesIORoot::HIPUserVariablesIORoot(), MillePedeVariablesIORoot::MillePedeVariablesIORoot(), and openRoot().