CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/Calibration/Tools/interface/matrixSaver.h

Go to the documentation of this file.
00001 
00011 #ifndef __CINT__
00012 #ifndef matrixSaver_h
00013 #define matrixSaver_h
00014 
00015 //#include <memory>
00016 #include <vector>
00017 
00018 #include<string>
00019 #include<fstream>
00020 #include<iostream>
00021 
00022 #include "CLHEP/Matrix/GenMatrix.h"
00023 #include "CLHEP/Matrix/Matrix.h"
00024 #include "CLHEP/Matrix/Vector.h"
00025 
00026 class matrixSaver 
00027 {
00028 public:
00029 
00030   matrixSaver () ;
00031   ~matrixSaver () ;
00032   
00033   int saveMatrix (std::string outputFileName, 
00034                   const CLHEP::HepGenMatrix * saveMe) ;
00035 
00036   int saveMatrixVector (std::string outputFileName, 
00037                        const std::vector<CLHEP::HepGenMatrix*> &saveMe) ;
00038 
00039   int touch (std::string inputFileName) ;
00040 
00041   CLHEP::HepGenMatrix* getMatrix (std::string inputFileName) ;
00042   
00043   std::vector<CLHEP::HepGenMatrix*> * 
00044   getMatrixVector (std::string inputFileName) ;
00045   
00046   std::vector<CLHEP::HepMatrix> 
00047   getConcreteMatrixVector (std::string inputFileName) ;
00048 
00049 private:
00050 
00051 
00052 } ;
00053 
00054   std::istream &
00055   operator>> (std::istream& input, CLHEP::HepGenMatrix &matrix) ;
00056   
00057   std::ostream &
00058   operator<< (std::ostream& outputFile, const CLHEP::HepGenMatrix &saveMe) ;
00059 
00060 #endif
00061 #endif