Concrete class for ROOT based IO of Correlations. More...
#include <AlignmentCorrelationsIORoot.h>
Private Member Functions | |
AlignmentCorrelationsIORoot () | |
constructor More... | |
int | close (void) override |
close IO More... | |
void | createBranches (void) override |
create root branches More... | |
int | open (const char *filename, int iteration, bool writemode) override |
open IO More... | |
align::Correlations | read (const align::Alignables &alivec, int &ierr) override |
read correlations More... | |
void | setBranchAddresses (void) override |
set root branches More... | |
int | write (const align::Correlations &cor, bool validCheck) override |
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.
|
inlineoverrideprivatevirtual |
close IO
Implements AlignmentCorrelationsIO.
Definition at line 23 of file AlignmentCorrelationsIORoot.h.
References AlignmentIORootBase::closeRoot(), createBranches(), read(), setBranchAddresses(), and write().
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), AlignmentIORoot::readCorrelations(), and AlignmentIORoot::writeCorrelations().
|
overrideprivatevirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 20 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, CorMatrix, and corSize.
Referenced by close().
|
inlineoverrideprivatevirtual |
open IO
Implements AlignmentCorrelationsIO.
Definition at line 18 of file AlignmentCorrelationsIORoot.h.
References AlignmentIORootBase::openRoot().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), AlignmentIORoot::readCorrelations(), and AlignmentIORoot::writeCorrelations().
|
overrideprivatevirtual |
read correlations
Implements AlignmentCorrelationsIO.
Definition at line 71 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, cuy::col, CorMatrix, mps_splice::entry, and AlignmentIORootBase::nParMax.
Referenced by close(), edmIntegrityCheck.PublishToFileSystem::get(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), AlignmentIORoot::readCorrelations(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
overrideprivatevirtual |
set root branches
Implements AlignmentIORootBase.
Definition at line 31 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, CorMatrix, and corSize.
Referenced by close().
|
overrideprivatevirtual |
write correlations
Implements AlignmentCorrelationsIO.
Definition at line 42 of file AlignmentCorrelationsIORoot.cc.
References Ali1Id, Ali1ObjId, Ali2Id, Ali2ObjId, Alignable::alignableObjectId(), Alignable::alignmentParameters(), cuy::col, CorMatrix, corSize, Alignable::id(), and AlignmentParameters::isValid().
Referenced by close(), pkg.AbstractPkg::generate(), querying.connection::write_and_commit(), and AlignmentIORoot::writeCorrelations().
|
friend |
Definition at line 11 of file AlignmentCorrelationsIORoot.h.
|
private |
correlation tree
Definition at line 37 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 38 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 37 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
|
private |
Definition at line 38 of file AlignmentCorrelationsIORoot.h.
Referenced by createBranches(), read(), setBranchAddresses(), and write().
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(), setBranchAddresses(), and write().