Changeset 8281 for trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
- Timestamp:
- 02/01/07 11:24:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r8022 r8281 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.cc,v 1.13 2007-02-01 11:24:19 tbretz Exp $ 3 ! -------------------------------------------------------------------------- 2 4 ! 3 5 ! * … … 18 20 ! Author(s): Thomas Bretz, 3/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 21 ! 20 ! Copyright: MAGIC Software Development, 2000-200 422 ! Copyright: MAGIC Software Development, 2000-2006 21 23 ! 22 24 ! … … 70 72 // + Double_t fMaximum; // User defined maximum 71 73 // 74 // Class Version 3: 75 // ---------------- 76 // + Bool_t fUseMedian; 77 // 72 78 // 73 79 ///////////////////////////////////////////////////////////////////////////// … … 101 107 // 102 108 MHSectorVsTime::MHSectorVsTime(const char *name, const char *title) 103 : fGraph(0), fEvt(NULL), fMinimum(-1111), fMaximum(-1111), 109 : fGraph(0), fEvt(NULL), fMinimum(-1111), fMaximum(-1111), fUseMedian(kFALSE), 104 110 fType(0), fTypeErr(-1) 105 111 { … … 226 232 fHCamera.SetCamContent(*evt, fType); 227 233 228 const Double_t val0 = fHCamera.GetMeanSectors(fSectors, fAreaIndex); 234 const Double_t val0 = fUseMedian ? 235 fHCamera.GetMedianSectors(fSectors, fAreaIndex) : 236 fHCamera.GetMeanSectors(fSectors, fAreaIndex); 229 237 230 238 if (!TMath::Finite(val0)) … … 235 243 if (fTypeErr>=0) 236 244 { 237 const Double_t rms0 = fHCamera.GetRmsSectors(fSectors, fAreaIndex); 245 const Double_t rms0 = fUseMedian ? 246 fHCamera.GetDevSectors(fSectors, fAreaIndex) : 247 248 fHCamera.GetRmsSectors(fSectors, fAreaIndex); 238 249 if (!TMath::Finite(rms0)) 239 250 return kTRUE; 251 240 252 ((TGraphErrors*)fGraph)->SetPointError(fGraph->GetN()-1, 0, rms0); 241 253 } … … 334 346 TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fGraph); 335 347 pad->SetBorderMode(0); 348 pad->SetGridx(); 349 pad->SetGridy(); 336 350 AppendPad(opt); 337 351 }
Note:
See TracChangeset
for help on using the changeset viewer.