concrete class for ROOT based IO of Alignable positions More...
#include <AlignableDataIORoot.h>
Private Types | |
enum | { kMaxNumPar = 20 } |
typedef std::map< std::pair< align::ID, align::StructureType >, int > | treemaptype |
Private Member Functions | |
AlignableDataIORoot (PosType p) | |
constructor More... | |
int | close (void) override |
close IO More... | |
void | createBranches (void) override |
create root branches More... | |
int | findEntry (align::ID, align::StructureType) |
int | open (const char *filename, int iteration, bool writemode) override |
open IO More... | |
AlignableAbsData | readAbsRaw (Alignable *ali, int &ierr) override |
read absolute positions More... | |
AlignableRelData | readRelRaw (Alignable *ali, int &ierr) override |
read relative positions More... | |
void | setBranchAddresses (void) override |
set root branches More... | |
int | writeAbsRaw (const AlignableAbsData &ad) override |
write absolute positions More... | |
int | writeRelRaw (const AlignableRelData &ad) override |
write relative positions More... | |
Private Attributes | |
Float_t | deformationValues_ [kMaxNumPar] |
align::ID | Id |
bool | newopen |
UInt_t | numDeformationValues_ |
align::StructureType | ObjId |
root tree contents More... | |
Double_t | Pos [3] |
Double_t | Rot [9] |
treemaptype | treemap |
Friends | |
class | AlignmentIORoot |
Additional Inherited Members | |
Protected Types inherited from AlignableDataIO | |
enum | PosType { Abs, Org, Rel } |
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 AlignableDataIO | |
AlignableDataIO (PosType p) | |
Constructor. 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... | |
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... | |
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... | |
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 | ~AlignableDataIO () |
Destructor. More... | |
Protected Attributes inherited from AlignmentIORootBase | |
bool | bWrite |
TTree * | tree |
TString | treename |
TString | treetxt |
Protected Attributes inherited from AlignableDataIO | |
PosType | thePosType |
Static Protected Attributes inherited from AlignmentIORootBase | |
const static int | itermax = 1000 |
const static int | nParMax = 20 |
concrete class for ROOT based IO of Alignable positions
Definition at line 14 of file AlignableDataIORoot.h.
|
private |
Definition at line 56 of file AlignableDataIORoot.h.
|
private |
|
private |
constructor
Definition at line 10 of file AlignableDataIORoot.cc.
References AlignableDataIO::Abs, AlignableDataIO::Org, AlignableDataIO::Rel, AlignableDataIO::thePosType, AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
inlineoverrideprivatevirtual |
close IO
Implements AlignableDataIO.
Definition at line 28 of file AlignableDataIORoot.h.
References AlignmentIORootBase::closeRoot().
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), AlignmentIORoot::readAlignableAbsolutePositions(), AlignmentIORoot::readAlignableOriginalPositions(), AlignmentIORoot::readAlignableRelativePositions(), AlignmentIORoot::writeAlignableAbsolutePositions(), AlignmentIORoot::writeAlignableOriginalPositions(), and AlignmentIORoot::writeAlignableRelativePositions().
|
overrideprivatevirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 26 of file AlignableDataIORoot.cc.
References deformationValues_, Id, numDeformationValues_, ObjId, Pos, and Rot.
|
private |
Definition at line 52 of file AlignableDataIORoot.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, ev, Id, newopen, ObjId, mps_fire::result, and treemap.
Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator::computeQGLikelihood(), readAbsRaw(), and readRelRaw().
|
inlineoverrideprivatevirtual |
open IO
Implements AlignableDataIO.
Definition at line 22 of file AlignableDataIORoot.h.
References corrVsCorr::filename, align_cfg::iteration, newopen, and AlignmentIORootBase::openRoot().
Referenced by AlignmentIORoot::readAlignableAbsolutePositions(), AlignmentIORoot::readAlignableOriginalPositions(), AlignmentIORoot::readAlignableRelativePositions(), AlignmentIORoot::writeAlignableAbsolutePositions(), AlignmentIORoot::writeAlignableOriginalPositions(), and AlignmentIORoot::writeAlignableRelativePositions().
|
overrideprivatevirtual |
read absolute positions
Implements AlignableDataIO.
Definition at line 131 of file AlignableDataIORoot.cc.
References Alignable::alignableObjectId(), deformationValues_, mps_splice::entry, findEntry(), mps_fire::i, Alignable::id(), numDeformationValues_, Pos, Rot, and makeMuonMisalignmentScenario::rot.
|
overrideprivatevirtual |
read relative positions
Implements AlignableDataIO.
Definition at line 160 of file AlignableDataIORoot.cc.
References Alignable::alignableObjectId(), deformationValues_, mps_splice::entry, findEntry(), mps_fire::i, Alignable::id(), numDeformationValues_, Pos, Rot, and makeMuonMisalignmentScenario::rot.
|
overrideprivatevirtual |
set root branches
Implements AlignmentIORootBase.
Definition at line 39 of file AlignableDataIORoot.cc.
References deformationValues_, Id, numDeformationValues_, ObjId, Pos, and Rot.
|
overrideprivatevirtual |
write absolute positions
Implements AlignableDataIO.
Definition at line 73 of file AlignableDataIORoot.cc.
References AlignableData< T >::deformationParameters(), deformationValues_, mps_fire::i, AlignableData< T >::id(), Id, kMaxNumPar, numDeformationValues_, AlignableData< T >::objId(), ObjId, AlignableData< T >::pos(), Pos, AlignableData< T >::rot(), Rot, and makeMuonMisalignmentScenario::rot.
|
overrideprivatevirtual |
write relative positions
Implements AlignableDataIO.
Definition at line 102 of file AlignableDataIORoot.cc.
References AlignableData< T >::deformationParameters(), deformationValues_, mps_fire::i, AlignableData< T >::id(), Id, kMaxNumPar, numDeformationValues_, AlignableData< T >::objId(), ObjId, AlignableData< T >::pos(), Pos, AlignableData< T >::rot(), Rot, and makeMuonMisalignmentScenario::rot.
|
friend |
Definition at line 15 of file AlignableDataIORoot.h.
|
private |
Definition at line 53 of file AlignableDataIORoot.h.
Referenced by createBranches(), readAbsRaw(), readRelRaw(), setBranchAddresses(), writeAbsRaw(), and writeRelRaw().
|
private |
Definition at line 48 of file AlignableDataIORoot.h.
Referenced by createBranches(), findEntry(), setBranchAddresses(), writeAbsRaw(), and writeRelRaw().
|
private |
Definition at line 55 of file AlignableDataIORoot.h.
Referenced by findEntry(), and open().
|
private |
Definition at line 51 of file AlignableDataIORoot.h.
Referenced by createBranches(), readAbsRaw(), readRelRaw(), setBranchAddresses(), writeAbsRaw(), and writeRelRaw().
|
private |
root tree contents
Definition at line 46 of file AlignableDataIORoot.h.
Referenced by createBranches(), findEntry(), setBranchAddresses(), writeAbsRaw(), and writeRelRaw().
|
private |
Definition at line 49 of file AlignableDataIORoot.h.
Referenced by createBranches(), readAbsRaw(), readRelRaw(), setBranchAddresses(), writeAbsRaw(), and writeRelRaw().
|
private |
Definition at line 50 of file AlignableDataIORoot.h.
Referenced by createBranches(), readAbsRaw(), readRelRaw(), setBranchAddresses(), writeAbsRaw(), and writeRelRaw().
|
private |
Definition at line 57 of file AlignableDataIORoot.h.
Referenced by findEntry().