Ignore:
Timestamp:
08/12/10 09:43:02 (14 years ago)
Author:
tbretz
Message:
Changed MH::SetBinning and similar functions to take references instead of pointers as arguments. For convenience wrappers for the old style functions are provided.
File:
1 edited

Legend:

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

    r9367 r9851  
    258258
    259259    if (fHistOff)
    260         MH::SetBinning(&fHist, fHistOff);
     260        MH::SetBinning(fHist, *fHistOff);
    261261    else
    262262    {
     
    269269            const Float_t r = (geom ? geom->GetMaxRadius()/3 : 200)*fMm2Deg;
    270270
    271             MBinning b;
    272             b.SetEdges(20, -r, r);
    273             SetBinning(&fHist, &b, &b, &binsa);
     271            const MBinning b(20, -r, r);
     272            SetBinning(fHist, b, b, binsa);
    274273        }
    275274        else
    276             SetBinning(&fHist, bins, bins, &binsa);
     275            SetBinning(fHist, *bins, *bins, binsa);
    277276    }
    278277
     
    502501
    503502    TH2D h;
    504     MH::SetBinning(&h, h2);
     503    MH::SetBinning(h, *h2);
    505504
    506505    // Divide by number of entries in off region (of off-data)
Note: See TracChangeset for help on using the changeset viewer.