#include <AlignableDataIO.h>
Protected Types | |
enum | PosType { Abs, Org, Rel } |
Protected Member Functions | |
AlignableDataIO (PosType p) | |
Constructor. More... | |
virtual int | close (void)=0 |
Close IO handle. More... | |
virtual int | open (const char *filename, int iteration, bool writemode)=0 |
Open IO handle. More... | |
AlignableAbsData | readAbsPos (Alignable *ali, int &ierr) |
Read absolute positions of one Alignable. More... | |
AlignablePositions | readAbsPos (const align::Alignables &alivec, int &ierr) |
Read absolute positions of many Alignables. More... | |
virtual AlignableAbsData | readAbsRaw (Alignable *ali, int &ierr)=0 |
Read absolute positions. More... | |
AlignableAbsData | readOrgPos (Alignable *ali, int &ierr) |
Read original positions of one Alignable. More... | |
AlignablePositions | readOrgPos (const align::Alignables &alivec, int &ierr) |
Read original positions of many Alignables. More... | |
AlignableRelData | readRelPos (Alignable *ali, int &ierr) |
Read relative positions of one Alignable. More... | |
AlignableShifts | readRelPos (const align::Alignables &alivec, int &ierr) |
Read relative positions of many Alignables. More... | |
virtual AlignableRelData | readRelRaw (Alignable *ali, int &ierr)=0 |
Read relative positions. More... | |
int | writeAbsPos (Alignable *ali, bool validCheck) |
Write absolute positions of one Alignable. More... | |
int | writeAbsPos (const align::Alignables &alivec, bool validCheck) |
Write absolute positions of many Alignables. More... | |
virtual int | writeAbsRaw (const AlignableAbsData &ad)=0 |
Write absolute positions. More... | |
int | writeOrgPos (Alignable *ali, bool validCheck) |
Write original positions of one Alignable. More... | |
int | writeOrgPos (const align::Alignables &alivec, bool validCheck) |
Write original positions of many Alignables. More... | |
int | writeRelPos (Alignable *ali, bool validCheck) |
Write relative positions of one Alignable. More... | |
int | writeRelPos (const align::Alignables &alivec, bool validCheck) |
Write relative positions of many Alignables. More... | |
virtual int | writeRelRaw (const AlignableRelData &ad)=0 |
Write relative positions. More... | |
virtual | ~AlignableDataIO () |
Destructor. More... | |
Protected Attributes | |
PosType | thePosType |
Abstract base class for IO of alignable positions/shifts. Derived concrete class must implement raw read/write methods
Definition at line 12 of file AlignableDataIO.h.
|
protected |
Enumerator | |
---|---|
Abs | |
Org | |
Rel |
Definition at line 17 of file AlignableDataIO.h.
|
inlineprotected |
|
inlineprotectedvirtual |
Destructor.
Definition at line 23 of file AlignableDataIO.h.
References close(), corrVsCorr::filename, align_cfg::iteration, open(), readAbsPos(), readAbsRaw(), readOrgPos(), readRelPos(), readRelRaw(), writeAbsPos(), writeAbsRaw(), writeOrgPos(), writeRelPos(), and writeRelRaw().
|
protectedpure virtual |
Close IO handle.
Implemented in AlignableDataIORoot.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and ~AlignableDataIO().
|
protectedpure virtual |
Open IO handle.
Implemented in AlignableDataIORoot.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), and ~AlignableDataIO().
|
protected |
Read absolute positions of one Alignable.
Definition at line 10 of file AlignableDataIO.cc.
References readAbsRaw().
Referenced by readAbsPos(), AlignmentIORoot::readAlignableAbsolutePositions(), and ~AlignableDataIO().
|
protected |
Read absolute positions of many Alignables.
Definition at line 123 of file AlignableDataIO.cc.
References LogDebug, and readAbsPos().
|
protectedpure virtual |
Read absolute positions.
Implemented in AlignableDataIORoot.
Referenced by readAbsPos(), readOrgPos(), and ~AlignableDataIO().
|
protected |
Read original positions of one Alignable.
Definition at line 17 of file AlignableDataIO.cc.
References readAbsRaw().
Referenced by AlignmentIORoot::readAlignableOriginalPositions(), readOrgPos(), and ~AlignableDataIO().
|
protected |
Read original positions of many Alignables.
Definition at line 164 of file AlignableDataIO.cc.
References LogDebug, and readOrgPos().
|
protected |
Read relative positions of one Alignable.
Definition at line 24 of file AlignableDataIO.cc.
References readRelRaw().
Referenced by AlignmentIORoot::readAlignableRelativePositions(), readRelPos(), and ~AlignableDataIO().
|
protected |
Read relative positions of many Alignables.
Definition at line 203 of file AlignableDataIO.cc.
References LogDebug, and readRelPos().
|
protectedpure virtual |
Read relative positions.
Implemented in AlignableDataIORoot.
Referenced by readRelPos(), and ~AlignableDataIO().
|
protected |
Write absolute positions of one Alignable.
Definition at line 31 of file AlignableDataIO.cc.
References align::AlignableDetUnit, Alignable::alignableObjectId(), Alignable::alignmentParameters(), Alignable::id(), AlignmentParameters::isValid(), GloballyPositioned< T >::position(), mps_fire::result, makeMuonMisalignmentScenario::rot, GloballyPositioned< T >::rotation(), Alignable::surface(), Alignable::surfaceDeformationIdPairs(), and writeAbsRaw().
Referenced by writeAbsPos(), AlignmentIORoot::writeAlignableAbsolutePositions(), and ~AlignableDataIO().
|
protected |
Write absolute positions of many Alignables.
Definition at line 103 of file AlignableDataIO.cc.
References LogDebug, and writeAbsPos().
|
protectedpure virtual |
Write absolute positions.
Implemented in AlignableDataIORoot.
Referenced by writeAbsPos(), writeOrgPos(), and ~AlignableDataIO().
|
protected |
Write original positions of one Alignable.
Definition at line 83 of file AlignableDataIO.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), Alignable::displacement(), Alignable::globalPosition(), Alignable::globalRotation(), Alignable::id(), AlignmentParameters::isValid(), makeMuonMisalignmentScenario::rot, Alignable::rotation(), TkRotation< T >::transposed(), and writeAbsRaw().
Referenced by AlignmentIORoot::writeAlignableOriginalPositions(), writeOrgPos(), and ~AlignableDataIO().
|
protected |
Write original positions of many Alignables.
Definition at line 144 of file AlignableDataIO.cc.
References LogDebug, and writeOrgPos().
|
protected |
Write relative positions of one Alignable.
Definition at line 63 of file AlignableDataIO.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), Alignable::displacement(), Alignable::id(), AlignmentParameters::isValid(), makeMuonMisalignmentScenario::rot, Alignable::rotation(), and writeRelRaw().
Referenced by AlignmentIORoot::writeAlignableRelativePositions(), writeRelPos(), and ~AlignableDataIO().
|
protected |
Write relative positions of many Alignables.
Definition at line 185 of file AlignableDataIO.cc.
References LogDebug, and writeRelPos().
|
protectedpure virtual |
Write relative positions.
Implemented in AlignableDataIORoot.
Referenced by writeRelPos(), and ~AlignableDataIO().
|
protected |
Definition at line 82 of file AlignableDataIO.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot().