Ignore:
Timestamp:
04/25/05 15:30:46 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r6855 r6977  
    210210// Return fSum for "sum" and fRms for "rms"
    211211//
    212 TH1 *MHCamEvent::GetHistByName(const TString name)
     212TH1 *MHCamEvent::GetHistByName(const TString name) const
    213213{
    214214    return fSum;
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.h

    r6855 r6977  
    4343    void SetType(Int_t type) { fType = type; }
    4444
    45     TH1 *GetHistByName(const TString name="");
     45    TH1 *GetHistByName(const TString name="") const;
    4646
    4747    void Paint(Option_t *o="");
  • trunk/MagicSoft/Mars/mhist/MHCamEventRot.h

    r5159 r6977  
    5151    Bool_t Fill(const MParContainer *par, const Stat_t w=1);
    5252
    53     TH1 *GetHistByName(const TString name) { return &fHist; }
     53    TH1 *GetHistByName(const TString name) const { return const_cast<TH2D*>(&fHist); }
    5454
    5555    void SetNameTime(const char *name) { fNameTime=name; }
  • trunk/MagicSoft/Mars/mhist/MHEvent.h

    r6855 r6977  
    4343    EventType_t fType;
    4444
    45     TH1 *GetHistByName(const TString name) { return (TH1*)fHist; }
     45    TH1 *GetHistByName(const TString name) const { return (TH1*)fHist; }
    4646
    4747    Bool_t SetupFill(const MParList *plist);
  • trunk/MagicSoft/Mars/mhist/MHStarMap.h

    r3580 r6977  
    4545    void SetMm2Deg(Float_t mmdeg);
    4646
    47     TH1 *GetHistByName(const TString name) { return (TH1*)fStarMap; }
     47    TH1 *GetHistByName(const TString name) const { return (TH1*)fStarMap; }
    4848
    4949    TH2F *GetHist() { return fStarMap; }
  • trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc

    r2563 r6977  
    167167}
    168168
    169 TH1 *MHTriggerLvl0::GetHistByName(const TString name)
     169TH1 *MHTriggerLvl0::GetHistByName(const TString name) const
    170170{
    171171    return fSum;
  • trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.h

    r2550 r6977  
    3232    void SetThreshold(Double_t t) { fThreshold = t; }
    3333
    34     TH1 *GetHistByName(const TString name="");
     34    TH1 *GetHistByName(const TString name="") const;
    3535
    3636    void Draw(Option_t * ="");
Note: See TracChangeset for help on using the changeset viewer.