Changeset 8964 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 06/16/08 01:49:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r8423 r8964 94 94 { 95 95 Init(name, title); 96 97 fSum = new MHCamera; 96 98 } 97 99 … … 105 107 { 106 108 Init(name, title); 109 110 fSum = new MHCamera; 107 111 } 108 112 … … 144 148 } 145 149 146 // Delete a possible old histogram from a previous loop147 if (fSum)148 delete (fSum);149 150 150 // combine name 151 151 const TString name = fNameEvt.IsNull() ? fName : fNameEvt; 152 152 153 // create and setup MHCamera 154 fSum = new MHCamera(*cam, name+";avg"); 153 fSum->Reset(); 154 fSum->SetGeometry(*cam, name+";avg"); 155 155 156 if (fTitle!=gsDefTitle) 156 157 fSum->SetTitle(fTitle);
Note:
See TracChangeset
for help on using the changeset viewer.