File indexing completed on 2024-09-07 04:34:27
0001 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentParametersIO_h
0002 #define Alignment_CommonAlignmentAlgorithm_AlignmentParametersIO_h
0003
0004 #include "Alignment/CommonAlignment/interface/Utilities.h"
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 class AlignmentParametersIO {
0015 protected:
0016 virtual ~AlignmentParametersIO() {}
0017
0018
0019 virtual int open(const char* filename, int iteration, bool writemode) = 0;
0020
0021
0022 virtual int close(void) = 0;
0023
0024
0025 virtual int writeOne(Alignable* ali) = 0;
0026
0027
0028 virtual int writeOneOrigRigidBody(Alignable* ali);
0029
0030
0031 virtual AlignmentParameters* readOne(Alignable* ali, int& ierr) = 0;
0032
0033
0034 int write(const align::Alignables& alivec, bool validCheck);
0035
0036
0037 int writeOrigRigidBody(const align::Alignables& alivec, bool validCheck);
0038
0039
0040 align::Parameters read(const align::Alignables& alivec, int& ierr);
0041 };
0042
0043 #endif