#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 |
|
inlineprotected |
|
inlineprotectedvirtual |
|
protectedpure virtual |
Close IO handle.
Implemented in AlignableDataIORoot.
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().
|
protectedpure virtual |
Open IO handle.
Implemented in AlignableDataIORoot.
|
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 87 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 13 of file AlignableDataIO.cc.
References readAbsRaw().
Referenced by AlignmentIORoot::readAlignableOriginalPositions(), and readOrgPos().
|
protected |
Read original positions of many Alignables.
Definition at line 116 of file AlignableDataIO.cc.
References LogDebug, and readOrgPos().
|
protected |
Read relative positions of one Alignable.
Definition at line 16 of file AlignableDataIO.cc.
References readRelRaw().
Referenced by AlignmentIORoot::readAlignableRelativePositions(), and readRelPos().
|
protected |
Read relative positions of many Alignables.
Definition at line 144 of file AlignableDataIO.cc.
References LogDebug, and readRelPos().
|
protectedpure virtual |
|
protected |
Write absolute positions of one Alignable.
Definition at line 19 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(), and AlignmentIORoot::writeAlignableAbsolutePositions().
|
protected |
Write absolute positions of many Alignables.
Definition at line 74 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 58 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(), and writeOrgPos().
|
protected |
Write original positions of many Alignables.
Definition at line 103 of file AlignableDataIO.cc.
References LogDebug, and writeOrgPos().
|
protected |
Write relative positions of one Alignable.
Definition at line 42 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(), and writeRelPos().
|
protected |
Write relative positions of many Alignables.
Definition at line 132 of file AlignableDataIO.cc.
References LogDebug, and writeRelPos().
|
protectedpure virtual |
|
protected |
Definition at line 77 of file AlignableDataIO.h.
Referenced by AlignableDataIORoot::AlignableDataIORoot().