Changeset 9851 for trunk/Mars/msim


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/msim/MHPhotonEvent.cc

    r9567 r9851  
    146146    Init(name, title);
    147147
    148     MBinning binsd, binsa;
    149     binsd.SetEdges(50, -max, max);
    150     binsa.SetEdges(50, -1, 1);
    151 
    152     SetBinning(&fHistXY, &binsd, &binsd);
    153     SetBinning(&fHistUV, &binsa, &binsa);
    154     SetBinning(&fHistT,  &binsd, &binsd);
     148    const MBinning binsd(50, -max, max);
     149    const MBinning binsa(50, -1,   1);
     150
     151    SetBinning(fHistXY, binsd, binsd);
     152    SetBinning(fHistUV, binsa, binsa);
     153    SetBinning(fHistT,  binsd, binsd);
    155154}
    156155
     
    166165    Init(name, title);
    167166
    168     MBinning binsd, bins;
    169     bins.SetEdges(50, -1, 1);
    170 
    171     SetBinning(&fHistUV, &bins, &bins);
     167    const MBinning bins(50, -1, 1);
     168
     169    SetBinning(fHistUV, bins, bins);
    172170}
    173171
     
    183181    MH::FindGoodLimits(num, num, min, max, kFALSE);
    184182    MH::FindGoodLimits(num, num, min, max, kFALSE);
    185     MBinning binsd, binsa, binsz;
    186     binsd.SetEdges(num, min, max);
    187 
    188     SetBinning(&fHistXY, &binsd, &binsd);
    189     SetBinning(&fHistT,  &binsd, &binsd);
     183
     184    const MBinning binsd(num, min, max);
     185
     186    SetBinning(fHistXY, binsd, binsd);
     187    SetBinning(fHistT,  binsd, binsd);
    190188}
    191189
Note: See TracChangeset for help on using the changeset viewer.