- Timestamp:
- 10/24/02 16:29:40 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1552 r1553 1 1 -*-*- 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 2 13 2002/10/19: Abelardo Moralejo 3 14 4 15 * 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 7 19 8 20 -
trunk/MagicSoft/Mars/macros/multidimdist.C
r1337 r1553 48 48 // CalEvents: Calibration Events 49 49 // 50 MReadMarsFile read("Events", " star.root");50 MReadMarsFile read("Events", "~/Mars/star2.root"); 51 51 read.DisableAutoScheme(); 52 52 tlist.AddToList(&read); … … 73 73 74 74 MHMatrix matrix2("MatrixHadrons"); 75 matrix2.AddColumns( &matrix);75 matrix2.AddColumns(matrix.GetColumns()); 76 76 plist.AddToList(&matrix2); 77 77 … … 98 98 tlist.PrintStatistics(); 99 99 100 fillmat.Print("size"); 101 fillmat2.Print("size"); 102 100 103 // --------------------------------------------------------- 101 104 … … 104 107 plist.Replace(&tlist2); 105 108 106 MReadMarsFile read2("Events", " star2.root");109 MReadMarsFile read2("Events", "~/Mars/star2.root"); 107 110 read2.DisableAutoScheme(); 108 111 tlist2.AddToList(&read2); 109 112 110 MMultiDimDistCalc calc(5); 113 MMultiDimDistCalc calc; 114 calc.SetUseNumRows(0); 115 calc.SetUseKernelMethod(kTRUE); 111 116 tlist2.AddToList(&calc); 112 117 -
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1524 r1553 316 316 // Prints the meaning of the columns and the contents of the matrix. 317 317 // 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 // 322 void 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)) 322 336 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(); 327 340 } 328 341
Note:
See TracChangeset
for help on using the changeset viewer.