Ignore:
Timestamp:
06/16/08 01:49:34 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8423 r8964  
    9494{
    9595    Init(name, title);
     96
     97    fSum = new MHCamera;
    9698}
    9799
     
    105107{
    106108    Init(name, title);
     109
     110    fSum = new MHCamera;
    107111}
    108112
     
    144148    }
    145149
    146     // Delete a possible old histogram from a previous loop
    147     if (fSum)
    148         delete (fSum);
    149 
    150150    // combine name
    151151    const TString name = fNameEvt.IsNull() ? fName : fNameEvt;
    152152
    153     // create and setup MHCamera
    154     fSum = new MHCamera(*cam, name+";avg");
     153    fSum->Reset();
     154    fSum->SetGeometry(*cam, name+";avg");
     155
    155156    if (fTitle!=gsDefTitle)
    156157        fSum->SetTitle(fTitle);
Note: See TracChangeset for help on using the changeset viewer.