#include <AlignmentIORoot.h>
Public Member Functions | |
AlignablePositions | readAlignableAbsolutePositions (const align::Alignables &alivec, const char *filename, int iter, int &ierr) |
read Alignable current absolute positions | |
AlignablePositions | readAlignableOriginalPositions (const align::Alignables &alivec, const char *filename, int iter, int &ierr) |
read Alignable original (before misalignment) absolute positions | |
AlignableShifts | readAlignableRelativePositions (const align::Alignables &alivec, const char *filename, int iter, int &ierr) |
read Alignable relative positions (shift,rotation) | |
align::Parameters | readAlignmentParameters (const align::Alignables &alivec, const char *filename, int iter, int &ierr) |
read AlignmentParameters | |
align::Correlations | readCorrelations (const align::Alignables &alivec, const char *filename, int iter, int &ierr) |
read Correlations | |
void | writeAlignableAbsolutePositions (const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
write Alignable current absolute positions | |
void | writeAlignableOriginalPositions (const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
write Alignable original (before misalignment) absolute positions | |
void | writeAlignableRelativePositions (const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
write Alignable relative positions (shift,rotation) | |
void | writeAlignmentParameters (const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
write AlignmentParameters | |
void | writeCorrelations (const align::Correlations &cormap, const char *filename, int iter, bool validCheck, int &ierr) |
write Correlations | |
void | writeOrigRigidBodyAlignmentParameters (const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
write RigidBodyAlignmentParameters as applied on top of original positions |
concrete class for ROOT-based I/O of Alignment parameters, correlations and Alignable positions. Derived from AlignmentIO
(last update by
)
Definition at line 16 of file AlignmentIORoot.h.
AlignablePositions AlignmentIORoot::readAlignableAbsolutePositions | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) | [virtual] |
read Alignable current absolute positions
Implements AlignmentIO.
Definition at line 128 of file AlignmentIORoot.cc.
References AlignableDataIO::Abs, AlignableDataIORoot::close(), AlignableDataIORoot::open(), AlignableDataIO::readAbsPos(), and query::result.
Referenced by HIPAlignmentAlgorithm::startNewLoop().
{ AlignablePositions result; AlignableDataIORoot theIO(AlignableDataIORoot::Abs); ierr=0; int iret; iret = theIO.open(filename,iter,false); if (iret!=0) { ierr=-1; return result;} result = theIO.readAbsPos(alivec,iret); if (iret!=0) { ierr=-2; return result;} iret = theIO.close(); if (iret!=0) { ierr=-3; return result;} return result; }
AlignablePositions AlignmentIORoot::readAlignableOriginalPositions | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) | [virtual] |
read Alignable original (before misalignment) absolute positions
Implements AlignmentIO.
Definition at line 168 of file AlignmentIORoot.cc.
References AlignableDataIORoot::close(), AlignableDataIORoot::open(), AlignableDataIO::Org, AlignableDataIO::readOrgPos(), and query::result.
{ AlignablePositions result; AlignableDataIORoot theIO(AlignableDataIORoot::Org); ierr=0; int iret; iret = theIO.open(filename,iter,false); if (iret!=0) { ierr=-1; return result;} result = theIO.readOrgPos(alivec,iret); if (iret!=0) { ierr=-2; return result;} iret = theIO.close(); if (iret!=0) { ierr=-3; return result;} return result; }
AlignableShifts AlignmentIORoot::readAlignableRelativePositions | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) | [virtual] |
read Alignable relative positions (shift,rotation)
Implements AlignmentIO.
Definition at line 208 of file AlignmentIORoot.cc.
References AlignableDataIORoot::close(), AlignableDataIORoot::open(), AlignableDataIO::readRelPos(), AlignableDataIO::Rel, and query::result.
{ AlignableShifts result; AlignableDataIORoot theIO(AlignableDataIORoot::Rel); ierr=0; int iret; iret = theIO.open(filename,iter,false); if (iret!=0) { ierr=-1; return result;} result = theIO.readRelPos(alivec,iret); if (iret!=0) { ierr=-2; return result;} iret = theIO.close(); if (iret!=0) { ierr=-3; return result;} return result; }
align::Parameters AlignmentIORoot::readAlignmentParameters | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) | [virtual] |
read AlignmentParameters
Implements AlignmentIO.
Definition at line 30 of file AlignmentIORoot.cc.
References AlignmentParametersIORoot::close(), AlignmentParametersIORoot::open(), AlignmentParametersIO::read(), and query::result.
Referenced by KalmanAlignmentAlgorithm::initializeAlignmentParameters(), and KalmanAlignmentAlgorithm::mergeResults().
{ align::Parameters result; AlignmentParametersIORoot theIO; ierr=0; int iret; iret = theIO.open(filename,iter,false); if (iret!=0) { ierr=-1; return result;} result = theIO.read(alivec,iret); if (iret!=0) { ierr=-2; return result;} iret = theIO.close(); if (iret!=0) { ierr=-3; return result;} return result; }
align::Correlations AlignmentIORoot::readCorrelations | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) | [virtual] |
read Correlations
Implements AlignmentIO.
Definition at line 87 of file AlignmentIORoot.cc.
References AlignmentCorrelationsIORoot::close(), AlignmentCorrelationsIORoot::open(), AlignmentCorrelationsIORoot::read(), and query::result.
{ align::Correlations result; AlignmentCorrelationsIORoot theIO; ierr=0; int iret; iret = theIO.open(filename,iter,false); if (iret!=0) { ierr=-1; return result;} result = theIO.read(alivec,iret); if (iret!=0) { ierr=-2; return result;} iret = theIO.close(); if (iret!=0) { ierr=-3; return result;} return result; }
void AlignmentIORoot::writeAlignableAbsolutePositions | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) | [virtual] |
write Alignable current absolute positions
Implements AlignmentIO.
Definition at line 109 of file AlignmentIORoot.cc.
References AlignableDataIO::Abs, AlignableDataIORoot::close(), AlignableDataIORoot::open(), and AlignableDataIO::writeAbsPos().
Referenced by MillePedeAlignmentAlgorithm::doIO(), HIPAlignmentAlgorithm::startNewLoop(), and HIPAlignmentAlgorithm::terminate().
{ AlignableDataIORoot theIO(AlignableDataIORoot::Abs); ierr=0; int iret; iret = theIO.open(filename,iter,true); if (iret!=0) { ierr=-1; return;} iret = theIO.writeAbsPos(alivec,validCheck); if (iret!=0) { ierr=-2; return;} iret = theIO.close(); if (iret!=0) { ierr=-3; return;} }
void AlignmentIORoot::writeAlignableOriginalPositions | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) | [virtual] |
write Alignable original (before misalignment) absolute positions
Implements AlignmentIO.
Definition at line 149 of file AlignmentIORoot.cc.
References AlignableDataIORoot::close(), AlignableDataIORoot::open(), AlignableDataIO::Org, and AlignableDataIO::writeOrgPos().
Referenced by MillePedeAlignmentAlgorithm::doIO(), and HIPAlignmentAlgorithm::startNewLoop().
{ AlignableDataIORoot theIO(AlignableDataIORoot::Org); ierr=0; int iret; iret = theIO.open(filename,iter,true); if (iret!=0) { ierr=-1; return;} iret = theIO.writeOrgPos(alivec,validCheck); if (iret!=0) { ierr=-2; return;} iret = theIO.close(); if (iret!=0) { ierr=-3; return;} }
void AlignmentIORoot::writeAlignableRelativePositions | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) | [virtual] |
write Alignable relative positions (shift,rotation)
Implements AlignmentIO.
Definition at line 189 of file AlignmentIORoot.cc.
References AlignableDataIORoot::close(), AlignableDataIORoot::open(), AlignableDataIO::Rel, and AlignableDataIO::writeRelPos().
Referenced by MillePedeAlignmentAlgorithm::doIO().
{ AlignableDataIORoot theIO(AlignableDataIORoot::Rel); ierr=0; int iret; iret = theIO.open(filename,iter,true); if (iret!=0) { ierr=-1; return;} iret = theIO.writeRelPos(alivec,validCheck); if (iret!=0) { ierr=-2; return;} iret = theIO.close(); if (iret!=0) { ierr=-3; return;} }
void AlignmentIORoot::writeAlignmentParameters | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) | [virtual] |
write AlignmentParameters
Implements AlignmentIO.
Definition at line 12 of file AlignmentIORoot.cc.
References AlignmentParametersIORoot::close(), AlignmentParametersIORoot::open(), and AlignmentParametersIO::write().
Referenced by KalmanAlignmentAlgorithm::mergeResults(), KalmanAlignmentAlgorithm::terminate(), and HIPAlignmentAlgorithm::terminate().
{ AlignmentParametersIORoot theIO; ierr=0; int iret; iret = theIO.open(filename,iter,true); if (iret!=0) { ierr=-1; return;} iret = theIO.write(alivec,validCheck); if (iret!=0) { ierr=-2; return;} iret = theIO.close(); if (iret!=0) { ierr=-3; return;} }
void AlignmentIORoot::writeCorrelations | ( | const align::Correlations & | cormap, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) | [virtual] |
write Correlations
Implements AlignmentIO.
Definition at line 69 of file AlignmentIORoot.cc.
References AlignmentCorrelationsIORoot::close(), AlignmentCorrelationsIORoot::open(), and AlignmentCorrelationsIORoot::write().
{ AlignmentCorrelationsIORoot theIO; ierr=0; int iret; iret = theIO.open(filename,iter,true); if (iret!=0) { ierr=-1; return;} iret = theIO.write(cormap,validCheck); if (iret!=0) { ierr=-2; return;} iret = theIO.close(); if (iret!=0) { ierr=-3; return;} }
void AlignmentIORoot::writeOrigRigidBodyAlignmentParameters | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) | [virtual] |
write RigidBodyAlignmentParameters as applied on top of original positions
Implements AlignmentIO.
Definition at line 52 of file AlignmentIORoot.cc.
References AlignmentParametersIORoot::close(), AlignmentParametersIORoot::open(), and AlignmentParametersIO::writeOrigRigidBody().
Referenced by MillePedeAlignmentAlgorithm::doIO().
{ AlignmentParametersIORoot theIO; ierr = 0; int iret = theIO.open(filename, iter, true); if (iret != 0) { ierr = -1; return;} iret = theIO.writeOrigRigidBody(alivec, validCheck); if (iret != 0) { ierr = -2; return;} iret = theIO.close(); if (iret != 0) { ierr = -3; return;} }