Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:37

0001 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentCorrelationsIO_h
0002 #define Alignment_CommonAlignmentAlgorithm_AlignmentCorrelationsIO_h
0003 
0004 #include "Alignment/CommonAlignment/interface/Utilities.h"
0005 
0006 /// Abstract base class for IO of Correlations
0007 
0008 class AlignmentCorrelationsIO {
0009 protected:
0010   /// destructor
0011   virtual ~AlignmentCorrelationsIO() {}
0012 
0013   /// open IO
0014   virtual int open(const char* filename, int iteration, bool writemode) = 0;
0015 
0016   /// close IO
0017   virtual int close(void) = 0;
0018 
0019   /// write correlations
0020   virtual int write(const align::Correlations& cor, bool validCheck) = 0;
0021 
0022   /// read correlations
0023   virtual align::Correlations read(const align::Alignables& alivec, int& ierr) = 0;
0024 };
0025 
0026 #endif