#include <AlignmentParametersIORoot.h>
Private Member Functions | |
AlignmentParametersIORoot () | |
Constructor. More... | |
int | close (void) |
Close IO. More... | |
void | createBranches (void) |
Create all branches and give names. More... | |
int | findEntry (align::ID, align::StructureType) |
int | open (const char *filename, int iteration, bool writemode) |
Open IO. More... | |
AlignmentParameters * | readOne (Alignable *ali, int &ierr) |
Read AlignmentParameters of one Alignable. More... | |
void | setBranchAddresses (void) |
Set branch adresses. More... | |
int | writeOne (Alignable *ali) |
Write AlignmentParameters of one Alignable. More... | |
Private Attributes | |
double | theCov [nParMax *(nParMax+1)/2] |
int | theCovarRang |
int | theCovRang |
int | theHieraLevel |
align::ID | theId |
align::StructureType | theObjId |
double | thePar [nParMax] |
int | theParamType |
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 AlignmentParametersIO | |
align::Parameters | read (const align::Alignables &alivec, int &ierr) |
read AlignmentParameters of many Alignables More... | |
int | write (const align::Alignables &alivec, bool validCheck) |
write AlignmentParameters of many Alignables More... | |
virtual int | writeOneOrigRigidBody (Alignable *ali) |
write original RigidBodyAlignmentParameters (i.e. 3 shifts and 3 rotation) More... | |
int | writeOrigRigidBody (const align::Alignables &alivec, bool validCheck) |
write original RigidBodyAlignmentParameters of many Alignables More... | |
virtual | ~AlignmentParametersIO () |
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 I/O of AlignmentParameters
(last update by
)
Definition at line 16 of file AlignmentParametersIORoot.h.
|
private |
Constructor.
Definition at line 15 of file AlignmentParametersIORoot.cc.
References AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
privatevirtual |
Close IO.
Implements AlignmentParametersIO.
Definition at line 118 of file AlignmentParametersIORoot.cc.
References AlignmentIORootBase::bWrite, and AlignmentIORootBase::closeRoot().
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), open(), AlignmentIORoot::readAlignmentParameters(), AlignmentIORoot::writeAlignmentParameters(), and AlignmentIORoot::writeOrigRigidBodyAlignmentParameters().
|
privatevirtual |
Create all branches and give names.
Implements AlignmentIORootBase.
Definition at line 23 of file AlignmentParametersIORoot.cc.
References theCov, theCovarRang, theCovRang, theHieraLevel, theId, theObjId, thePar, and theParamType.
Referenced by open().
|
private |
Find entry number corresponding to ID and structure type. Returns -1 on failure.
Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator::computeQGLikelihood(), and open().
|
inlineprivatevirtual |
Open IO.
Implements AlignmentParametersIO.
Definition at line 32 of file AlignmentParametersIORoot.h.
References close(), createBranches(), findEntry(), AlignmentIORootBase::openRoot(), and setBranchAddresses().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), AlignmentIORoot::readAlignmentParameters(), AlignmentIORoot::writeAlignmentParameters(), and AlignmentIORoot::writeOrigRigidBodyAlignmentParameters().
|
privatevirtual |
Read AlignmentParameters of one Alignable.
Implements AlignmentParametersIO.
Definition at line 78 of file AlignmentParametersIORoot.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), AlignmentParameters::clone(), cuy::col, KineDebug3::count(), AlignmentParametersFactory::createParameters(), Alignable::id(), AlignmentParametersFactory::parametersType(), AlignmentParameters::selector(), AlignmentParameters::setValid(), theCov, theCovRang, thePar, and theParamType.
|
privatevirtual |
Set branch adresses.
Implements AlignmentIORootBase.
Definition at line 37 of file AlignmentParametersIORoot.cc.
References theCov, theCovarRang, theCovRang, theHieraLevel, theId, theObjId, thePar, and theParamType.
Referenced by open().
|
privatevirtual |
Write AlignmentParameters of one Alignable.
Implements AlignmentParametersIO.
Definition at line 51 of file AlignmentParametersIORoot.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), cuy::col, KineDebug3::count(), AlignmentParameters::covariance(), AlignmentParameters::hierarchyLevel(), Alignable::id(), AlignmentParameters::parameters(), theCov, theCovarRang, theCovRang, theHieraLevel, theId, theObjId, thePar, theParamType, and AlignmentParameters::type().
|
friend |
Definition at line 18 of file AlignmentParametersIORoot.h.
Definition at line 55 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 51 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 51 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 51 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 52 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 53 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 55 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 51 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().