14 bool validCheck,
int& ierr)
19 iret = theIO.
open(filename,iter,
true);
20 if (iret!=0) { ierr=-1;
return;}
21 iret = theIO.
write(alivec,validCheck);
22 if (iret!=0) { ierr=-2;
return;}
24 if (iret!=0) { ierr=-3;
return;}
31 const char*
filename,
int iter,
int& ierr)
38 iret = theIO.
open(filename,iter,
false);
39 if (iret!=0) { ierr=-1;
return result;}
40 result = theIO.
read(alivec,iret);
41 if (iret!=0) { ierr=-2;
return result;}
43 if (iret!=0) { ierr=-3;
return result;}
56 int iret = theIO.
open(filename, iter,
true);
57 if (iret != 0) { ierr = -1;
return;}
59 if (iret != 0) { ierr = -2;
return;}
61 if (iret != 0) { ierr = -3;
return;}
70 const char* filename,
int iter,
bool validCheck,
int& ierr)
75 iret = theIO.
open(filename,iter,
true);
76 if (iret!=0) { ierr=-1;
return;}
77 iret = theIO.
write(cormap,validCheck);
78 if (iret!=0) { ierr=-2;
return;}
80 if (iret!=0) { ierr=-3;
return;}
95 iret = theIO.
open(filename,iter,
false);
96 if (iret!=0) { ierr=-1;
return result;}
97 result = theIO.
read(alivec,iret);
98 if (iret!=0) { ierr=-2;
return result;}
100 if (iret!=0) { ierr=-3;
return result;}
110 const char* filename,
int iter,
111 bool validCheck,
int& ierr)
116 iret = theIO.
open(filename,iter,
true);
117 if (iret!=0) { ierr=-1;
return;}
119 if (iret!=0) { ierr=-2;
return;}
120 iret = theIO.
close();
121 if (iret!=0) { ierr=-3;
return;}
129 const char* filename,
int iter,
int& ierr)
136 iret = theIO.
open(filename,iter,
false);
137 if (iret!=0) { ierr=-1;
return result;}
139 if (iret!=0) { ierr=-2;
return result;}
140 iret = theIO.
close();
141 if (iret!=0) { ierr=-3;
return result;}
150 const char* filename,
int iter,
151 bool validCheck,
int& ierr)
156 iret = theIO.
open(filename,iter,
true);
157 if (iret!=0) { ierr=-1;
return;}
159 if (iret!=0) { ierr=-2;
return;}
160 iret = theIO.
close();
161 if (iret!=0) { ierr=-3;
return;}
169 const char* filename,
int iter,
int& ierr)
176 iret = theIO.
open(filename,iter,
false);
177 if (iret!=0) { ierr=-1;
return result;}
179 if (iret!=0) { ierr=-2;
return result;}
180 iret = theIO.
close();
181 if (iret!=0) { ierr=-3;
return result;}
190 const char* filename,
191 int iter,
bool validCheck,
int& ierr)
196 iret = theIO.
open(filename,iter,
true);
197 if (iret!=0) { ierr=-1;
return;}
199 if (iret!=0) { ierr=-2;
return;}
200 iret = theIO.
close();
201 if (iret!=0) { ierr=-3;
return;}
209 const char* filename,
int iter,
int& ierr)
216 iret = theIO.
open(filename,iter,
false);
217 if (iret!=0) { ierr=-1;
return result;}
219 if (iret!=0) { ierr=-2;
return result;}
220 iret = theIO.
close();
221 if (iret!=0) { ierr=-3;
return result;}
AlignableAbsData readAbsPos(Alignable *ali, int &ierr)
Read absolute positions of one Alignable.
AlignableShifts readAlignableRelativePositions(const align::Alignables &alivec, const char *filename, int iter, int &ierr)
read Alignable relative positions (shift,rotation)
int open(const char *filename, int iteration, bool writemode) override
Open IO.
AlignableAbsData readOrgPos(Alignable *ali, int &ierr)
Read original positions of one Alignable.
int writeAbsPos(Alignable *ali, bool validCheck)
Write absolute positions of one Alignable.
int write(const align::Alignables &alivec, bool validCheck)
write AlignmentParameters of many Alignables
void writeAlignableOriginalPositions(const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
write Alignable original (before misalignment) absolute positions
std::map< std::pair< Alignable *, Alignable * >, AlgebraicMatrix > Correlations
AlignablePositions readAlignableOriginalPositions(const align::Alignables &alivec, const char *filename, int iter, int &ierr)
read Alignable original (before misalignment) absolute positions
int close(void) override
close IO
std::vector< AlignableRelData > AlignableShifts
void writeCorrelations(const align::Correlations &cormap, const char *filename, int iter, bool validCheck, int &ierr)
write Correlations
AlignablePositions readAlignableAbsolutePositions(const align::Alignables &alivec, const char *filename, int iter, int &ierr)
read Alignable current absolute positions
int writeOrigRigidBody(const align::Alignables &alivec, bool validCheck)
write original RigidBodyAlignmentParameters of many Alignables
int writeOrgPos(Alignable *ali, bool validCheck)
Write original positions of one Alignable.
concrete class for ROOT based IO of Alignable positions
align::Correlations readCorrelations(const align::Alignables &alivec, const char *filename, int iter, int &ierr)
read Correlations
align::Parameters read(const align::Alignables &alivec, int &ierr)
read AlignmentParameters of many Alignables
int writeRelPos(Alignable *ali, bool validCheck)
Write relative positions of one Alignable.
void writeAlignableRelativePositions(const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
write Alignable relative positions (shift,rotation)
AlignableRelData readRelPos(Alignable *ali, int &ierr)
Read relative positions of one Alignable.
int write(const align::Correlations &cor, bool validCheck) override
write correlations
int close(void) override
close IO
void writeAlignmentParameters(const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
write AlignmentParameters
std::vector< Alignable * > Alignables
std::vector< AlignmentParameters * > Parameters
align::Correlations read(const align::Alignables &alivec, int &ierr) override
read correlations
std::vector< AlignableAbsData > AlignablePositions
void writeAlignableAbsolutePositions(const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
write Alignable current absolute positions
int open(const char *filename, int iteration, bool writemode) override
open IO
align::Parameters readAlignmentParameters(const align::Alignables &alivec, const char *filename, int iter, int &ierr)
read AlignmentParameters
void writeOrigRigidBodyAlignmentParameters(const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
write RigidBodyAlignmentParameters as applied on top of original positions
int close(void) override
Close IO.
Concrete class for ROOT based IO of Correlations.
int open(const char *filename, int iteration, bool writemode) override
open IO