Changeset 4382 for trunk/MagicSoft/Mars
- Timestamp:
- 07/14/04 19:49:43 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4378 r4382 45 45 - fixed a bug causing a segmentation violation in the destructor 46 46 (array dimension was not respected correctly) 47 48 * mcalib/MHGausEvents.cc 49 - removed an inconsistency in the naming of fHPowerProbability which 50 can cause a memory leak (I hope, this was the cause of some of the 51 leaks we had, but I'm not sure). 52 - removed the setting of fPixId to -1 in the Clear() 47 53 48 54 -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
r4361 r4382 179 179 180 180 // delete histograms 181 if (fHPowerProbability) 182 delete fHPowerProbability; 181 // if (fHPowerProbability) 182 // if (gROOT->FindObject(fHPowerProbability->GetName())) 183 // delete fHPowerProbability; 183 184 184 185 // delete fits … … 226 227 227 228 fCurrentSize = 0; 228 fPixId = -1;229 229 230 230 if (fHPowerProbability) 231 231 { 232 delete fHPowerProbability; 233 fHPowerProbability = NULL; 232 if (gROOT->FindObject(fHPowerProbability->GetName())) 233 delete fHPowerProbability; 234 fHPowerProbability = NULL; 234 235 } 235 236 … … 324 325 { 325 326 326 Float_t *xaxis = new Float_t[n]; 327 Float_t *xaxis = new Float_t[n]; fHPowerProbability->SetDirectory(NULL); 327 328 328 329 if (fEventFrequency) … … 342 343 // Create the fourier spectrum using the class MFFT. 343 344 // The result is projected into a histogram and fitted by an exponential 344 // 345 // fHPowerProbability->SetDirectory(NULL); 345 346 void MHGausEvents::CreateFourierSpectrum() 346 347 { … … 386 387 fPowerSpectrum = fourier.PowerSpectrumDensity(&fEvents); 387 388 fHPowerProbability = ProjectArray(*fPowerSpectrum, fPowerProbabilityBins, 388 389 Form("%s%s","PowerProbability",GetName()), 389 390 "Probability of Power occurrance"); 390 391 fHPowerProbability->SetXTitle("P(f)"); … … 392 393 fHPowerProbability->GetYaxis()->CenterTitle(); 393 394 fHPowerProbability->SetDirectory(NULL); 395 fHPowerProbability->SetBit(kCanDelete); 394 396 // 395 397 // First guesses for the fit (should be as close to reality as possible,
Note:
See TracChangeset
for help on using the changeset viewer.