Changeset 7223
- Timestamp:
- 07/26/05 15:14:13 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7222 r7223 34 34 - improved scaling for significance plot, so that significances 35 35 similar to the ThetaSq plot come out 36 37 * mhvstime/MHSectorVsTime.[h,cc]: 38 - implemented the possibility to set a minimum/maximum from outside 39 40 * mjobs/MJStar.cc: 41 - added a plot of the pedestal rms vs time 42 - set minimum and maximum for dc currents vs time 43 44 * mpedestal/MPedPhotCam.cc: 45 - added a sanity in GetPixelContent for the index 36 46 37 47 -
trunk/MagicSoft/Mars/NEWS
r7220 r7223 118 118 - star: New tab (Currents) displaying the time evolution of the mean 119 119 DC currents 120 121 - star: New tab (MeanRms) displaying the time volution of the mean 122 Pedestal Rms 120 123 121 124 - star: Output now contains MReportStarguider -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r7210 r7223 95 95 // 96 96 MHSectorVsTime::MHSectorVsTime(const char *name, const char *title) 97 : fGraph(0), fEvt(NULL), fType(0), fTypeErr(-1) 97 : fGraph(0), fEvt(NULL), fMinimum(-1111), fMaximum(-1111), 98 fType(0), fTypeErr(-1) 98 99 { 99 100 // … … 191 192 fGraph->SetMarkerStyle(kFullDotMedium); 192 193 194 if (fMinimum!=-1111) 195 fGraph->SetMinimum(fMinimum); 196 if (fMaximum!=-1111) 197 fGraph->SetMaximum(fMaximum); 198 193 199 fMin = FLT_MAX; 194 200 fMax = -FLT_MAX; … … 248 254 const Double_t add = (fMax-fMin)*0.15; 249 255 250 fGraph->SetMinimum(fMin-add); 251 fGraph->SetMaximum(fMax+add); 256 if (fMinimum==-1111) 257 fGraph->SetMinimum(fMin-add); 258 if (fMaximum==-1111) 259 fGraph->SetMaximum(fMax+add); 252 260 253 261 return kTRUE; -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.h
r7210 r7223 35 35 MHCamera fHCamera; //! 36 36 37 Double_t fMin; //! 38 Double_t fMax; //! 37 Double_t fMin; //! Calculation of minimum 38 Double_t fMax; //! Calculation of maximum 39 40 Double_t fMinimum; // User defined minimum 41 Double_t fMaximum; // User defined maximum 39 42 40 43 TString fNameEvt; … … 63 66 void SetAreaIndex(const TArrayI &a) { fAreaIndex=a; } 64 67 68 void SetMinimum(Double_t min=-1111) { fMinimum = min; } 69 void SetMaximum(Double_t max=-1111) { fMaximum = max; } 70 65 71 // Getter 66 72 TH1 *GetHistByName(const TString name="") const; -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7210 r7223 391 391 392 392 // Initialize histogram 393 MHSectorVsTime histdc ;393 MHSectorVsTime histdc, histrms; 394 394 histdc.SetNameTime("MTimeCurrents"); 395 395 histdc.SetTitle("Mean of all DC Currents;;<I> [nA]"); 396 histdc.SetMinimum(0); 397 histdc.SetMaximum(3); 398 histrms.SetNameTime("MTimeCurrents"); 399 histrms.SetTitle("Mean pedestal rms of all pixels;;<\\sigma_{p}> [phe]"); 400 histrms.SetMinimum(0); 401 histrms.SetMaximum(0.2); 402 396 403 /* 397 404 // Define area index [0=inner, 1=outer] … … 400 407 401 408 // Task to fill the histogram 402 MFillH filldc(&histdc, "MCameraDC", "FillDC"); 409 MFillH filldc(&histdc, "MCameraDC", "FillDC"); 410 MFillH fillrms(&histrms, "MPedPhotFromExtractorRndm", "FillPedRms"); 403 411 filldc.SetNameTab("Currents"); 412 fillrms.SetNameTab("MeanRms"); 404 413 405 414 MFillH fillw("MHWeather", "MTimeCC", "FillWeather"); … … 414 423 if (!ismc) 415 424 { 416 tlist.AddToList(&fillw, "CC"); 417 tlist.AddToList(&fillp1, "Drive"); 418 tlist.AddToList(&fillp2, "Starguider"); 419 tlist.AddToList(&filldc, "Currents"); 425 tlist.AddToList(&fillw, "CC"); 426 tlist.AddToList(&fillp1, "Drive"); 427 tlist.AddToList(&fillp2, "Starguider"); 428 tlist.AddToList(&filldc, "Currents"); 429 tlist.AddToList(&fillrms, "Currents"); 420 430 } 421 431 tlist.AddToList(&write); -
trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc
r7122 r7223 336 336 Bool_t MPedPhotCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const 337 337 { 338 if (idx>=GetSize()) 339 return kFALSE; 340 338 341 switch (type) 339 342 {
Note:
See TracChangeset
for help on using the changeset viewer.