/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Calibration/Tools/interface/matrixSaver.h
47 строк
1 KB
Cms Build
Clang-Format
16 май 2019, 15:48
16 май 2019, 15:48
99a83f0
Код
Авторство
О чём код?
/** \class matrixSaver \brief save (read) CLHEP::HepMatrix to (from) text files */ #ifndef __CINT__ #ifndef matrixSaver_h #define matrixSaver_h //#include <memory> #include <vector> #include <string> #include <fstream> #include <iostream> #include "CLHEP/Matrix/GenMatrix.h" #include "CLHEP/Matrix/Matrix.h" #include "CLHEP/Matrix/Vector.h" class matrixSaver { public: matrixSaver(); ~matrixSaver(); int saveMatrix(std::string outputFileName, const CLHEP::HepGenMatrix* saveMe); int saveMatrixVector(std::string outputFileName, const std::vector<CLHEP::HepGenMatrix*>& saveMe); bool touch(std::string inputFileName); CLHEP::HepGenMatrix* getMatrix(std::string inputFileName); std::vector<CLHEP::HepGenMatrix*>* getMatrixVector(std::string inputFileName); std::vector<CLHEP::HepMatrix> getConcreteMatrixVector(std::string inputFileName); private: }; std::istream& operator>>(std::istream& input, CLHEP::HepGenMatrix& matrix); std::ostream& operator<<(std::ostream& outputFile, const CLHEP::HepGenMatrix& saveMe); #endif #endif