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 92 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 16 of file AlignmentIORootBase.cc.
References bWrite, createBranches(), lut2db_cfg::filename, align_cfg::iteration, myFile, 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, AlignmentParametersIORoot, HIPUserVariablesIORoot, AlignableDataIORoot, and AlignmentCorrelationsIORoot.
Referenced by openRoot().
|
protected |
test if file is existing and if so, what the highest iteration is
Definition at line 108 of file AlignmentIORootBase.cc.
References itermax, and treeName().
Referenced by openRoot(), and edmIntegrityCheck.IntegrityCheck::testFileTimeOut().
|
protected |
compose tree name
Definition at line 129 of file AlignmentIORootBase.cc.
Referenced by openRoot(), and testFile().
|
protected |
Definition at line 41 of file AlignmentIORootBase.h.
Referenced by AlignmentParametersIORoot::close(), closeRoot(), and openRoot().
|
staticprotected |
Definition at line 44 of file AlignmentIORootBase.h.
Referenced by testFile().
|
private |
Definition at line 47 of file AlignmentIORootBase.h.
Referenced by closeRoot(), openRoot(), and ~AlignmentIORootBase().
|
staticprotected |
Definition at line 43 of file AlignmentIORootBase.h.
Referenced by AlignmentCorrelationsIORoot::read().
|
protected |
Definition at line 38 of file AlignmentIORootBase.h.
Referenced by eventstfile.Events::__iter__(), svgfig.SVG::__str__(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), AlignmentParametersIORoot::close(), closeRoot(), AlignmentCorrelationsIORoot::createBranches(), AlignableDataIORoot::createBranches(), AlignmentParametersIORoot::createBranches(), HIPUserVariablesIORoot::createBranches(), MillePedeVariablesIORoot::createBranches(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), TkAlMap.TkAlMap::detect_tracker_version(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), AlignableDataIORoot::findEntry(), HIPUserVariablesIORoot::findEntry(), openRoot(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), AlignmentCorrelationsIORoot::read(), AlignableDataIORoot::readAbsRaw(), AlignmentParametersIORoot::readOne(), HIPUserVariablesIORoot::readOne(), MillePedeVariablesIORoot::readOne(), AlignableDataIORoot::readRelRaw(), python.cmstools.EventTree::SetAlias(), AlignmentCorrelationsIORoot::setBranchAddresses(), AlignableDataIORoot::setBranchAddresses(), HIPUserVariablesIORoot::setBranchAddresses(), AlignmentParametersIORoot::setBranchAddresses(), MillePedeVariablesIORoot::setBranchAddresses(), eventstfile.Events::to(), AlignmentCorrelationsIORoot::write(), AlignableDataIORoot::writeAbsRaw(), MillePedeVariablesIORoot::writeMillePedeVariables(), AlignmentParametersIORoot::writeOne(), HIPUserVariablesIORoot::writeOne(), MillePedeVariablesIORoot::writeOne(), and AlignableDataIORoot::writeRelRaw().
|
protected |
Definition at line 39 of file AlignmentIORootBase.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot(), AlignmentCorrelationsIORoot::AlignmentCorrelationsIORoot(), AlignmentParametersIORoot::AlignmentParametersIORoot(), HIPUserVariablesIORoot::HIPUserVariablesIORoot(), MillePedeVariablesIORoot::MillePedeVariablesIORoot(), and openRoot().
|
protected |
Definition at line 40 of file AlignmentIORootBase.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot(), AlignmentCorrelationsIORoot::AlignmentCorrelationsIORoot(), AlignmentParametersIORoot::AlignmentParametersIORoot(), HIPUserVariablesIORoot::HIPUserVariablesIORoot(), MillePedeVariablesIORoot::MillePedeVariablesIORoot(), and openRoot().