Ignore:
Timestamp:
07/26/05 15:14:13 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhvstime
Files:
2 edited

Legend:

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

    r7210 r7223  
    9595//
    9696MHSectorVsTime::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)
    9899{
    99100    //
     
    191192    fGraph->SetMarkerStyle(kFullDotMedium);
    192193
     194    if (fMinimum!=-1111)
     195        fGraph->SetMinimum(fMinimum);
     196    if (fMaximum!=-1111)
     197        fGraph->SetMaximum(fMaximum);
     198
    193199    fMin =  FLT_MAX;
    194200    fMax = -FLT_MAX;
     
    248254    const Double_t add = (fMax-fMin)*0.15;
    249255
    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);
    252260
    253261    return kTRUE;
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.h

    r7210 r7223  
    3535    MHCamera fHCamera;      //!
    3636
    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
    3942
    4043    TString fNameEvt;
     
    6366    void SetAreaIndex(const TArrayI &a)  { fAreaIndex=a; }
    6467
     68    void SetMinimum(Double_t min=-1111) { fMinimum = min; }
     69    void SetMaximum(Double_t max=-1111) { fMaximum = max; }
     70
    6571    // Getter
    6672    TH1 *GetHistByName(const TString name="") const;
Note: See TracChangeset for help on using the changeset viewer.