Hi All,
I construct an actual TMatrixD by simply grabbing information out of a histogram. (I realize that its kinda the same thing)
But when I do something like this:
TFile f("MyRootFile.root");
Plots.cd();
ofstream myout;
myout.open("MyFile.txt");
TMatrixD MyMatrix(8,27);
for (Int_t row=1;row<9;row++)
{
for (Int_t column=1;column<28;column++)
{
MyMatrix[row-1][column-1]=MyHistogram->GetBinContent(row,column);
}//end of loop over columns
}//end of loop over rows
myout<<MyMatrix.Print()<<endl;
myout.close()
It simply prints the matrix and does not write it into the file? Can anyone help with this?
thanks in advance,
J