Concrete class for ROOT based IO of Correlations. More...
#include <AlignmentCorrelationsIORoot.h>
Private Member Functions | |
AlignmentCorrelationsIORoot () | |
constructor More... | |
int | close (void) |
close IO More... | |
void | createBranches (void) |
create root branches More... | |
int | open (const char *filename, int iteration, bool writemode) |
open IO More... | |
align::Correlations | read (const align::Alignables &alivec, int &ierr) |
read correlations More... | |
void | setBranchAddresses (void) |
set root branches More... | |
int | write (const align::Correlations &cor, bool validCheck) |
write correlations More... | |
Private Attributes | |
align::ID | Ali1Id |
correlation tree More... | |
align::StructureType | Ali1ObjId |
align::ID | Ali2Id |
align::StructureType | Ali2ObjId |
double | CorMatrix [nParMax *nParMax] |
int | corSize |
Friends | |
class | AlignmentIORoot |
Additional Inherited Members | |
Protected Member Functions inherited from AlignmentIORootBase | |
AlignmentIORootBase () | |
constructor More... | |
int | closeRoot (void) |
close IO More... | |
int | openRoot (const char *filename, int iteration, bool writemode) |
open IO 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 Member Functions inherited from AlignmentCorrelationsIO | |
virtual | ~AlignmentCorrelationsIO () |
destructor More... | |
Protected Attributes inherited from AlignmentIORootBase | |
bool | bWrite |
TTree * | tree |
TString | treename |
TString | treetxt |
Static Protected Attributes inherited from AlignmentIORootBase | |
static const int | itermax = 1000 |
static const int | nParMax = 20 |
Concrete class for ROOT based IO of Correlations.
Definition at line 10 of file AlignmentCorrelationsIORoot.h.
|
private |
constructor
Definition at line 13 of file AlignmentCorrelationsIORoot.cc.
References AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
inlineprivatevirtual |
close IO
Implements AlignmentCorrelationsIO.
Definition at line 25 of file AlignmentCorrelationsIORoot.h.
References AlignmentIORootBase::closeRoot().
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), AlignmentIORoot::readCorrelations(), and AlignmentIORoot::writeCorrelations().
|
privatevirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 21 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, CorMatrix, corSize, and AlignmentIORootBase::tree.
|
inlineprivatevirtual |
open IO
Implements AlignmentCorrelationsIO.
Definition at line 20 of file AlignmentCorrelationsIORoot.h.
References AlignmentIORootBase::openRoot().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), AlignmentIORoot::readCorrelations(), and AlignmentIORoot::writeCorrelations().
|
privatevirtual |
read correlations
Implements AlignmentCorrelationsIO.
Definition at line 79 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, cuy::col, CorMatrix, AlignmentIORootBase::nParMax, and AlignmentIORootBase::tree.
Referenced by Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), AlignmentIORoot::readCorrelations(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
privatevirtual |
set root branches
Implements AlignmentIORootBase.
Definition at line 33 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, CorMatrix, corSize, and AlignmentIORootBase::tree.
|
privatevirtual |
write correlations
Implements AlignmentCorrelationsIO.
Definition at line 45 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, Alignable::alignableObjectId(), Alignable::alignmentParameters(), cuy::col, CorMatrix, corSize, Alignable::id(), AlignmentParameters::isValid(), and AlignmentIORootBase::tree.
Referenced by pkg.AbstractPkg::generate(), and AlignmentIORoot::writeCorrelations().
|
friend |
Definition at line 12 of file AlignmentCorrelationsIORoot.h.
|
private |
correlation tree
Definition at line 39 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 40 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 39 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 40 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
Definition at line 42 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 41 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and write().