Changeset 7616
- Timestamp:
- 03/20/06 12:48:14 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7615 r7616 24 24 - if the pixels to be swaped are both not found, assume they are 25 25 intentially not mapped. Changed the Error to a Warning 26 27 * mhflux/MHDisp.[h,cc]: 28 - made the scale region a parameter which can be changed from 29 within the display 30 - allow the scale parameters to be setup from the resource-file 31 32 * ganymed.rc, ganymed_onoff.rc, ganymed_wobble.rc: 33 - added example how to change the new scale parameters in MHDisp 26 34 27 35 … … 118 126 119 127 * mhflux/MHPhi.[h,cc]: 120 - many improvements to the algorithm, it now takes also inhomgeneities121 in to account128 - many improvements to the algorithm, it now takes also 129 inhomgeneities into account 122 130 - restructured the display, display more histograms 123 131 - increased class version to 2 … … 127 135 128 136 * mpointing/MPointingDevCalc.[h,cc]: 129 - allowed to set the starguider offset calibration from the resource file 137 - allowed to set the starguider offset calibration from the 138 resource file 130 139 131 140 * callisto_Dec04Jan05.rc: 132 - replaced Calibration scale factor by usage of resources/calibration_spline.rc 141 - replaced Calibration scale factor by usage of 142 resources/calibration_spline.rc 133 143 134 144 … … 326 336 327 337 * datacenter/db/dowebplots: 328 - added option -p to the script, to be able to call the script for329 different programs independently338 - added option -p to the script, to be able to call the script 339 for different programs independently 330 340 - fixed find 331 341 … … 367 377 368 378 * mbase/MTaskList.[h,cc]: 369 - implemented the usabe of MTask::fAccelerator to switch off resetting 370 of all parameter containers which can be very time-consuming 379 - implemented the usabe of MTask::fAccelerator to switch off 380 resetting of all parameter containers which can be very 381 time-consuming 371 382 372 383 * mimage/MImagePar.cc: -
trunk/MagicSoft/Mars/NEWS
r7615 r7616 30 30 mode if no starguider information was available due to an incorrect 31 31 initialization of the starguider calibration 32 33 - ganymed: The scale region in the False Source Plot (MHDisp) can now 34 be changed from within the plot. It can also be setup from the 35 resource file using: 36 + MHDisp.fScaleMin: 0.325 37 + MHDisp.fScaleMax: 0.475 32 38 33 39 -
trunk/MagicSoft/Mars/ganymed.rc
r7593 r7616 84 84 MHDisp.Smearing: 0.06 85 85 #MHDisp.Wobble: Yes 86 #MHDisp.ScaleMin: 0.325 87 #MHDisp.ScaleMax: 0.475 86 88 87 89 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/ganymed_onoff.rc
r7593 r7616 83 83 84 84 MHDisp.Smearing: 0.06 85 #MHDisp.ScaleMin: 0.325 86 #MHDisp.ScaleMax: 0.475 85 87 86 88 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/ganymed_wobble.rc
r7593 r7616 77 77 MJCut.NameHistFS: MHDisp 78 78 79 MHDisp.Wobble: Yes 79 80 MHDisp.Smearing: 0.06 80 MHDisp.Wobble: Yes 81 #MHDisp.ScaleMin: 0.325 82 #MHDisp.ScaleMax: 0.475 81 83 82 84 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhflux/MHDisp.cc
r7287 r7616 32 32 // in the tasklist. Switching of the M3L cut in MFMagicCuts is recommended. 33 33 // 34 // Class Version 3: 35 // ---------------- 36 // + Double_t fScaleMin; // [deg] Minimum circle for integration of off-data for scaling 37 // + Double_t fScaleMax; // [deg] Maximum circle for integration of off-data for scaling 38 // 34 39 ////////////////////////////////////////////////////////////////////////////// 35 40 #include "MHDisp.h" … … 65 70 // 66 71 MHDisp::MHDisp(const char *name, const char *title) 67 : fDisp(0), fDeviation(0), fSmearing(-1), fWobble(kFALSE) 72 : fDisp(0), fDeviation(0), fSmearing(-1), fWobble(kFALSE), 73 fScaleMin(0.325), fScaleMax(0.475) 68 74 { 69 75 // … … 165 171 if (!fHistOff) 166 172 { 167 if (delta>1 65)173 if (delta>180-25) 168 174 return kTRUE; 169 175 … … 175 181 // increased uncertainty 176 182 // FIXME: The delta stuff could be replaced by a 2*antitheta cut... 177 w0 = delta> 15 ? 1 : 2;183 w0 = delta>25 ? 1 : 2; 178 184 } 179 185 … … 331 337 } 332 338 339 // -------------------------------------------------------------------------- 340 // 341 // Make sure that if the scale is changed by the context menu all subpads 342 // are redrawn. 343 // 344 void MHDisp::Update() 345 { 346 TVirtualPad *pad = gPad; 347 for (int i=1; i<=6; i++) 348 { 349 if (pad->GetPad(i)) 350 pad->GetPad(i)->Modified(); 351 } 352 } 333 353 334 354 // -------------------------------------------------------------------------- … … 348 368 { 349 369 const Double_t d = TMath::Hypot(axex.GetBinCenter(x+1), axey.GetBinCenter(y+1)); 350 if (d> 0.325 && d<0.475)370 if (d>fScaleMin && d<fScaleMax) 351 371 { 352 372 sum += h.GetBinContent(x+1,y+1); … … 354 374 } 355 375 } 376 356 377 return sum/cnt; 357 378 } … … 611 632 // ----- Pad number 4 ----- 612 633 TString name = Form("%s_4", pad->GetName()); 613 TPad *p = new TPad(name,name, 0.5 025, 0.3355, 0.995, 0.995, col, 0, 0);634 TPad *p = new TPad(name,name, 0.525/*0.5025*/, 0.3355, 0.995, 0.995, col, 0, 0); 614 635 p->SetNumber(4); 615 636 p->Draw(); … … 631 652 pad->cd(); 632 653 name = Form("%s_1", pad->GetName()); 633 p = new TPad(name,name, 0.005, 0.3355, 0.4 975, 0.995, col, 0, 0);654 p = new TPad(name,name, 0.005, 0.3355, 0.475/*0.4975*/, 0.995, col, 0, 0); 634 655 p->SetNumber(1); 635 656 p->Draw(); … … 733 754 SetWobble(GetEnvValue(env, prefix, "Wobble", fWobble)); 734 755 } 756 if (IsEnvDefined(env, prefix, "ScaleMin", print)) 757 { 758 rc = kTRUE; 759 SetScaleMin(GetEnvValue(env, prefix, "ScaleMin", fScaleMin)); 760 } 761 if (IsEnvDefined(env, prefix, "ScaleMax", print)) 762 { 763 rc = kTRUE; 764 SetScaleMax(GetEnvValue(env, prefix, "ScaleMax", fScaleMax)); 765 } 735 766 736 767 return rc; -
trunk/MagicSoft/Mars/mhflux/MHDisp.h
r7217 r7616 17 17 class MParameterD; 18 18 class MPointingDev; 19 class MSrcPosCam; 19 20 20 21 class MHDisp : public MHFalseSource 21 22 { 22 23 private: 23 MParameterD *fDisp; //!24 MParameterD *fDisp; //! 24 25 MPointingDev *fDeviation; //! 26 //MSrcPosCam *fAxis; //! 25 27 26 28 TH2D fHistBg; … … 31 33 Bool_t fHalf; 32 34 33 Double_t fSmearing; 34 Bool_t fWobble; 35 Double_t fSmearing; // [deg] Width of Gaus to fold with the events 36 Bool_t fWobble; // This is for Wobble-Mode observations 37 38 Double_t fScaleMin; // [deg] Minimum circle for integration of off-data for scaling 39 Double_t fScaleMax; // [deg] Maximum circle for integration of off-data for scaling 35 40 36 41 // MHDisp 37 42 Double_t GetOffSignal(TH1 &h) const; 38 43 Double_t DeltaPhiSrc(const TVector2 &v) const; 44 45 void Update(); 39 46 40 47 void Profile1D(const char *name, const TH2 &h) const; … … 51 58 void SetSmearing(Double_t s=-1) { fSmearing=s; } 52 59 void SetWobble(Bool_t w=kTRUE) { fWobble=w; } 60 61 void SetScaleMin(Double_t scale) { fScaleMin = scale; Update(); } //*MENU* *ARGS={scale=>fScaleMin} 62 void SetScaleMax(Double_t scale) { fScaleMax = scale; Update(); } //*MENU* *ARGS={scale=>fScaleMax} 63 void SetScale(Double_t min, Double_t max) { fScaleMin = min; fScaleMax = max; Update(); } //*MENU* *ARGS={min=>fScaleMin,max=>fScaleMax} 64 65 Double_t GetScaleMin() { return fScaleMin; } 66 Double_t GetScaleMax() { return fScaleMax; } 53 67 54 68 // MHFalseSource (to be moved!) … … 82 96 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 83 97 84 ClassDef(MHDisp, 2) //Class to provide a Disp map98 ClassDef(MHDisp, 3) //Class to provide a Disp map 85 99 }; 86 100
Note:
See TracChangeset
for help on using the changeset viewer.