Ignore:
Timestamp:
02/01/07 11:24:19 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc

    r8022 r8281  
    11/* ======================================================================== *\
     2! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.cc,v 1.13 2007-02-01 11:24:19 tbretz Exp $
     3! --------------------------------------------------------------------------
    24!
    35! *
     
    1820!   Author(s): Thomas Bretz, 3/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    1921!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     22!   Copyright: MAGIC Software Development, 2000-2006
    2123!
    2224!
     
    7072//  + Double_t fMaximum;      // User defined maximum
    7173//
     74// Class Version 3:
     75// ----------------
     76//  + Bool_t fUseMedian;     
     77//
    7278//
    7379/////////////////////////////////////////////////////////////////////////////
     
    101107//
    102108MHSectorVsTime::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),
    104110    fType(0), fTypeErr(-1)
    105111{
     
    226232    fHCamera.SetCamContent(*evt, fType);
    227233
    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);
    229237
    230238    if (!TMath::Finite(val0))
     
    235243    if (fTypeErr>=0)
    236244    {
    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);
    238249        if (!TMath::Finite(rms0))
    239250            return kTRUE;
     251
    240252        ((TGraphErrors*)fGraph)->SetPointError(fGraph->GetN()-1, 0, rms0);
    241253    }
     
    334346    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(fGraph);
    335347    pad->SetBorderMode(0);
     348    pad->SetGridx();
     349    pad->SetGridy();
    336350    AppendPad(opt);
    337351}
Note: See TracChangeset for help on using the changeset viewer.