Ignore:
Timestamp:
08/22/05 10:46:31 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r7001 r7297  
    221221    void     SetInvDeepBlueSeaPalette(); // *MENU*
    222222
    223     void     SetAutoScale() { fMinimum = fMaximum = -1111; } // *MENU*
    224 
    225223    void     SetFreezed(Bool_t f=kTRUE) { f ? SetBit(kFreezed) : ResetBit(kFreezed); } // *TOGGLE* *GETTER=IsFreezed
    226224    Bool_t   IsFreezed() const { return TestBit(kFreezed); }
     
    228226
    229227    void     SetAbberation(Float_t f=0.0713) { fAbberation=f; } // *MENU*
     228
     229    void     SetAutoScale() { fMinimum = fMaximum = -1111; } // *MENU*
     230    void     SetMinMax(Double_t min=-1111, Double_t max=-1111) { SetMinimum(min); SetMaximum(max); } // *MENU*
    230231
    231232    void     AddNotify(TObject *event);
  • trunk/MagicSoft/Mars/mhist/MHEvent.cc

    r7180 r7297  
    7171// --------------------------------------------------------------------------
    7272//
    73 MHEvent::MHEvent(EventType_t type) : fHist(NULL), fType(type)
     73MHEvent::MHEvent(EventType_t type) : fHist(NULL), fType(type),
     74    fMinimum(-1111), fMaximum(-1111)
    7475{
    7576    fName = "MHEvent";
     
    121122    fHist = new MHCamera(*cam);
    122123    fHist->AddNotify(fClone);
     124
     125    fHist->SetMinimum(fMinimum);
     126    fHist->SetMaximum(fMaximum);
    123127
    124128    switch (fType)
     
    167171        break;
    168172     case kEvtArrTime:
     173     case kEvtArrTimeCleaned:
    169174        fHist->SetName("Arrival Time");
    170175        fHist->SetYTitle("t [slice id]");
     
    241246    case kEvtArrTime:
    242247        fHist->SetCamContent(*event, 6);
     248        break;
     249    case kEvtArrTimeCleaned:
     250        fHist->SetCamContent(*event, 8);
    243251        break;
    244252    case kEvtTrigPix:
  • trunk/MagicSoft/Mars/mhist/MHEvent.h

    r7180 r7297  
    2525        kEvtPedPhot, kEvtPedPhotRMS,
    2626        kEvtCleaningLevels, kEvtCleaningData,
    27         kEvtIdxMax, kEvtArrTime, kEvtTrigPix, kEvtIslandIndex
     27        kEvtIdxMax, kEvtArrTime, kEvtArrTimeCleaned,
     28        kEvtTrigPix, kEvtIslandIndex
    2829    };
    2930
     
    4546    EventType_t fType;
    4647
     48    Double_t fMinimum;
     49    Double_t fMaximum;
     50
    4751    TH1 *GetHistByName(const TString name) const { return (TH1*)fHist; }
    4852
     
    5357    MHEvent(EventType_t type=kEvtSignalRaw);
    5458    ~MHEvent();
     59
     60    void SetMinimum(Double_t min=-1111) { fMinimum=min; }
     61    void SetMaximum(Double_t max=-1111) { fMaximum=max; }
    5562
    5663    MHCamera *GetHist() { return fHist; }
Note: See TracChangeset for help on using the changeset viewer.