Changeset 4936
- Timestamp:
- 09/10/04 19:49:33 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.cc
r4929 r4936 95 95 } 96 96 97 // -------------------------------------------------------------------------- 98 // 99 // Use the MHGausEvents::Clone function and clone additionally the rest of the 100 // data members. 101 // 102 TObject *MHCalibrationPix::Clone(const char *name) const 103 { 104 105 MHCalibrationPix &pix = (MHCalibrationPix&)*MHGausEvents::Clone(name); 106 107 // 108 // Copy data members 109 // 110 pix.fEventFrequency = fEventFrequency; 111 pix.fBlackoutLimit = fBlackoutLimit; 112 pix.fSaturated = fSaturated; 113 pix.fPickupLimit = fPickupLimit; 114 pix.fPixId = fPixId; 115 116 return &pix; 117 } 97 118 98 119 // ----------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.h
r4929 r4936 33 33 34 34 void Clear(Option_t *o=""); 35 36 TObject *Clone(const char* name="") const; 35 37 36 38 // Getters -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r4930 r4936 262 262 } 263 263 264 // -------------------------------------------------------------------------- 265 // 266 // Use the MH::Clone function and clone additionally the rest of the 267 // data members. 268 // 264 269 TObject *MHGausEvents::Clone(const char *name) const 265 270 { 266 271 267 MHGausEvents &gaus = *new MHGausEvents; 268 269 gaus.fBinsAfterStripping = fBinsAfterStripping; 270 gaus.fCurrentSize = fCurrentSize; 271 gaus.fFlags = fFlags; 272 gaus.fPowerProbabilityBins = fPowerProbabilityBins; 273 /* 274 if (fHPowerProbability) 275 gaus.fHPowerProbability=(TH1I*)fHPowerProbability->Clone(); 276 277 if (fPowerSpectrum) 278 gaus.fPowerSpectrum = new TArrayF(*fPowerSpectrum); 279 */ 280 281 gaus.fEvents.Set(fEvents.GetSize()); 282 gaus.fEvents = fEvents; 283 /* 284 if (fFGausFit) 285 gaus.fFGausFit=(TF1*)fFGausFit->Clone(); 286 if (fFExpFit) 287 gaus.fFExpFit=(TF1*)fFExpFit->Clone(); 288 */ 289 290 gaus.fFirst = fFirst; 291 292 /* 293 if (fGraphEvents) 294 gaus.fGraphEvents=(TGraph*)fGraphEvents->Clone(); 295 if (fGraphPowerSpectrum) 296 gaus.fGraphPowerSpectrum=(TGraph*)fGraphPowerSpectrum->Clone(); 297 */ 298 299 Copy(gaus.fHGausHist); 300 301 gaus.fLast = fLast; 302 gaus.fMean = fMean; 303 gaus.fMeanErr = fMeanErr; 304 gaus.fNbins = fNbins; 305 gaus.fNDFLimit = fNDFLimit; 306 gaus.fSigma = fSigma; 307 gaus.fSigma = fSigmaErr; 308 gaus.fProb = fProb; 309 gaus.fProbLimit = fProbLimit; 310 311 return &gaus; 312 } 272 MHGausEvents &pix = (MHGausEvents&)*MH::Clone(name); 273 274 // 275 // Copy data members 276 // 277 pix.fBinsAfterStripping = fBinsAfterStripping; 278 pix.fCurrentSize = fCurrentSize; 279 pix.fFlags = fFlags; 280 pix.fPowerProbabilityBins = fPowerProbabilityBins; 281 282 if (fHPowerProbability) 283 pix.fHPowerProbability=(TH1I*)fHPowerProbability->Clone(); 284 285 if (fPowerSpectrum) 286 pix.fPowerSpectrum = new TArrayF(*fPowerSpectrum); 287 288 pix.fEvents = fEvents; 289 290 if (fFGausFit) 291 pix.fFGausFit=(TF1*)fFGausFit->Clone(); 292 if (fFExpFit) 293 pix.fFExpFit=(TF1*)fFExpFit->Clone(); 294 295 pix.fFirst = fFirst; 296 297 if (fGraphEvents) 298 pix.fGraphEvents=(TGraph*)fGraphEvents->Clone(); 299 if (fGraphPowerSpectrum) 300 pix.fGraphPowerSpectrum=(TGraph*)fGraphPowerSpectrum->Clone(); 301 302 pix.fHGausHist = fHGausHist; 303 304 pix.fLast = fLast; 305 pix.fMean = fMean; 306 pix.fMeanErr = fMeanErr; 307 pix.fNbins = fNbins; 308 pix.fNDFLimit = fNDFLimit; 309 pix.fSigma = fSigma; 310 pix.fSigma = fSigmaErr; 311 pix.fProb = fProb; 312 pix.fProbLimit = fProbLimit; 313 314 return &pix; 315 } 316 313 317 314 318
Note:
See TracChangeset
for help on using the changeset viewer.