Ignore:
Timestamp:
10/24/02 16:29:40 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHMatrix.cc

    r1524 r1553  
    316316// Prints the meaning of the columns and the contents of the matrix.
    317317// Becareful, this can take a long time for matrices with many rows.
    318 //
    319 void MHMatrix::Print(Option_t *) const
    320 {
    321     if (fData)
     318// Use the option 'size' to print the size of the matrix.
     319// Use the option 'cols' to print the culumns
     320// Use the option 'data' to print the contents
     321//
     322void MHMatrix::Print(Option_t *o) const
     323{
     324    TString str(o);
     325
     326    if (str.Contains("size", TString::kIgnoreCase))
     327    {
     328        *fLog << all << GetDescriptor() << ": NumColumns=" << fM.GetNcols();
     329        *fLog << " NumRows=" << fM.GetNrows() << endl;
     330    }
     331
     332    if (!fData && str.Contains("cols", TString::kIgnoreCase))
     333        *fLog << all << "Sorry, no column information available." << endl;
     334
     335    if (fData && str.Contains("cols", TString::kIgnoreCase))
    322336        fData->Print();
    323     else
    324         *fLog << all << "Sorry, no column information available." << endl;
    325 
    326     fM.Print();
     337
     338    if (str.Contains("data", TString::kIgnoreCase))
     339        fM.Print();
    327340}
    328341
Note: See TracChangeset for help on using the changeset viewer.