CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
matrixSaver.h
Go to the documentation of this file.
1 
11 #ifndef __CINT__
12 #ifndef matrixSaver_h
13 #define matrixSaver_h
14 
15 //#include <memory>
16 #include <vector>
17 
18 #include<string>
19 #include<fstream>
20 #include<iostream>
21 
22 #include "CLHEP/Matrix/GenMatrix.h"
23 #include "CLHEP/Matrix/Matrix.h"
24 #include "CLHEP/Matrix/Vector.h"
25 
27 {
28 public:
29 
30  matrixSaver () ;
31  ~matrixSaver () ;
32 
34  const CLHEP::HepGenMatrix * saveMe) ;
35 
36  int saveMatrixVector (std::string outputFileName,
37  const std::vector<CLHEP::HepGenMatrix*> &saveMe) ;
38 
39  int touch (std::string inputFileName) ;
40 
41  CLHEP::HepGenMatrix* getMatrix (std::string inputFileName) ;
42 
43  std::vector<CLHEP::HepGenMatrix*> *
44  getMatrixVector (std::string inputFileName) ;
45 
46  std::vector<CLHEP::HepMatrix>
47  getConcreteMatrixVector (std::string inputFileName) ;
48 
49 private:
50 
51 
52 } ;
53 
54  std::istream &
55  operator>> (std::istream& input, CLHEP::HepGenMatrix &matrix) ;
56 
57  std::ostream &
58  operator<< (std::ostream& outputFile, const CLHEP::HepGenMatrix &saveMe) ;
59 
60 #endif
61 #endif
int saveMatrix(std::string outputFileName, const CLHEP::HepGenMatrix *saveMe)
Definition: matrixSaver.cc:58
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
std::vector< CLHEP::HepGenMatrix * > * getMatrixVector(std::string inputFileName)
Definition: matrixSaver.cc:174
save (read) CLHEP::HepMatrix to (from) text files
Definition: matrixSaver.h:26
int touch(std::string inputFileName)
Definition: matrixSaver.cc:138
CLHEP::HepGenMatrix * getMatrix(std::string inputFileName)
Definition: matrixSaver.cc:147
std::istream & operator>>(std::istream &input, CLHEP::HepGenMatrix &matrix)
Definition: matrixSaver.cc:111
int saveMatrixVector(std::string outputFileName, const std::vector< CLHEP::HepGenMatrix * > &saveMe)
Definition: matrixSaver.cc:80
std::vector< CLHEP::HepMatrix > getConcreteMatrixVector(std::string inputFileName)
Definition: matrixSaver.cc:218