Changeset 1553 for trunk


Ignore:
Timestamp:
10/24/02 16:29:40 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1552 r1553  
    11                                                                  -*-*- END -*-*-
     2
     3 2002/10/24: Thomas Bretz
     4
     5   * macros/multidimdist.C:
     6     - some changes to make it work with the latest version of Mars
     7
     8   * mhist/MHMatrix.cc:
     9     - changed the Print member function to be more flexible
     10
     11
     12
    213 2002/10/19: Abelardo Moralejo
    314
    415   * manalysis/MCerPhotCalc.cc
    5      -Added check of whether a pixel has all its FADC slices empty before
    6       subtracting pedestal.
     16     - Added check of whether a pixel has all its FADC slices empty before
     17       subtracting pedestal.
     18
    719
    820
  • trunk/MagicSoft/Mars/macros/multidimdist.C

    r1337 r1553  
    4848    //   CalEvents:  Calibration Events
    4949    //
    50     MReadMarsFile  read("Events", "star.root");
     50    MReadMarsFile  read("Events", "~/Mars/star2.root");
    5151    read.DisableAutoScheme();
    5252    tlist.AddToList(&read);
     
    7373
    7474    MHMatrix matrix2("MatrixHadrons");
    75     matrix2.AddColumns(&matrix);
     75    matrix2.AddColumns(matrix.GetColumns());
    7676    plist.AddToList(&matrix2);
    7777
     
    9898    tlist.PrintStatistics();
    9999
     100    fillmat.Print("size");
     101    fillmat2.Print("size");
     102
    100103    // ---------------------------------------------------------
    101104
     
    104107    plist.Replace(&tlist2);
    105108
    106     MReadMarsFile read2("Events", "star2.root");
     109    MReadMarsFile read2("Events", "~/Mars/star2.root");
    107110    read2.DisableAutoScheme();
    108111    tlist2.AddToList(&read2);
    109112
    110     MMultiDimDistCalc calc(5);
     113    MMultiDimDistCalc calc;
     114    calc.SetUseNumRows(0);
     115    calc.SetUseKernelMethod(kTRUE);
    111116    tlist2.AddToList(&calc);
    112117
  • 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.