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 |
constructor
Definition at line 16 of file AlignmentIORootBase.h.
References closeRoot(), createBranches(), corrVsCorr::filename, align_cfg::iteration, openRoot(), setBranchAddresses(), testFile(), cond::persistency::GLOBAL_TAG::tname, treeName(), and ~AlignmentIORootBase().
|
protectedvirtual |
destructor
Definition at line 9 of file AlignmentIORootBase.cc.
References myFile.
Referenced by AlignmentIORootBase().
|
protected |
close IO
Definition at line 99 of file AlignmentIORootBase.cc.
References bWrite, and myFile.
Referenced by AlignmentIORootBase(), AlignmentCorrelationsIORoot::close(), AlignableDataIORoot::close(), HIPUserVariablesIORoot::close(), AlignmentParametersIORoot::close(), and MillePedeVariablesIORoot::close().
|
protectedpure virtual |
create root branches
Implemented in MillePedeVariablesIORoot, AlignmentParametersIORoot, HIPUserVariablesIORoot, AlignableDataIORoot, and AlignmentCorrelationsIORoot.
Referenced by AlignmentIORootBase(), and openRoot().
|
protected |
open IO
Definition at line 17 of file AlignmentIORootBase.cc.
References bWrite, createBranches(), corrVsCorr::filename, align_cfg::iteration, myFile, NULL, setBranchAddresses(), testFile(), treeName(), treename, treetxt, and TriggerAnalyzer::write().
Referenced by AlignmentIORootBase(), 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 AlignmentIORootBase(), and 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 AlignmentIORootBase(), openRoot(), and edmIntegrityCheck.IntegrityCheck::testFileTimeOut().
|
protected |
compose tree name
Definition at line 138 of file AlignmentIORootBase.cc.
Referenced by AlignmentIORootBase(), 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__(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), and eventstfile.Events::to().
|
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().