#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 9 of file AlignableDataIO.h.
|
protected |
Enumerator | |
---|---|
Abs | |
Org | |
Rel |
Definition at line 14 of file AlignableDataIO.h.
|
inlineprotected |
|
inlineprotectedvirtual |
|
protectedpure virtual |
Close IO handle.
Implemented in AlignableDataIORoot.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
|
protectedpure virtual |
Open IO handle.
Implemented in AlignableDataIORoot.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig().
|
protected |
Read absolute positions of one Alignable.
Definition at line 10 of file AlignableDataIO.cc.
References readAbsRaw().
Referenced by readAbsPos(), and AlignmentIORoot::readAlignableAbsolutePositions().
|
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(), and readOrgPos().
|
protected |
Read original positions of one Alignable.
Definition at line 17 of file AlignableDataIO.cc.
References readAbsRaw().
Referenced by AlignmentIORoot::readAlignableOriginalPositions(), and readOrgPos().
|
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(), and readRelPos().
|
protected |
Read relative positions of many Alignables.
Definition at line 203 of file AlignableDataIO.cc.
References LogDebug, and readRelPos().
|
protectedpure virtual |
|
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(), pos, GloballyPositioned< T >::position(), query::result, makeMuonMisalignmentScenario::rot, GloballyPositioned< T >::rotation(), Alignable::surface(), Alignable::surfaceDeformationIdPairs(), and writeAbsRaw().
Referenced by writeAbsPos(), and AlignmentIORoot::writeAlignableAbsolutePositions().
|
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(), and writeOrgPos().
|
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(), pos, makeMuonMisalignmentScenario::rot, Alignable::rotation(), TkRotation< T >::transposed(), and writeAbsRaw().
Referenced by AlignmentIORoot::writeAlignableOriginalPositions(), and writeOrgPos().
|
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(), pos, makeMuonMisalignmentScenario::rot, Alignable::rotation(), and writeRelRaw().
Referenced by AlignmentIORoot::writeAlignableRelativePositions(), and writeRelPos().
|
protected |
Write relative positions of many Alignables.
Definition at line 185 of file AlignableDataIO.cc.
References LogDebug, and writeRelPos().
|
protectedpure virtual |
|
protected |
Definition at line 79 of file AlignableDataIO.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot().