- Timestamp:
- 03/20/06 18:05:27 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7617 r7618 34 34 * ganymed.rc, ganymed_onoff.rc, ganymed_wobble.rc: 35 35 - added example how to change the new scale parameters in MHDisp 36 37 * mhflux/MAlphaFitter.[h,cc]: 38 - implemented the strategy for optimization which is suggested 39 by the Berlin people for weak sources "weaksource" 40 41 * mhflux/MHPhi.[h,cc]: 42 - moved the AppendPad for the text-paint into all sub-pads which 43 need it. Otherwise they are not always properly updated. 36 44 37 45 -
trunk/MagicSoft/Mars/NEWS
r7616 r7618 23 23 remove events triggered by car-light (rate changing on a short 24 24 time-scale) are missing. 25 26 - macros: optimonoff.C, optimwobble.C: implemented a new strategy 27 for optimization (kWeakSource) which is suggested by the Berlin 28 people for weak sources. 25 29 26 30 - ganymed: In the second loop the MHNewImagePar histograms disapeared. -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r7442 r7618 36 36 // Version 2: 37 37 // ---------- 38 // + Double_t fSignificanceExc; // significance ofexcess38 // + Double_t fSignificanceExc; // significance of a known excess 39 39 // 40 40 // … … 276 276 f.SetMuStep(0.05); 277 277 f.SetMuMax(100); 278 f.SetMuMin(0); 279 f.SetCL(90); 280 278 281 return f.CalculateUpperLimit(fEventsSignal, fEventsBackground); 279 282 } … … 587 590 case kGaussSigma: 588 591 return GetGausSigma(); 592 case kWeakSource: 593 return GetEventsBackground()<1 ? -GetEventsExcess() : -GetEventsExcess()/TMath::Sqrt(GetEventsBackground()); 589 594 } 590 595 return 0; … … 649 654 if (txt==(TString)"gausssigma" || txt==(TString)"gaussigma") 650 655 fStrategy = kGaussSigma; 656 if (txt==(TString)"weaksource") 657 fStrategy = kWeakSource; 651 658 rc = kTRUE; 652 659 } -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r7442 r7618 35 35 kSignificanceExcess, 36 36 kExcess, 37 kGaussSigma 37 kGaussSigma, 38 kWeakSource 38 39 }; 39 40 enum SignalFunc_t { -
trunk/MagicSoft/Mars/mhflux/MHPhi.cc
r7594 r7618 297 297 h1->Draw("same"); 298 298 299 AppendPad("result1"); 300 299 301 // -------------------------- 300 302 … … 341 343 h1->Draw("same"); 342 344 345 AppendPad("result4"); 346 343 347 // -------------------------- 344 345 pad->cd();346 AppendPad("result");347 348 } 348 349 … … 454 455 } 455 456 456 void MHPhi::PaintResult() const457 {458 TVirtualPad *pad = gPad;459 460 pad->cd(1);461 PaintText(fHPhi);462 463 pad->cd(4);464 TH1D *res = gPad ? dynamic_cast<TH1D*>(gPad->FindObject("Result")) : NULL;465 if (res)466 PaintText(*res);467 }468 469 457 void MHPhi::Paint(Option_t *o) 470 458 { … … 472 460 if (opt=="update") 473 461 PaintUpdate(); 474 if (opt=="result") 475 PaintResult(); 462 if (opt=="result1") 463 PaintText(fHPhi); 464 if (opt=="result4") 465 { 466 TH1D *res = gPad ? dynamic_cast<TH1D*>(gPad->FindObject("Result")) : NULL; 467 if (res) 468 PaintText(*res); 469 } 476 470 } 477 471 -
trunk/MagicSoft/Mars/mhflux/MHPhi.h
r7594 r7618 37 37 // Paint 38 38 void PaintUpdate() const; 39 void PaintResult() const;40 39 void PaintText(const TH1D &res) const; 41 40
Note:
See TracChangeset
for help on using the changeset viewer.