Changeset 19248


Ignore:
Timestamp:
10/22/18 18:30:28 (6 years ago)
Author:
tbretz
Message:
Removed some not really necessary const-qualifiers to make it compatible with root 6
Location:
trunk/Mars/mhflux
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhflux/MHDisp.cc

    r9851 r19248  
    242242    const Double_t pi2    = fSmearing * TMath::Pi()/2;
    243243    const Double_t normg  = pi2*pi2 * TMath::Sqrt(TMath::TwoPi()) / weight;
    244     const Int_t    bz     = fHist.GetZaxis()->FindFixBin(0);
     244    const Int_t    bz     = fHist.GetZaxis()->FindFixBin(0.);
    245245
    246246    TH2 &hbg = fHalf ? fHistBg1 : fHistBg2;
     
    328328        return kTRUE;
    329329
    330     const Int_t bz = fHist.GetZaxis()->FindFixBin(0);
     330    const Int_t bz = fHist.GetZaxis()->FindFixBin(0.);
    331331
    332332    const Double_t n1 = fHistBg1.GetEntries();
  • trunk/Mars/mhflux/MHDisp.h

    r9153 r19248  
    6868
    6969    // MHFalseSource (to be moved!)
    70     void SetOffData(const MHFalseSource &fs)
     70    void SetOffData(MHFalseSource &fs)
    7171    {
    7272        MHFalseSource::SetOffData(fs);
  • trunk/Mars/mhflux/MHFalseSource.cc

    r11272 r19248  
    396396// the same number of bins than for on-data
    397397//
    398 void MHFalseSource::ProjectOff(const TH3D &src, TH2D *h2, TH2D *hall)
     398void MHFalseSource::ProjectOff(TH3D &src, TH2D *h2, TH2D *hall)
    399399{
    400400    TAxis &axe = *src.GetZaxis();
     
    437437// range (0, fAlphaCut)
    438438//
    439 void MHFalseSource::ProjectOn(const TH3D &src, TH2D *h3, TH2D *hall)
     439void MHFalseSource::ProjectOn(TH3D &src, TH2D *h3, TH2D *hall)
    440440{
    441441    TAxis &axe = *src.GetZaxis();
  • trunk/Mars/mhflux/MHFalseSource.h

    r9153 r19248  
    4141    TH3D    fHist;               // Alpha vs. x and y
    4242
    43     const TH3D *fHistOff;
     43    TH3D  *fHistOff;
    4444
    4545    Double_t fRa;
     
    5454
    5555    void ProjectAll(TH2D *h);
    56     void ProjectOff(const TH3D &src, TH2D *h, TH2D *all);
    57     void ProjectOn(const TH3D &src, TH2D *h, TH2D *all);
     56    void ProjectOff(TH3D &src, TH2D *h, TH2D *all);
     57    void ProjectOn(TH3D &src, TH2D *h, TH2D *all);
    5858    void ProjectOnOff(TH2D *h, TH2D *all);
    5959
     
    7777    void SetBgMeanMinus5() { SetBgMean(fBgMean-5); } //*MENU*
    7878
    79     virtual void SetOffData(const MHFalseSource &fs) {
     79    virtual void SetOffData(MHFalseSource &fs) {
    8080        fHistOff  = &fs.fHist;
    8181        fMinDist  =  fs.fMinDist;
Note: See TracChangeset for help on using the changeset viewer.