- Timestamp:
- 08/06/02 08:49:51 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1483 r1484 1 1 -*-*- END -*-*- 2 3 2002/08/06: Thomas Bretz 4 5 * mhist/MHHillas.cc: 6 - fixed setting of binning for fCamera 7 8 * mhist/MH.cc, mhist/MBinning.cc: 9 - added sanity check in ApplyBinning and Apply 10 11 2 12 3 13 2002/08/05: Thomas Bretz -
trunk/MagicSoft/Mars/mhist/MBinning.cc
r1483 r1484 31 31 32 32 #include <fstream.h> 33 34 #include <TH1.h> // InheritsFrom 35 36 #include "MLog.h" 37 #include "MLogManip.h" 33 38 34 39 #include "MH.h" … … 97 102 void MBinning::Apply(TH1 &h) 98 103 { 104 if (h.InheritsFrom("TH2") || h.InheritsFrom("TH3")) 105 { 106 *fLog << warn << "MBinning::Apply: '" << h.GetName() << "' is not a basic TH1 object... no binning applied." << endl; 107 return; 108 } 109 99 110 MH::SetBinning(&h, this); 100 111 } -
trunk/MagicSoft/Mars/mhist/MH.cc
r1463 r1484 366 366 Bool_t MH::ApplyBinning(const MParList &plist, TString name, TH1 *h) 367 367 { 368 if (h->InheritsFrom(TH2::Class()) || h->InheritsFrom(TH3::Class())) 369 { 370 gLog << warn << "MH::ApplyBinning: '" << h->GetName() << "' is not a basic TH1 object... no binning applied." << endl; 371 return kFALSE; 372 } 373 368 374 const MBinning *bins = (MBinning*)plist.FindObject("Binning"+name); 369 375 if (!bins)
Note:
See TracChangeset
for help on using the changeset viewer.