10 #include "CLHEP/Matrix/GenMatrix.h" 11 #include "CLHEP/Matrix/Matrix.h" 12 #include "CLHEP/Matrix/Vector.h" 25 int numRow = saveMe->num_row();
26 int numCol = saveMe->num_col();
29 outputFile << numRow <<
'\t' << numCol <<
'\n';
32 for (
int row = 0; row < numRow; ++row) {
49 int numRow = saveMe->num_row();
50 int numCol = saveMe->num_col();
53 outputFile << numRow <<
'\t' << numCol <<
'\n';
61 typedef std::vector<CLHEP::HepGenMatrix *>::const_iterator const_iterator;
70 outputFile << (*saveMe.begin())->num_row() <<
'\t' << (*saveMe.begin())->num_col() <<
'\n';
73 for (const_iterator
it = saveMe.begin();
it != saveMe.end(); ++
it) {
93 for (
int row = 0; row < numRow; ++row) {
122 CLHEP::HepGenMatrix *
matrix;
124 matrix =
new CLHEP::HepMatrix(numRow, numCol, 0);
126 matrix =
new CLHEP::HepVector(numRow, 0);
149 std::vector<CLHEP::HepGenMatrix *> *matrixVector =
new std::vector<CLHEP::HepGenMatrix *>(numElem);
152 for (
int i = 0;
i < numElem; ++
i) {
154 CLHEP::HepGenMatrix *
matrix;
158 matrix =
new CLHEP::HepMatrix(numRow, numCol, 0);
160 matrix =
new CLHEP::HepVector(numRow, 0);
188 std::vector<CLHEP::HepMatrix> matrixVector(numElem, CLHEP::HepMatrix(numRow, numCol, 0));
191 for (
int i = 0;
i < numElem; ++
i) {
int saveMatrix(std::string outputFileName, const CLHEP::HepGenMatrix *saveMe)
int saveMatrixVector(std::string outputFileName, const std::vector< CLHEP::HepGenMatrix *> &saveMe)
static std::string const input
std::vector< CLHEP::HepGenMatrix * > * getMatrixVector(std::string inputFileName)
bool touch(std::string inputFileName)
CLHEP::HepGenMatrix * getMatrix(std::string inputFileName)
std::ostream & operator<<(std::ostream &outputFile, const CLHEP::HepGenMatrix *saveMe)
std::istream & operator>>(std::istream &input, CLHEP::HepGenMatrix &matrix)
std::vector< CLHEP::HepMatrix > getConcreteMatrixVector(std::string inputFileName)