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 | |
const static int | itermax = 1000 |
const static 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 |
constructor
Definition at line 14 of file AlignmentIORootBase.h.
|
protectedvirtual |
|
protected |
close IO
Definition at line 92 of file AlignmentIORootBase.cc.
References bWrite, and myFile.
Referenced by AlignmentCorrelationsIORoot::close(), AlignableDataIORoot::close(), AlignmentParametersIORoot::close(), HIPUserVariablesIORoot::close(), and MillePedeVariablesIORoot::close().
|
protectedpure virtual |
create root branches
Implemented in HIPUserVariablesIORoot, AlignmentParametersIORoot, AlignableDataIORoot, AlignmentCorrelationsIORoot, and MillePedeVariablesIORoot.
Referenced by openRoot().
|
protected |
open IO
Definition at line 16 of file AlignmentIORootBase.cc.
References bWrite, createBranches(), corrVsCorr::filename, align_cfg::iteration, myFile, setBranchAddresses(), testFile(), treeName(), treename, treetxt, and writeEcalDQMStatus::write.
Referenced by AlignmentCorrelationsIORoot::open(), AlignableDataIORoot::open(), AlignmentParametersIORoot::open(), HIPUserVariablesIORoot::open(), and MillePedeVariablesIORoot::open().
|
protectedpure virtual |
set root branches
Implemented in AlignmentParametersIORoot, HIPUserVariablesIORoot, AlignableDataIORoot, AlignmentCorrelationsIORoot, and MillePedeVariablesIORoot.
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 corrVsCorr::filename, itermax, cond::persistency::GLOBAL_TAG::tname, and treeName().
Referenced by openRoot(), and edmIntegrityCheck.IntegrityCheck::testFileTimeOut().
|
protected |
compose tree name
Definition at line 129 of file AlignmentIORootBase.cc.
References cond::persistency::GLOBAL_TAG::tname.
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(), tree.Tree::branch_(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), TkAlMap.TkAlMap::detect_tracker_version(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), SimpleTreeProducer.SimpleTreeProducer::process(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), eventstfile.Events::size(), eventstfile.Events::to(), tree.Tree::var(), and tree.Tree::vector().
|
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().