test
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 
7 #ifndef __CINT__
8 #ifndef matrixSaver_h
9 #define matrixSaver_h
10 
11 //#include <memory>
12 #include <vector>
13 
14 #include<string>
15 #include<fstream>
16 #include<iostream>
17 
18 #include "CLHEP/Matrix/GenMatrix.h"
19 #include "CLHEP/Matrix/Matrix.h"
20 #include "CLHEP/Matrix/Vector.h"
21 
23 {
24 public:
25 
26  matrixSaver () ;
27  ~matrixSaver () ;
28 
30  const CLHEP::HepGenMatrix * saveMe) ;
31 
32  int saveMatrixVector (std::string outputFileName,
33  const std::vector<CLHEP::HepGenMatrix*> &saveMe) ;
34 
36 
37  CLHEP::HepGenMatrix* getMatrix (std::string inputFileName) ;
38 
39  std::vector<CLHEP::HepGenMatrix*> *
40  getMatrixVector (std::string inputFileName) ;
41 
42  std::vector<CLHEP::HepMatrix>
43  getConcreteMatrixVector (std::string inputFileName) ;
44 
45 private:
46 
47 
48 } ;
49 
50  std::istream &
51  operator>> (std::istream& input, CLHEP::HepGenMatrix &matrix) ;
52 
53  std::ostream &
54  operator<< (std::ostream& outputFile, const CLHEP::HepGenMatrix &saveMe) ;
55 
56 #endif
57 #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:188
static std::string const input
Definition: EdmProvDump.cc:44
std::vector< CLHEP::HepGenMatrix * > * getMatrixVector(std::string inputFileName)
Definition: matrixSaver.cc:173
save (read) CLHEP::HepMatrix to (from) text files
Definition: matrixSaver.h:22
bool touch(std::string inputFileName)
Definition: matrixSaver.cc:137
CLHEP::HepGenMatrix * getMatrix(std::string inputFileName)
Definition: matrixSaver.cc:146
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:217