Changeset 5070 for trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
- Timestamp:
- 09/16/04 16:13:16 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r5007 r5070 163 163 // 164 164 // - fHPowerProbability 165 // - fFGausFit166 // - fFExpFit167 165 // - fPowerSpectrum 168 166 // - fGraphEvents 169 167 // - fGraphPowerSpectrum 170 168 // 169 // For the fits, we have to take special care since ROOT 170 // has stored the function pointer in a global list which 171 // lead to removing the object twice. We have to take out 172 // the following functions of the global list of functions 173 // as well: 174 // 175 // - fFGausFit 176 // - fFExpFit 177 // 171 178 MHGausEvents::~MHGausEvents() 172 179 { … … 178 185 // delete fits 179 186 if (fFGausFit) 180 delete fFGausFit; 181 187 { 188 gROOT->GetListOfFunctions()->Remove(fFGausFit); 189 delete fFGausFit; 190 } 191 182 192 if (fFExpFit) 183 delete fFExpFit; 193 { 194 gROOT->GetListOfFunctions()->Remove(fFExpFit); 195 delete fFExpFit; 196 } 184 197 185 198 // delete arrays
Note:
See TracChangeset
for help on using the changeset viewer.