Changeset 9851 for trunk/Mars/mpedestal


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/mpedestal/MHPedestalCor.cc

    r9153 r9851  
    9595    fProf.SetDirectory(0);
    9696
    97     MBinning binsx(15, -0.5, 14.5);
    98     MH::SetBinning(&fProf, &binsx);
     97    const MBinning binsx(15, -0.5, 14.5);
     98    MH::SetBinning(fProf, binsx);
    9999}
    100100
     
    181181
    182182    const Axis_t xmax = fProf.GetXaxis()->GetXmax();
    183     MBinning bins(n, -xmax, xmax);
    184 
    185     MH::SetBinning(&h, &bins, &bins);
     183
     184    const MBinning bins(n, -xmax, xmax);
     185    MH::SetBinning(h, bins, bins);
    186186
    187187    for (int x=0; x<n; x++)
Note: See TracChangeset for help on using the changeset viewer.