Changeset 8746
- Timestamp:
- 09/17/07 16:56:20 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8745 r8746 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2007/09/17 Thomas Bretz 22 23 * mbase/MEvtLoop.cc, mbase/MStatusDisplay.cc, mjobs/MJSpectrum.cc: 24 - do not create an instance of TDatime if not necessary 25 26 * mbase/MStatusDisplay.cc, mfileio/MReadTree.cc: 27 - improvements in inf debugging levels 28 29 * mhflux/MMcSpectrumWeight.cc: 30 - removed a double brace in an output 31 - more acurrately print the new formula/slope when set 32 33 * mjobs/MJSpectrum.cc: 34 - improved output in case of an error 35 - added text to describe the two example spectra 36 - write MC dataset to output 37 38 20 39 21 40 2007/09/12 Markus Meyer -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r8744 r8746 575 575 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Statistics_t printstat) 576 576 { 577 TDatime d; 578 *fLog << inf << underline << "Eventloop: " << fName << " started at " << d.AsString() << endl; 577 *fLog << inf << endl << underline << "Eventloop: " << fName << " started at " << TDatime().AsString() << endl; 579 578 580 579 Bool_t rc = PreProcess(); -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r8709 r8746 472 472 473 473 // Add date and time 474 TDatime d; 475 l = new TGLabel(f, d.AsString()); 474 l = new TGLabel(f, TDatime().AsString()); 476 475 fList->Add(l); 477 476 f->AddFrame(l, lay); … … 980 979 gClient->ProcessEventsFor(fTab); 981 980 982 *fLog << inf << "Adding Raw Tab '" << name << "' (" << f->GetWidth() << "x";981 *fLog << inf3 << "Adding Raw Tab '" << name << "' (" << f->GetWidth() << "x"; 983 982 *fLog << f->GetHeight() << ")" << endl; 984 983 … … 1091 1090 gClient->ProcessEventsFor(fTab); 1092 1091 1093 *fLog << inf << "Adding Tab '" << name << "' (" << f->GetWidth() << "x";1092 *fLog << inf3 << "Adding Tab '" << name << "' (" << f->GetWidth() << "x"; 1094 1093 *fLog << f->GetHeight() << ", TCanvas=" << &c << ")" << endl; 1095 1094 … … 2590 2589 2591 2590 if (num<0) 2592 *fLog << " - Updating header of PS file... " << flush;2591 *fLog << inf3 << " - Updating header of PS file... " << flush; 2593 2592 UpdatePSHeader(name); 2594 2593 if (num<0) 2595 *fLog << inf << "done." << endl;2594 *fLog << inf3 << "done." << endl; 2596 2595 } 2597 2596 -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r8744 r8746 848 848 fTree->SetBranchAddress(bname, pcont); // *CHANGED-fChain-to-fTree* 849 849 850 *fLog << inf << "Master branch address '" << bname << "' ";850 *fLog << inf2 << "Master branch address '" << bname << "' "; 851 851 if ((TString)bname!=(TString)classname) 852 852 *fLog << "[" << classname << "] "; … … 859 859 } 860 860 861 *fLog << inf << GetDescriptor() << " setup " << num << " master branches addresses." << endl;861 *fLog << inf2 << GetDescriptor() << " setup " << num << " master branches addresses." << endl; 862 862 863 863 // -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8720 r8746 364 364 { 365 365 *fLog << err; 366 *fLog << "ERROR - The maximum simulated Monte Carlo energy is not allowed to change (";366 *fLog << "ERROR - The maximum simulated Monte Carlo energy is not allowed to change "; 367 367 *fLog << "(" << fEnergyMax << " --> " << rh.GetEUppLim() << ")... abort." << endl; 368 368 return kFALSE; … … 392 392 fEnergyMax = rh.GetEUppLim(); 393 393 394 if (fNewSlope==-99 )395 { 396 *fLog << inf << "A new slope for the power law has not been defined... no weighting applied." << endl;394 if (fNewSlope==-99 && fFormula.IsNull()) 395 { 396 *fLog << inf << "A new slope for the power law has not yet been defined... using " << fOldSlope << "." << endl; 397 397 fNewSlope = fOldSlope; 398 398 } … … 400 400 if (fFunc) 401 401 delete fFunc; 402 403 if (GetFormulaSpecOld()==GetFormulaSpecNew()) 404 *fLog << inf << "No spectral change requested..." << endl; 405 else 406 { 407 *fLog << inf << "Weighting from slope " << fOldSlope << " to "; 408 if (fFormula.IsNull()) 409 *fLog << "slope " << fNewSlope << "." << endl; 410 else 411 *fLog << GetFormulaSpecNewX() << endl; 412 } 402 413 403 414 fFunc = new TF1("", GetFormulaWeightsX()); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8744 r8746 333 333 { 334 334 // Some debug output 335 *fLog << all << endl; 335 336 fLog->Separator("Compiling original MC distribution"); 336 337 … … 455 456 if (!weight.Set(*head)) 456 457 { 457 *fLog << err << "ERROR - Initializing MMcSpectrumWeight f ailed." << endl;458 *fLog << err << "ERROR - Initializing MMcSpectrumWeight from " << fname << " failed." << endl; 458 459 return kFALSE; 459 460 } … … 463 464 464 465 // No we found everything... go on reading contents 465 *fLog << inf << "Reading OriginalMC of " << fname << endl;466 *fLog << inf2 << "Reading OriginalMC of " << fname << endl; 466 467 467 468 // Fill histogram from tree … … 948 949 gPad->SetGridy(); 949 950 TH1D *spec=(TH1D*)spectrum.DrawCopy(); 950 FitSpectrum(*spec);951 //FitSpectrum(*spec); 951 952 952 953 c1.cd(3); … … 985 986 spec = (TH1D*)spectrum.DrawCopy(); 986 987 988 TLatex tex; 989 987 990 TF1 fc("Crab", "7.0e-6*(x/300)^(-2.31-0.26*log10(x/300))", 100, 6000); 988 991 fc.SetLineStyle(7); … … 991 994 fc.DrawCopy("same"); 992 995 996 tex.DrawText(90, fc.Eval(100), "Crab (\\Gamma=-2.31)"); 997 993 998 TF1 fa("PG1553", "1.8e-6*(x/200)^-4.21", 90, 600); 994 999 static_cast<const TAttLine&>(fc).Copy(fa); 995 1000 fa.DrawCopy("same"); 1001 1002 tex.DrawText(90, fa.Eval(90), "PG1553 (\\Gamma=-4.21)"); 996 1003 997 1004 // Display dN/dE*E^2 for conveinience … … 1329 1336 *fLog << inf; 1330 1337 fLog->Separator(GetDescriptor()); 1331 *fLog << "Compile Monte Carlo Sample (dataset " << set.GetName() << ")" << endl;1338 *fLog << "Compile Monte Carlo sample (dataset " << set.GetName() << ")" << endl; 1332 1339 *fLog << endl; 1333 1340 … … 1696 1703 cont.Add(&area1); 1697 1704 cont.Add(&hest); 1705 cont.Add(&set); 1698 1706 1699 1707 if (fDisplay)
Note:
See TracChangeset
for help on using the changeset viewer.