- Timestamp:
- 08/03/06 18:48:57 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7840 r7841 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/08/03 Markus Meyer21 22 * datacenter/macros/fillstar.C23 - update of reference values for muon analysis24 25 26 27 20 2006/08/03 Thomas Bretz 28 21 … … 39 32 - fixed a typo in a comment 40 33 34 * mhist/MHRate.cc, mhist/MHWeather.cc, mhvstime/MHSectorVsTime.cc, 35 mhvstime/MHVsTime.cc: 36 - changed position of SetMinimum and SetMaximum 37 38 * mimage/MHHillas.[h,cc] 39 - made the Center-Histogram in the case only one is displayed 40 one with palette 41 41 42 42 43 … … 45 46 * resources/calibration.rc, calibration_spline.rc 46 47 - update of correction factors 48 49 * datacenter/macros/fillstar.C 50 - update of reference values for muon analysis 47 51 48 52 -
trunk/MagicSoft/Mars/NEWS
r7839 r7841 61 61 Use FirstBin=1 and NumEvents=120 to fit the effective on time 62 62 from the resulting gamma candidates 63 64 - star: The Center histogram in MHHillas is now by default displayed 65 with the colz draw-option 63 66 64 67 - ganymed: now pruduces valid error codes if failed -
trunk/MagicSoft/Mars/mhist/MHRate.cc
r7224 r7841 96 96 fRate.SetYTitle("Counts"); 97 97 98 fRateTime.SetMinimum(0);99 100 98 fRate.SetDirectory(0); 101 99 fRateZd.SetDirectory(0); … … 289 287 void MHRate::Paint(Option_t *o) 290 288 { 289 // If this is set to early the plot remains empty in root 5.12/00 290 if (fRateTime.GetN()>0) 291 fRateTime.SetMinimum(0); 292 291 293 DrawGraph(fRateTime, "f [Hz]"); 292 294 /* -
trunk/MagicSoft/Mars/mhist/MHWeather.cc
r7033 r7841 96 96 InitGraph(fEventRate); 97 97 98 fHumidity.SetMinimum(0);99 fHumidity.SetMaximum(100);100 fTemperature.SetMinimum(-25);101 fTemperature.SetMaximum(45);102 fWindSpeed.SetMinimum(0);103 fSolarRadiation.SetMinimum(0);104 fEventRate.SetMinimum(0);105 106 98 fHumidity.SetMarkerColor(kBlue); 107 99 fTemperature.SetMarkerColor(kRed); … … 262 254 void MHWeather::Paint(Option_t *o) 263 255 { 256 // If this is set to early the plot remains empty in root 5.12/00 257 if (fHumidity.GetN()>0) 258 { 259 fHumidity.SetMinimum(0); 260 fHumidity.SetMaximum(100); 261 } 262 if (fTemperature.GetN()>0) 263 { 264 fTemperature.SetMinimum(-25); 265 fTemperature.SetMaximum(45); 266 } 267 if (fWindSpeed.GetN()>0) 268 fWindSpeed.SetMinimum(0); 269 if (fSolarRadiation.GetN()>0) 270 fSolarRadiation.SetMinimum(0); 271 if (fEventRate.GetN()>0) 272 fEventRate.SetMinimum(0); 273 264 274 DrawGraph(fHumidity, "H [%]"); 265 275 DrawGraph(fSolarRadiation, "R [W/m^{2}]"); -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r7355 r7841 198 198 fGraph->SetMarkerStyle(kFullDotMedium); 199 199 200 if (fMinimum!=-1111)201 fGraph->SetMinimum(fMinimum);202 if (fMaximum!=-1111)203 fGraph->SetMaximum(fMaximum);204 205 200 fMin = FLT_MAX; 206 201 fMax = -FLT_MAX; … … 309 304 } 310 305 306 // If this is set to early the plot remains empty in root 5.12/00 307 if (fMinimum!=-1111) 308 fGraph->SetMinimum(fMinimum); 309 if (fMaximum!=-1111) 310 fGraph->SetMaximum(fMaximum); 311 311 312 // This is a workaround if the TGraph has only one point. 312 313 // Otherwise MStatusDisplay::Update hangs. -
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r7491 r7841 271 271 // -------------------------------------------------------------------------- 272 272 // 273 // Setup a inversed deep blue sea palette for the fCenter histogram.274 //275 void MHHillas::SetColors() const276 {277 gStyle->SetPalette(51, NULL);278 Int_t c[50];279 for (int i=0; i<50; i++)280 c[49-i] = gStyle->GetColorPalette(i);281 gStyle->SetPalette(50, c);282 }283 284 // --------------------------------------------------------------------------285 //286 273 // Creates a new canvas and draws the four histograms into it. 287 274 // Be careful: The histograms belongs to this object and won't get deleted … … 344 331 fSize->Draw(same?"same":""); 345 332 346 //if (!same) 347 { 348 pad->cd(4); 349 gPad->SetBorderMode(0); 350 gPad->SetPad(0.51, 0.01, 0.99, 0.65); 351 if (same) 333 pad->cd(4); 334 gPad->SetBorderMode(0); 335 gPad->SetPad(0.51, 0.01, 0.99, 0.65); 336 if (same) 337 { 338 TH2 *h=dynamic_cast<TH2*>(gPad->FindObject("Center")); 339 if (h) 352 340 { 353 /* 354 TH1 *h = dynamic_cast<TH1*>(gPad->FindObject("Center")); 355 if (h) 356 { 357 h->SetDrawOption(""); 358 h->SetMarkerColor(kBlack); 359 }*/ 360 RemoveFromPad("CenterSame"); 361 fCenter->SetMarkerColor(kGreen); 362 fCenter->Draw("same"); 341 h->SetDrawOption(""); 342 h->SetMarkerColor(kBlack); 363 343 } 364 else 365 { 366 //SetColors(); 367 fCenter->Draw(/*"colz"*/); 368 } 369 if (fGeomCam) 370 { 371 MHCamera *cam = new MHCamera(*fGeomCam); 372 cam->Draw("same"); 373 cam->SetBit(kCanDelete); 374 } 344 345 RemoveFromPad("CenterSame"); 346 fCenter->SetMarkerColor(kGreen); 347 fCenter->Draw("same"); 348 } 349 else 350 fCenter->Draw("colz"); 351 352 if (fGeomCam) 353 { 354 MHCamera *cam = new MHCamera(*fGeomCam); 355 cam->Draw("same"); 356 cam->SetBit(kCanDelete); 375 357 } 376 358 … … 383 365 if (gPad && !same) 384 366 delete gPad; 385 386 //pad->Modified();387 //pad->Update();388 367 } 389 368 … … 408 387 void MHHillas::Paint(Option_t *opt) 409 388 { 410 SetColors();389 MH::SetPalette("pretty"); 411 390 MH::Paint(); 412 391 } -
trunk/MagicSoft/Mars/mimage/MHHillas.h
r6977 r7841 23 23 TH1F *fSize; //-> Sum of used pixels 24 24 TH2F *fCenter; //-> Center 25 26 void SetColors() const;27 25 28 26 MGeomCam *fGeomCam; //! Camera geometry for plots (for the moment this is a feature for a loop only!)
Note:
See TracChangeset
for help on using the changeset viewer.