Changeset 1355
- Timestamp:
- 06/10/02 09:09:13 (23 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1354 r1355 1 1 -*-*- END -*-*- 2 2 2002/06/10: Thomas Bretz 3 4 * mbase/MReadMarsFile.cc: 5 - changed name of fRun to ReadRunHeaders 6 7 * mbase/MReadTree.cc: 8 - changed output to show name of class 3 9 4 10 * macros/plot.C: -
trunk/MagicSoft/Mars/mbase/MReadMarsFile.cc
r1342 r1355 63 63 // open the input stream 64 64 // 65 fRun = new MReadTree("RunHeaders", fname );65 fRun = new MReadTree("RunHeaders", fname, "ReadRunHeaders"); 66 66 67 67 // -
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r1344 r1355 193 193 Bool_t MReadTree::Notify() 194 194 { 195 *fLog << inf << "MReadTree: Notify '" << fChain->GetName() << "' ";196 *fLog << " (before processing event #" << GetEventNum()-1 << ")" << endl;195 *fLog << inf << GetDescriptor() << ": Notify '" << fChain->GetName(); 196 *fLog << "' (before processing event #" << GetEventNum()-1 << ")" << endl; 197 197 198 198 //fNotify->Notify(); … … 237 237 return; 238 238 239 *fLog << inf << "Branch choosing method enabled (only enabled branches are read)." << endl;239 *fLog << inf << GetDescriptor() << ": Branch choosing method enabled (only enabled branches are read)." << endl; 240 240 fChain->SetBranchStatus("*", kFALSE); 241 241 fBranchChoosing = kTRUE; … … 341 341 if (!tlist) 342 342 { 343 *fLog << warn << "Cannot use auto enabeling scheme for branches. 'MTaskList' not found." << endl;343 *fLog << warn << GetDescriptor() << "Cannot use auto enabeling scheme for branches. 'MTaskList' not found." << endl; 344 344 return; 345 345 } … … 537 537 } 538 538 539 *fLog << inf << "MReadTreesetup " << num << " master branches addresses." << endl;539 *fLog << inf << GetDescriptor() << " setup " << num << " master branches addresses." << endl; 540 540 541 541 // … … 674 674 if (fNumEntry-dec >= fNumEntries) 675 675 { 676 *fLog << warn << "MReadTree::DecEventNum:WARNING - Event " << fNumEntry << "-";676 *fLog << warn << GetDescriptor() << ": DecEventNum, WARNING - Event " << fNumEntry << "-"; 677 677 *fLog << dec << "=" << (Int_t)fNumEntry-dec << " out of Range." << endl; 678 678 return kFALSE; … … 692 692 if (fNumEntry+inc >= fNumEntries) 693 693 { 694 *fLog << warn << "MReadTree::IncEventNum:WARNING - Event " << fNumEntry << "+";694 *fLog << warn << GetDescriptor() << ": IncEventNum, WARNING - Event " << fNumEntry << "+"; 695 695 *fLog << inc << "=" << (Int_t)fNumEntry+inc << " out of Range." << endl; 696 696 return kFALSE; … … 712 712 if (nr >= fNumEntries) 713 713 { 714 *fLog << warn << "MReadTree::SetEventNum:WARNING - " << nr << " out of Range." << endl;714 *fLog << warn << GetDescriptor() << ": SetEventNum, WARNING - " << nr << " out of Range." << endl; 715 715 return kFALSE; 716 716 } -
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1354 r1355 192 192 Bool_t MHMatrix::Finalize() 193 193 { 194 // 195 // It's not a fatal error so we don't need to stop PostProcessing... 196 // 197 if (fData->GetSize()<1 || fNumRow<1) 198 return kTRUE; 199 194 200 TMatrix m(fM); 195 201 … … 302 308 const Int_t cols = m.GetNcols(); 303 309 304 for (int i=0; i<cols; i++)310 for (int x=0; x<cols; x++) 305 311 { 306 312 Double_t avg = 0; 307 for (int j=0; j<rows; j++)308 avg += fM( j, i);313 for (int y=0; y<rows; y++) 314 avg += fM(y, x); 309 315 310 316 avg /= rows; 311 317 312 for (int j=0; j<rows; j++)313 m( j, i) -= avg;318 for (int y=0; y<rows; y++) 319 m(y, x) -= avg; 314 320 } 315 321 -
trunk/MagicSoft/Mars/mhist/MHMatrix.h
r1353 r1355 39 39 const TList *GetRules() const { return fRules; } 40 40 41 void SetEnergy(MHMatrix *m) { fEnergy = m; }42 43 41 //void Draw(Option_t *opt=NULL); 44 42 //TObject *DrawClone(Option_t *opt=NULL) const; -
trunk/WuerzburgSoft/Thomas/mphys/phys.C
r1352 r1355 700 700 Double_t runtime = 15*60; ///*18*60*/60; // [s] 701 701 702 Double_t lo = 2e 4;702 Double_t lo = 2e5; 703 703 Double_t hi = 2e10; 704 704 Double_t alpha = -2; … … 745 745 // 746 746 hist.SetFillStyle(0); 747 hist.SetMarkerStyle( 2);747 hist.SetMarkerStyle(kPlus); 748 748 histsrc.SetFillStyle(0); 749 histsrc.SetMarkerStyle( 2);749 histsrc.SetMarkerStyle(kMultiply); 750 750 751 751 MBinning bins; … … 817 817 818 818 fcas << p->GetEnergy() << endl; 819 820 listg.Remove(p); 819 delete listg.Remove(p); 821 820 continue; 822 821 } … … 837 836 } 838 837 839 listg.Remove(p);838 delete listg.Remove(p); 840 839 cout << "." << flush; 841 840 } … … 905 904 gPad->Clear(); 906 905 907 histsrc.SetTitle(Form("E^%.1f, z=%f, T=%d'%d\", N=%d", alpha, startz, (int)runtime/60, (int)runtime%60, n)); 906 hist.SetTitle(Form("E^%.1f, z=%f, T=%d'%d\", N=%d", alpha, startz, (int)runtime/60, (int)runtime%60, n)); 907 gPad->Modified(); 908 gPad->Update(); 908 909 909 910 hist.DrawCopy("P");
Note:
See TracChangeset
for help on using the changeset viewer.