Changeset 6907
- Timestamp:
- 04/04/05 10:18:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6906 r6907 39 39 * mjobs/MJStar.cc: 40 40 - added MPointingPosCalc to tasklist for "Events" in case of MC 41 42 * ganymed.cc, mjobs/MJCut.[h,cc]: 43 - implemented an option to enhance the display 44 - do not display FS plot in wobble mode 45 - made sure files are not written when they should not be written 46 47 * mhflux/MHAlpha.[h,cc]: 48 - let FitEnergyBins return the mean of the significance of 49 all Energy Bins 50 51 * mimage/MHHillasExt.cc, mimage/MHHillasSrc.cc, 52 mimage/MHImagePar.cc, mimage/MHNewImagePar.cc: 53 - implemented or fixed implementation of "same" Draw-option 54 - slightly modified binning for Dist in MHHillasSrc 55 56 * mjobs/MJCalibrateSignal.cc: 57 - do not plot pulse time twice 58 59 * mjobs/MJOptimize.cc: 60 - print all parameters in minuit after they have been 61 setup 41 62 42 63 -
trunk/MagicSoft/Mars/ganymed.cc
r6890 r6907 69 69 gLog << " --print-ds Print Dataset information" << endl; 70 70 gLog << " --print-files Print Files taken from Sequences ('+' found, '-' missing)" << endl; 71 gLog << " --full-display Show as many plots as possible" << endl; 71 72 gLog << " --config=ganymed.rc Resource file [default=ganymed.rc]" << endl; 72 73 gLog << endl; … … 110 111 const Bool_t kDebugMem = arg.HasOnlyAndRemove("--debug-mem"); 111 112 const Bool_t kWriteOnly = arg.HasOnlyAndRemove("--write-only"); 113 const Bool_t kFullDisplay = arg.HasOnlyAndRemove("--full-display"); 112 114 Int_t kDebugEnv = arg.HasOnlyAndRemove("--debug-env") ? 1 : 0; 113 115 kDebugEnv = arg.GetIntAndRemove("--debug-env=", kDebugEnv); … … 235 237 job.EnableWriteOnly(kWriteOnly); 236 238 job.EnableWobbleMode(iswobble); 239 job.EnableFullDisplay(kFullDisplay); 237 240 if (kWriteSummary) // Don't change flag set in SetNameSummaryFile 238 241 job.EnableStorageOfSummary(); -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r6906 r6907 184 184 } 185 185 186 voidMHAlpha::FitEnergyBins(Bool_t paint)186 Float_t MHAlpha::FitEnergyBins(Bool_t paint) 187 187 { 188 188 // Do not store the 'final' result in fFit … … 193 193 fHEnergy.SetEntries(0); 194 194 195 Float_t mean = 0; 196 Int_t num = 0; 195 197 for (int i=1; i<=n; i++) 196 198 { … … 202 204 else 203 205 fHEnergy.SetBinError(i, fit.GetEventsExcess()); 204 } 205 } 206 207 if (fit.GetSignificance()>1) 208 { 209 mean += fit.GetSignificance(); 210 num++; 211 } 212 } 213 } 214 return mean/num; 206 215 } 207 216 … … 412 421 fHAlphaTime.SetEntries(0); 413 422 414 // Get number of bins415 const Int_t n = fHTime.GetNbinsX();416 417 423 // 418 424 // Prepare Histogram … … 420 426 if (final) 421 427 time->Plus1ns(); 428 429 // Get number of bins 430 const Int_t n = fHTime.GetNbinsX(); 422 431 423 432 // Enhance binning -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r6240 r6907 117 117 118 118 void FitEnergySpec(Bool_t paint=kFALSE); 119 voidFitEnergyBins(Bool_t paint=kFALSE);119 Float_t FitEnergyBins(Bool_t paint=kFALSE); 120 120 void FitThetaBins(Bool_t paint=kFALSE); 121 121 -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r5142 r6907 244 244 // together with the canvas. 245 245 // 246 void MHHillasExt::Draw(Option_t * )246 void MHHillasExt::Draw(Option_t *o) 247 247 { 248 248 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); … … 251 251 AppendPad(""); 252 252 253 pad->Divide(2, 2); 253 // FIXME: If same-option given make two independant y-axis! 254 const TString opt(o); 255 const Bool_t same = opt.Contains("same"); 256 257 if (!same) 258 pad->Divide(2,2); 259 else 260 { 261 fHM3Long.SetLineColor(kMagenta); 262 fHM3Trans.SetLineColor(kCyan); 263 264 fHAsym.SetLineColor(kBlue); 265 fHMaxDist.SetLineColor(kBlue); 266 } 254 267 255 268 pad->cd(1); 256 269 gPad->SetBorderMode(0); 257 MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments" );270 MH::DrawSame(fHM3Long, fHM3Trans, "3^{rd} Moments", same); 258 271 259 272 pad->cd(3); 260 273 gPad->SetBorderMode(0); 261 fHAsym.Draw( );274 fHAsym.Draw(same?"same":""); 262 275 263 276 pad->cd(2); 264 277 gPad->SetBorderMode(0); 265 fHMaxDist.Draw( );278 fHMaxDist.Draw(same?"same":""); 266 279 267 280 delete pad->GetPad(4); -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r5142 r6907 71 71 // 72 72 fAlpha = new TH1F("Alpha", "Alpha of Ellipse", 90, -90, 90); 73 fDist = new TH1F("Dist", "Dist of Ellipse", 100, 0, 445);73 fDist = new TH1F("Dist", "Dist of Ellipse", 70, 0, 623); 74 74 fCosDA = new TH1F("CosDA", "cos(Delta,Alpha) of Ellipse", 101, -1, 1); 75 75 fDCA = new TH1F("DCA", "Distance of closest aproach", 101, -500, 500); … … 214 214 // together with the canvas. 215 215 // 216 void MHHillasSrc::Draw(Option_t * )216 void MHHillasSrc::Draw(Option_t *o) 217 217 { 218 218 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); … … 223 223 // FIXME: Display Source position 224 224 225 pad->Divide(2, 2); 225 // FIXME: If same-option given make two independant y-axis! 226 const TString opt(o); 227 const Bool_t same = opt.Contains("same"); 228 229 if (!same) 230 pad->Divide(2,2); 231 else 232 { 233 fAlpha->SetLineColor(kGreen); 234 fDist->SetLineColor(kGreen); 235 fDCA->SetLineColor(kGreen); 236 fCosDA->SetLineColor(kGreen); 237 fDCADelta->SetLineColor(kGreen); 238 } 226 239 227 240 pad->cd(1); 228 241 gPad->SetBorderMode(0); 229 fAlpha->Draw( );242 fAlpha->Draw(same?"same":""); 230 243 231 244 pad->cd(2); 232 245 gPad->SetBorderMode(0); 233 fDist->Draw( );246 fDist->Draw(same?"same":""); 234 247 235 248 pad->cd(3); 236 249 gPad->SetBorderMode(0); 237 fDCA->Draw( );250 fDCA->Draw(same?"same":""); 238 251 239 252 pad->cd(4); … … 241 254 242 255 TVirtualPad *p = gPad; 243 p->Divide(1,2); 256 if (!same) 257 p->Divide(1,2); 244 258 p->cd(1); 245 259 gPad->SetBorderMode(0); 246 fCosDA->Draw( );260 fCosDA->Draw(same?"same":""); 247 261 248 262 p->cd(2); 249 263 gPad->SetBorderMode(0); 250 fDCADelta->Draw( );264 fDCADelta->Draw(same?"same":""); 251 265 } 252 266 -
trunk/MagicSoft/Mars/mimage/MHImagePar.cc
r6869 r6907 231 231 pad->Divide(2,2); 232 232 else 233 { 234 fHistSatHi.SetLineColor(kMagenta); 235 fHistSatLo.SetLineColor(kCyan); 236 237 fHistSizeMainIsland.SetLineColor(kMagenta); 238 fHistSizeSubIslands.SetLineColor(kCyan); 239 233 240 fHistIslands.SetLineColor(kGreen); 234 241 fHistNumSP.SetLineColor(kGreen); 242 fHistSizeSP.SetLineColor(kGreen); 243 } 244 245 pad->cd(1); 246 gPad->SetBorderMode(0); 247 MH::DrawSame(fHistSatHi, fHistSatLo, "Saturating Pixels", same); 248 fHistSatHi.SetMinimum(); // switch off to allow log-scale 249 fHistSatLo.SetMinimum(); // switch off to allow log-scale 250 fHistSatLo.SetMaximum(0.1); // dummy value to allow log-scale 251 252 pad->cd(4); 253 gPad->SetBorderMode(0); 254 MH::DrawSame(fHistSizeMainIsland, fHistSizeSubIslands, "Sizes...", same); 255 fHistSizeMainIsland.SetMinimum(); // switch off to allow log-scale 256 fHistSizeSubIslands.SetMinimum(); // switch off to allow log-scale 257 fHistSizeSubIslands.SetMaximum(0.1); // dummy value to allow log-scale 258 259 pad->cd(2); 260 gPad->SetBorderMode(0); 235 261 if (!same) 262 pad->GetPad(2)->Divide(1,2,1e-10,1e-10); 263 if (pad->GetPad(2)) 236 264 { 237 pad-> cd(1);265 pad->GetPad(2)->cd(1); 238 266 gPad->SetBorderMode(0); 239 MH::DrawSame(fHistSatHi, fHistSatLo, "Saturating Pixels"); 240 fHistSatHi.SetMinimum(); // switch off to allow log-scale 241 fHistSatLo.SetMinimum(); // switch off to allow log-scale 242 fHistSatLo.SetMaximum(0.1); // dummy value to allow log-scale 243 244 pad->cd(4); 267 fHistNumSP.Draw(same?"same":""); 268 pad->GetPad(2)->cd(2); 245 269 gPad->SetBorderMode(0); 246 MH::DrawSame(fHistSizeMainIsland, fHistSizeSubIslands, "Sizes..."); 247 fHistSizeMainIsland.SetMinimum(); // switch off to allow log-scale 248 fHistSizeSubIslands.SetMinimum(); // switch off to allow log-scale 249 fHistSizeSubIslands.SetMaximum(0.1); // dummy value to allow log-scale 270 fHistSizeSP.Draw(same?"same":""); 250 271 } 251 252 pad->cd(2);253 gPad->SetBorderMode(0);254 pad->GetPad(2)->Divide(1,2,1e-10,1e-10);255 pad->GetPad(2)->cd(1);256 gPad->SetBorderMode(0);257 fHistNumSP.Draw(same?"same":"");258 pad->GetPad(2)->cd(2);259 gPad->SetBorderMode(0);260 fHistSizeSP.Draw(same?"same":"");261 272 262 273 pad->cd(3); -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r6869 r6907 284 284 void MHNewImagePar::Paint(Option_t *o) 285 285 { 286 if ( TString(o)==(TString)"log" && fHistLeakage1.GetMaximum()>0)287 gPad-> SetLogy();286 if (fHistLeakage1.GetMaximum()>0 && gPad->GetPad(1)) 287 gPad->GetPad(1)->SetLogy(); 288 288 } 289 289 … … 294 294 // together with the canvas. 295 295 // 296 void MHNewImagePar::Draw(Option_t * )296 void MHNewImagePar::Draw(Option_t *o) 297 297 { 298 298 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this); … … 301 301 AppendPad(""); 302 302 303 pad->Divide(2,2); 303 // FIXME: If same-option given make two independant y-axis! 304 const TString opt(o); 305 const Bool_t same = opt.Contains("same"); 306 307 if (!same) 308 pad->Divide(2,2); 309 else 310 { 311 fHistLeakage1.SetLineColor(kMagenta); 312 fHistLeakage1.SetLineColor(kCyan); 313 314 fHistCorePix.SetLineColor(kMagenta); 315 fHistUsedPix.SetLineColor(kCyan); 316 317 fHistConc1.SetLineColor(kMagenta); 318 fHistConc.SetLineColor(kCyan); 319 320 fHistCoreArea.SetLineColor(kMagenta); 321 fHistUsedArea.SetLineColor(kCyan); 322 } 304 323 305 324 pad->cd(1); … … 307 326 TAxis &x = *fHistLeakage1.GetXaxis(); 308 327 x.SetRangeUser(0.0, x.GetXmax()); 309 MH::DrawSame(fHistLeakage1, fHistLeakage2, "Leakage1 and Leakage2" );328 MH::DrawSame(fHistLeakage1, fHistLeakage2, "Leakage1 and Leakage2", same); 310 329 fHistLeakage1.SetMinimum(); 311 330 fHistLeakage2.SetMinimum(); 312 331 fHistLeakage2.SetMaximum(0.1); // dummy value to allow log-scale 313 AppendPad("log");314 332 315 333 pad->cd(2); 316 334 gPad->SetBorderMode(0); 317 MH::DrawSame(fHistCorePix, fHistUsedPix, "Number of core/used Pixels" );335 MH::DrawSame(fHistCorePix, fHistUsedPix, "Number of core/used Pixels", same); 318 336 319 337 pad->cd(3); 320 338 gPad->SetBorderMode(0); 321 MH::DrawSame(fHistConc1, fHistConc, "Concentrations" );339 MH::DrawSame(fHistConc1, fHistConc, "Concentrations", same); 322 340 323 341 pad->cd(4); 324 342 gPad->SetBorderMode(0); 325 MH::DrawSame(fHistCoreArea, fHistUsedArea, "Area of core/used Pixels" );343 MH::DrawSame(fHistCoreArea, fHistUsedArea, "Area of core/used Pixels", same); 326 344 } 327 345 -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6906 r6907 866 866 867 867 MGeomCam &geomcam = *(MGeomCam*)plist.FindObject("MGeomCam"); 868 868 /* 869 869 // 870 870 // Get container from list … … 894 894 disp21.CamDraw(c0, 2, 2, 1); 895 895 } 896 896 */ 897 897 if (!fIsHiLoCalibration) 898 898 return; -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6892 r6907 56 56 #include "../mhflux/MAlphaFitter.h" 57 57 #include "MBinning.h" 58 #include "MWeight.h" 58 59 #include "MDataSet.h" 59 60 #include "MParameters.h" … … 71 72 MJCut::MJCut(const char *name, const char *title) 72 73 : fStoreSummary(kFALSE), fStoreResult(kFALSE), fWriteOnly(kFALSE), 73 fIsWobble(kFALSE), fEstimateEnergy(0), fCalcHadronness(0) 74 fIsWobble(kFALSE), fFullDisplay(kFALSE), fEstimateEnergy(0), 75 fCalcHadronness(0) 74 76 { 75 77 fName = name ? name : "MJCut"; 76 fTitle = title ? title : "Standard program to perform g/h-sep eration cuts";78 fTitle = title ? title : "Standard program to perform g/h-separation cuts"; 77 79 } 78 80 … … 260 262 // "DataType" to "Events" 261 263 // 262 void MJCut::SetupWriter(MWriteRootFile &write, const char *name) const 263 { 264 write.SetName(name); 265 write.AddContainer("MHillas", "Events"); 266 write.AddContainer("MHillasSrc", "Events"); 267 write.AddContainer("MHillasSrcAnti", "Events", kFALSE); 268 write.AddContainer("MHadronness", "Events", kFALSE); 269 write.AddContainer("MEnergyEst", "Events", kFALSE); 270 write.AddContainer("DataType", "Events"); 264 void MJCut::SetupWriter(MWriteRootFile *write, const char *name) const 265 { 266 if (!write) 267 return; 268 269 write->SetName(name); 270 write->AddContainer("MHillas", "Events"); 271 write->AddContainer("MHillasSrc", "Events"); 272 write->AddContainer("MHillasSrcAnti", "Events", kFALSE); 273 write->AddContainer("MNewImagePar", "Events", kFALSE); 274 write->AddContainer("MNewImagePar2", "Events", kFALSE); 275 write->AddContainer("MHadronness", "Events", kFALSE); 276 write->AddContainer("MEnergyEst", "Events", kFALSE); 277 write->AddContainer("DataType", "Events"); 271 278 272 279 // Should not be the default: Either as option, or as … … 326 333 MBinning bins3(50, 0, 60, "BinningTheta", "cos"); 327 334 MBinning bins4("BinningFalseSource"); 335 //MBinning bins5("BinningWidth"); 336 //MBinning bins6("BinningLength"); 337 //MBinning bins7("BinningDist"); 328 338 plist.AddToList(&bins1); 329 339 plist.AddToList(&bins2); 330 340 plist.AddToList(&bins3); 331 341 plist.AddToList(&bins4); 342 //plist.AddToList(&bins5); 343 //plist.AddToList(&bins6); 344 //plist.AddToList(&bins7); 332 345 333 346 // -------------------------------------------------------------------------------- … … 368 381 fname1 += fNameResult.IsNull() ? (TString) Form("ganymed%08d-result.root", set.GetNumAnalysis()) : fNameResult; 369 382 370 MWriteRootFile write0(fPathOut.IsNull()?0:fname0.Data(), fOverwrite?"RECREATE":"NEW"); 371 MWriteRootFile write1(fPathOut.IsNull()?0:fname1.Data(), fOverwrite?"RECREATE":"NEW"); 372 if (CanStoreSummary()) 373 SetupWriter(write0, "WriteAfterCut0"); 374 if (CanStoreSummary()) 375 SetupWriter(write1, "WriteAfterCut3"); 383 MWriteRootFile *write0 = CanStoreSummary() ? new MWriteRootFile(fPathOut.IsNull()?0:fname0.Data(), fOverwrite?"RECREATE":"NEW") : 0; 384 MWriteRootFile *write1 = CanStoreResult() ? new MWriteRootFile(fPathOut.IsNull()?0:fname1.Data(), fOverwrite?"RECREATE":"NEW") : 0; 385 SetupWriter(write0, "WriteAfterCut0"); 386 SetupWriter(write1, "WriteAfterCut3"); 376 387 377 388 … … 384 395 taskenv2.SetDefault(fCalcHadronness); 385 396 386 MFillH fill1a("MHHillasOffPre [MHHillas]", "MHillas", "FillHillasPre"); 387 MFillH fill2a("MHHillasOffPost [MHHillas]", "MHillas", "FillHillasPost"); 388 MFillH fill3a("MHVsSizeOffPost [MHVsSize]", "MHillasSrc", "FillVsSizePost"); 397 MFillH fill1a("MHHillasOffPre [MHHillas]", "MHillas", "FillHillasPre"); 398 MFillH fill2a("MHHillasOffPost [MHHillas]", "MHillas", "FillHillasPost"); 399 MFillH fill3a("MHVsSizeOffPost [MHVsSize]", "MHillasSrc", "FillVsSizePost"); 400 MFillH fill4a("MHHilExtOffPost [MHHillasExt]", "MHillasSrc", "FillHilExtPost"); 401 MFillH fill5a("MHHilSrcOffPost [MHHillasSrc]", "MHillasSrc", "FillHilSrcPost"); 402 MFillH fill6a("MHImgParOffPost [MHImagePar]", "MImagePar", "FillImgParPost"); 403 MFillH fill7a("MHNewParOffPost [MHNewImagePar]", "MNewImagePar", "FillNewParPost"); 389 404 fill1a.SetNameTab("PreCut"); 390 405 fill2a.SetNameTab("PostCut"); 391 406 fill3a.SetNameTab("VsSize"); 407 fill4a.SetNameTab("HilExt"); 408 fill5a.SetNameTab("HilSrc"); 409 fill6a.SetNameTab("ImgPar"); 410 fill7a.SetNameTab("NewPar"); 392 411 393 412 MPrint print2("MEffectiveOnTime"); … … 412 431 tlist2.AddToList(&taskenv2); 413 432 tlist2.AddToList(&cont0); 414 if ( CanStoreSummary())415 tlist2.AddToList( &write0);433 if (write0) 434 tlist2.AddToList(write0); 416 435 if (!fWriteOnly) 417 436 tlist2.AddToList(&fill1a); 418 437 tlist2.AddToList(&cont1); 419 if (!fWriteOnly )438 if (!fWriteOnly && !fIsWobble) 420 439 tlist2.AddToList(&ffs); 421 440 tlist2.AddToList(&cont2); … … 423 442 { 424 443 tlist2.AddToList(&fill2a); 425 tlist2.AddToList(&fill3a); 444 if (fFullDisplay) 445 { 446 tlist2.AddToList(&fill3a); 447 tlist2.AddToList(&fill4a); 448 tlist2.AddToList(&fill5a); 449 tlist2.AddToList(&fill6a); 450 tlist2.AddToList(&fill7a); 451 } 426 452 } 427 453 if (!fWriteOnly) 428 454 tlist2.AddToList(&falpha); 429 455 tlist2.AddToList(&cont3); 430 if ( CanStoreResult())431 tlist2.AddToList( &write1);456 if (write1) 457 tlist2.AddToList(write1); 432 458 433 459 tlist.AddToList(&readoff); … … 461 487 return kFALSE; 462 488 } 489 490 //plist.FindObject("MTimeEffectiveOnTime")->Clear(); 463 491 } 464 492 … … 473 501 scalc.SetWobbleMode(kFALSE); /********************/ 474 502 475 MFillH fill1b("MHHillasOnPre [MHHillas]", "MHillas", "FillHillasPre"); 476 MFillH fill2b("MHHillasOnPost [MHHillas]", "MHillas", "FillHillasPost"); 477 MFillH fill3b("MHVsSizeOnPost [MHVsSize]", "MHillasSrc", "FillVsSizePost"); 503 MFillH fill1b("MHHillasOnPre [MHHillas]", "MHillas", "FillHillasPre"); 504 MFillH fill2b("MHHillasOnPost [MHHillas]", "MHillas", "FillHillasPost"); 505 MFillH fill3b("MHVsSizeOnPost [MHVsSize]", "MHillasSrc", "FillVsSizePost"); 506 MFillH fill4b("MHHilExtOnPost [MHHillasExt]", "MHillasSrc", "FillHilExtPost"); 507 MFillH fill5b("MHHilSrcOnPost [MHHillasSrc]", "MHillasSrc", "FillHilSrcPost"); 508 MFillH fill6b("MHImgParOnPost [MHImagePar]", "MImagePar", "FillImgParPost"); 509 MFillH fill7b("MHNewParOnPost [MHNewImagePar]", "MNewImagePar", "FillNewParPost"); 478 510 fill1b.SetNameTab("PreCut"); 479 511 fill2b.SetNameTab("PostCut"); 480 512 fill3b.SetNameTab("VsSize"); 513 fill4b.SetNameTab("HilExt"); 514 fill5b.SetNameTab("HilSrc"); 515 fill6b.SetNameTab("ImgPar"); 516 fill7b.SetNameTab("NewPar"); 481 517 fill1b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 482 518 fill2b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 483 519 fill3b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 484 520 fill4b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 521 fill5b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 522 fill6b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 523 fill7b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 524 /* 525 MWeight weight; 526 weight.SetWeight(-1); 527 fill2a.SetWeight(&weight); 528 fill3a.SetWeight(&weight); 529 */ 485 530 MFillH falpha2("MHAlpha", "MHillasSrc", "FillAlpha"); 486 531 MFillH ffs2("MHFalseSource", "MHillas", "FillFS"); … … 490 535 { 491 536 tlist2.Replace(&fill1b); 537 /* if (fIsWobble) 538 { 539 tlist2.AddToListAfter(&fill2b, &fill2a); 540 tlist2.AddToListAfter(&fill3b, &fill3a); 541 } 542 else 543 */ 492 544 tlist2.Replace(&fill2b); 493 tlist2.Replace(&fill3b); 545 if (fFullDisplay) 546 { 547 tlist2.Replace(&fill3b); 548 tlist2.Replace(&fill4b); 549 tlist2.Replace(&fill5b); 550 tlist2.Replace(&fill6b); 551 tlist2.Replace(&fill7b); 552 } 494 553 tlist2.Replace(&falpha2); 495 tlist2.Replace(&ffs2); 554 if (!fIsWobble) 555 tlist2.Replace(&ffs2); 496 556 } 497 557 … … 518 578 } 519 579 580 if (write0) 581 delete write0; 582 if (write1) 583 delete write1; 584 520 585 tlist.PrintStatistics(); 521 586 -
trunk/MagicSoft/Mars/mjobs/MJCut.h
r6874 r6907 17 17 Bool_t fWriteOnly; 18 18 Bool_t fIsWobble; 19 Bool_t fFullDisplay; 19 20 20 21 TString fNameSummary; … … 27 28 TString GetOutputFile(UInt_t num) const; 28 29 Bool_t CheckEnvLocal(); 29 void SetupWriter(MWriteRootFile &write, const char *name) const;30 void SetupWriter(MWriteRootFile *write, const char *name) const; 30 31 Bool_t WriteTasks(UInt_t num, TObjArray &cont) const; 31 32 Bool_t WriteResult(UInt_t num) const; … … 44 45 void EnableWriteOnly(Bool_t b=kTRUE) { fWriteOnly = b; } 45 46 void EnableWobbleMode(Bool_t b=kTRUE) { fIsWobble = b; } 47 void EnableFullDisplay(Bool_t b=kTRUE) { fFullDisplay = b; } 46 48 47 49 void SetNameSummaryFile(const char *name=""); … … 52 54 void SetHadronnessCalculator(const MTask *task=0); 53 55 54 ClassDef(MJCut, 0) // Standard program to perform g/h-sep eration cuts56 ClassDef(MJCut, 0) // Standard program to perform g/h-separation cuts 55 57 }; 56 58 -
trunk/MagicSoft/Mars/mjobs/MJOptimize.cc
r6900 r6907 497 497 498 498 gMinuit = new TMinuit(fParameters.GetSize()); 499 //gMinuit->SetPrintLevel(-1);500 499 501 500 gMinuit->SetFCN(fcn); 502 501 gMinuit->SetObjectFit(this); 502 gMinuit->SetPrintLevel(-1); // Don't print when DefineParameter 503 503 504 504 // … … 526 526 gMinuit->FixParameter(i); 527 527 } 528 529 gMinuit->SetPrintLevel(1); // Switch on pritning again 530 gMinuit->mnprin(1,0); // Print all parameters 528 531 529 532 fEvtLoop = &evtloop;
Note:
See TracChangeset
for help on using the changeset viewer.