CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/Alignment/CommonAlignmentAlgorithm/interface/AlignmentParametersIO.h

Go to the documentation of this file.
00001 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentParametersIO_h
00002 #define Alignment_CommonAlignmentAlgorithm_AlignmentParametersIO_h
00003 
00004 #include "Alignment/CommonAlignment/interface/Utilities.h"
00005 
00013 
00014 class AlignmentParametersIO 
00015 {
00016 
00017   protected:
00018 
00019   virtual  ~AlignmentParametersIO(){};
00020 
00022   virtual int open(const char* filename, int iteration, bool writemode) =0;
00023 
00025   virtual int close(void) =0;
00026 
00028   virtual int writeOne(Alignable* ali) = 0;
00029 
00031   virtual int writeOneOrigRigidBody(Alignable* ali);
00032 
00034   virtual AlignmentParameters* readOne(Alignable* ali, int& ierr) = 0;
00035 
00037   int write(const align::Alignables& alivec, bool validCheck);
00038 
00040   int writeOrigRigidBody(const align::Alignables& alivec, bool validCheck);
00041 
00043   align::Parameters read(const align::Alignables& alivec, int& ierr);
00044 
00045 };
00046 
00047 #endif