Changeset 5098 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 09/17/04 14:47:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r5093 r5098 337 337 // -------------------------------------------------------------------------- 338 338 // 339 // Creates new MHCalibrationCam only for the averaged areas:340 // the rest has to be retrieved directly, e.g. via:341 // MHCalibrationCam *cam = MParList::FindObject("MHCalibrationCam");342 // - cam->GetAverageSector(5).DrawClone();343 // - (*cam)[100].DrawClone()344 //345 TObject *MHCalibrationCam::Clone(const char *) const346 {347 348 //349 // FIXME, this might be done faster and more elegant, by direct copy.350 //351 MHCalibrationCam *cam = (MHCalibrationCam*)this->Clone();352 353 cam->fRunNumbers = fRunNumbers;354 355 /*356 cam->fPulserFrequency = fPulserFrequency;357 cam->fFlags = fFlags;358 cam->fNbins = fNbins;359 cam->fFirst = fFirst;360 cam->fLast = fLast;361 */362 if (!IsAverageing())363 return cam;364 365 // const Int_t nhi = fHiGainArray->GetEntries();366 // const Int_t nlo = fLoGainArray->GetEntries();367 const Int_t navhi = fAverageHiGainAreas->GetEntries();368 // const Int_t nsehi = fAverageHiGainSectors->GetEntries();369 370 // cam->fHiGainArray->Expand(nhi);371 // cam->fLoGainArray->Expand(nlo);372 cam->fAverageHiGainAreas->Expand(navhi);373 // cam->fAverageHiGainSectors->Expand(nsehi);374 // cam->fAverageLoGainSectors->Expand(nselo);375 376 /*377 for (int i=0; i<nhi; i++)378 {379 delete (*cam->fHiGainArray)[i];380 (*cam->fHiGainArray)[i] = (*fHiGainArray)[i]->Clone();381 }382 for (int i=0; i<nlo; i++)383 {384 delete (*cam->fLoGainArray)[i];385 (*cam->fLoGainArray)[i] = (*fLoGainArray)[i]->Clone();386 }387 */388 389 for (int i=0; i<navhi; i++)390 (*cam->fAverageHiGainAreas)[i] = (*fAverageHiGainAreas)[i]->Clone();391 392 // for (int i=0; i<nsehi; i++)393 // (*cam->fAverageHiGainSectors)[i] = (*fAverageHiGainSectors)[i]->Clone();394 395 if (IsLoGain())396 {397 398 const Int_t navlo = fAverageLoGainAreas->GetEntries();399 400 cam->fAverageLoGainAreas->Expand(navlo);401 // cam->fAverageLoGainSectors->Expand(nselo);402 // const Int_t nselo = fAverageLoGainSectors->GetEntries();403 404 for (int i=0; i<navlo; i++)405 (*cam->fAverageLoGainAreas)[i] = (*fAverageLoGainAreas)[i]->Clone();406 407 // for (int i=0; i<nselo; i++)408 // (*cam->fAverageLoGainSectors)[i] = (*fAverageLoGainSectors)[i]->Clone();409 }410 411 cam->fAverageAreaNum = fAverageAreaNum;412 cam->fAverageAreaSat = fAverageAreaSat;413 cam->fAverageAreaSigma = fAverageAreaSigma;414 cam->fAverageAreaSigmaVar = fAverageAreaSigmaVar;415 cam->fAverageAreaRelSigma = fAverageAreaRelSigma;416 cam->fAverageAreaRelSigmaVar = fAverageAreaRelSigmaVar;417 cam->fAverageSectorNum = fAverageSectorNum;418 419 return cam;420 }421 422 // --------------------------------------------------------------------------423 //424 339 // Gets the pointers to: 425 340 // - MGeomCam -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r5037 r5098 154 154 virtual void ResetHists(); 155 155 156 // Clone157 TObject *Clone(const char *name="") const;158 159 156 // Draw 160 157 void Draw(const Option_t *opt); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.cc
r5091 r5098 405 405 } 406 406 407 408 // --------------------------------------------------------------------------409 //410 // This Clone-function has to be different from the MHCalibrationCam411 // Clone function since it does not store and display the averaged values412 // (in fAverageAreas), but the blind pixels stored in fHiGainArray.413 //414 // Creates new MHCalibrationChargeBlindCam and415 // Clones MHCalibrationChargeBlindPix's individually416 //417 TObject *MHCalibrationChargeBlindCam::Clone(const char *name) const418 {419 420 MHCalibrationChargeBlindCam *cam = new MHCalibrationChargeBlindCam();421 422 //423 // Copy the data members424 //425 cam->fRunNumbers = fRunNumbers;426 cam->fPulserFrequency = fPulserFrequency;427 cam->fFlags = fFlags;428 cam->fNbins = fNbins;429 cam->fFirst = fFirst;430 cam->fLast = fLast;431 cam->fFitFunc = fFitFunc;432 433 const Int_t nhi = fHiGainArray->GetEntries();434 435 cam->fHiGainArray->Expand(nhi);436 437 for (int i=0; i<nhi; i++)438 (*cam->fHiGainArray)[i] = (*fHiGainArray)[i]->Clone();439 440 return cam;441 }442 443 407 // ----------------------------------------------------------------------------- 444 408 // -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.h
r5090 r5098 47 47 MHCalibrationChargeBlindCam(const char *name=NULL, const char *title=NULL); 48 48 49 // Clone50 TObject *Clone(const char *name="") const;51 52 49 // Draw 53 50 void Draw(Option_t *opt=""); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindPix.cc
r5084 r5098 231 231 } 232 232 233 #if 0234 // --------------------------------------------------------------------------235 //236 // ATTENTION: This nasty Clone function is necessary since the ROOT cloning237 // lead to crashes on SOME machines (unfortunately not mine...).238 // This function is a workaround in order to achieve the correct239 // DrawClone() behaviour.240 //241 TObject *MHCalibrationChargeBlindPix::Clone(const char *name) const242 {243 244 MHCalibrationChargeBlindPix &pix =245 *new MHCalibrationChargeBlindPix(name ? name : fName.Data(),fTitle.Data());246 247 //248 // Copy MHGausEvents data members249 //250 pix.fBinsAfterStripping = fBinsAfterStripping;251 pix.fCurrentSize = fCurrentSize;252 pix.fFlags = fFlags;253 pix.fPowerProbabilityBins = fPowerProbabilityBins;254 255 if (fHPowerProbability)256 pix.fHPowerProbability=(TH1I*)fHPowerProbability->Clone();257 258 if (fPowerSpectrum)259 pix.fPowerSpectrum = new TArrayF(*fPowerSpectrum);260 261 pix.fEvents = fEvents;262 263 if (fFGausFit)264 pix.fFGausFit=(TF1*)fFGausFit->Clone();265 if (fFExpFit)266 pix.fFExpFit=(TF1*)fFExpFit->Clone();267 268 pix.fFirst = fFirst;269 270 if (fGraphEvents)271 pix.fGraphEvents=(TGraph*)fGraphEvents->Clone();272 if (fGraphPowerSpectrum)273 pix.fGraphPowerSpectrum=(TGraph*)fGraphPowerSpectrum->Clone();274 275 pix.fHGausHist = fHGausHist;276 277 pix.fLast = fLast;278 pix.fMean = fMean;279 pix.fMeanErr = fMeanErr;280 pix.fNbins = fNbins;281 pix.fNDFLimit = fNDFLimit;282 pix.fSigma = fSigma;283 pix.fSigmaErr = fSigmaErr;284 pix.fProb = fProb;285 pix.fProbLimit = fProbLimit;286 287 //288 // Copy MHCalibrationPix data members289 //290 pix.fEventFrequency = fEventFrequency;291 pix.fBlackoutLimit = fBlackoutLimit;292 pix.fSaturated = fSaturated;293 pix.fPickupLimit = fPickupLimit;294 pix.fPixId = fPixId;295 296 //297 // Copy MHCalibrationChargeBlindPix data members298 //299 pix.fSinglePheCut = fSinglePheCut;300 pix.fNumSinglePheLimit = fNumSinglePheLimit;301 302 fASinglePheFADCSlices.Copy(pix.fASinglePheFADCSlices);303 fAPedestalFADCSlices.Copy( pix.fAPedestalFADCSlices);304 305 pix.fSinglePheFit = (TF1*)fSinglePheFit->Clone();306 307 pix.fNumSinglePhes = fNumSinglePhes;308 pix.fNumPedestals = fNumPedestals;309 pix.fLambda = fLambda;310 pix.fLambdaCheck = fLambdaCheck;311 pix.fMu0 = fMu0;312 pix.fMu1 = fMu1;313 pix.fSigma0 = fSigma0;314 pix.fSigma1 = fSigma1;315 pix.fLambdaErr = fLambdaErr;316 pix.fLambdaCheckErr = fLambdaCheckErr;317 pix.fMu0Err = fMu0Err;318 pix.fMu1Err = fMu1Err;319 pix.fSigma0Err = fSigma0Err;320 pix.fSigma1Err = fSigma1Err;321 pix.fChisquare = fChisquare;322 pix.fNDF = fNDF;323 pix.fProb = fProb;324 325 return &pix;326 }327 #endif328 329 233 /* 330 234 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindPix.h
r5050 r5098 88 88 void Reset() {} 89 89 90 // TObject *Clone(const char *) const;91 92 90 // Getters 93 91 const Double_t GetLambda () const { return fLambda; } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r5083 r5098 1272 1272 } 1273 1273 1274 1275 // --------------------------------------------------------------------------1276 //1277 // Our own clone function is necessary since root 3.01/06 or Mars 0.41278 // I don't know the reason.1279 //1280 // Creates new MHCalibrationChargeCam only for the Averaged Areas,1281 // the rest has to be retrieved directly, e.g. via:1282 // MHCalibrationChargeCam *cam = MParList::FindObject("MHCalibrationChargeCam");1283 // - cam->GetAverageSector(5).DrawClone();1284 // - (*cam)[100].DrawClone()1285 //1286 #if 01287 TObject *MHCalibrationChargeCam::Clone(const char *name) const1288 {1289 1290 const Int_t navhi = fAverageHiGainAreas->GetEntries();1291 // const Int_t nsehi = fAverageHiGainSectors->GetEntries();1292 // const Int_t nselo = fAverageLoGainSectors->GetEntries();1293 1294 //1295 // FIXME, this might be done faster and more elegant, by direct copy.1296 //1297 MHCalibrationChargeCam *cam = new MHCalibrationChargeCam();1298 1299 cam->fColor = fColor;1300 cam->fPulserFrequency = fPulserFrequency;1301 cam->fFlags = fFlags;1302 cam->fRunNumbers = fRunNumbers;1303 cam->fNbins = fNbins;1304 cam->fFirst = fFirst;1305 cam->fLast = fLast;1306 1307 if (!IsAverageing())1308 return cam;1309 1310 cam->fAverageHiGainAreas->Expand(navhi);1311 1312 for (int i=0; i<navhi; i++)1313 (*cam->fAverageHiGainAreas) [i] = (*fAverageHiGainAreas) [i]->Clone();1314 // cam->fAverageHiGainSectors->Expand(nsehi);1315 // for (int i=0; i<nsehi; i++)1316 // (*cam->fAverageHiGainSectors)[i] = (*fAverageHiGainSectors)[i]->Clone();1317 1318 if (IsLoGain())1319 {1320 const Int_t navlo = fAverageLoGainAreas->GetEntries();1321 cam->fAverageLoGainAreas->Expand(navlo);1322 1323 for (int i=0; i<navlo; i++)1324 (*cam->fAverageLoGainAreas) [i] = (*fAverageLoGainAreas) [i]->Clone();1325 // cam->fAverageLoGainSectors->Expand(nselo);1326 // for (int i=0; i<nselo; i++)1327 // (*cam->fAverageLoGainSectors)[i] = (*fAverageLoGainSectors)[i]->Clone();1328 }1329 1330 cam->fAverageAreaNum = fAverageAreaNum;1331 cam->fAverageAreaSat = fAverageAreaSat;1332 cam->fAverageAreaSigma = fAverageAreaSigma;1333 cam->fAverageAreaSigmaVar = fAverageAreaSigmaVar;1334 cam->fAverageAreaRelSigma = fAverageAreaRelSigma;1335 cam->fAverageAreaRelSigmaVar = fAverageAreaRelSigmaVar;1336 cam->fAverageSectorNum = fAverageSectorNum;1337 1338 return cam;1339 1340 }1341 #endif1342 1343 1274 // ----------------------------------------------------------------------------- 1344 1275 // -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.h
r5083 r5098 105 105 ~MHCalibrationChargeCam() {} 106 106 107 //TObject *Clone(const char *name="") const;108 109 107 void SetLoGainNbins ( const Int_t i ) { fLoGainNbins = i; } 110 108 void SetLoGainFirst ( const Axis_t f ) { fLoGainFirst = f; } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePINDiode.cc
r5083 r5098 197 197 // -------------------------------------------------------------------------- 198 198 // 199 // Use the MHCalibrationChargePix::Clone function and clone additionally200 // the rest of the data members.201 //202 #if 0203 TObject *MHCalibrationChargePINDiode::Clone(const char *name) const204 {205 206 MHCalibrationChargePINDiode &pix = (MHCalibrationChargePINDiode&)*MHCalibrationChargePix::Clone(name);207 //208 // Copy data members209 //210 pix.fHRmsCharge = fHRmsCharge;211 212 pix.fRmsChargeFirst = fRmsChargeFirst;213 pix.fRmsChargeLast = fRmsChargeLast;214 pix.fRmsChargeNbins = fRmsChargeNbins;215 pix.fRmsChargeMean = fRmsChargeMean;216 pix.fRmsChargeMeanErr = fRmsChargeMeanErr;217 pix.fRmsChargeSigma = fRmsChargeSigma;218 pix.fRmsChargeSigmaErr = fRmsChargeSigmaErr;219 pix.fTimeLowerLimit = fTimeLowerLimit;220 pix.fTimeUpperLimit = fTimeUpperLimit;221 222 return &pix;223 }224 #endif225 226 // --------------------------------------------------------------------------227 //228 199 // Gets or creates the pointers to: 229 200 // - MExtractedSignalPINDiode -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePINDiode.h
r5083 r5098 66 66 ~MHCalibrationChargePINDiode(){} 67 67 68 // TObject *Clone(const char* name="") const;69 70 68 Bool_t SetupFill(const MParList *pList); 71 69 Bool_t ReInit ( MParList *pList); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePix.cc
r4962 r5098 80 80 81 81 } 82 83 #if 084 // --------------------------------------------------------------------------85 //86 // ATTENTION: This nasty Clone function is necessary since the ROOT cloning87 // lead to crashes on SOME machines (unfortunately not mine...).88 // This function is a workaround in order to achieve the correct89 // DrawClone() behaviour.90 //91 TObject *MHCalibrationChargePix::Clone(const char *name) const92 {93 94 MHCalibrationChargePix &pix =95 *new MHCalibrationChargePix(name ? name : fName.Data(),fTitle.Data());96 //97 // Copy MHGausEvents data members98 //99 pix.fBinsAfterStripping = fBinsAfterStripping;100 pix.fCurrentSize = fCurrentSize;101 pix.fFlags = fFlags;102 pix.fPowerProbabilityBins = fPowerProbabilityBins;103 104 if (fHPowerProbability)105 pix.fHPowerProbability=(TH1I*)fHPowerProbability->Clone();106 107 if (fPowerSpectrum)108 pix.fPowerSpectrum = new TArrayF(*fPowerSpectrum);109 110 pix.fEvents = fEvents;111 112 if (fFGausFit)113 pix.fFGausFit=(TF1*)fFGausFit->Clone();114 if (fFExpFit)115 pix.fFExpFit=(TF1*)fFExpFit->Clone();116 117 pix.fFirst = fFirst;118 119 if (fGraphEvents)120 pix.fGraphEvents=(TGraph*)fGraphEvents->Clone();121 if (fGraphPowerSpectrum)122 pix.fGraphPowerSpectrum=(TGraph*)fGraphPowerSpectrum->Clone();123 124 pix.fHGausHist = fHGausHist;125 126 pix.fLast = fLast;127 pix.fMean = fMean;128 pix.fMeanErr = fMeanErr;129 pix.fNbins = fNbins;130 pix.fNDFLimit = fNDFLimit;131 pix.fSigma = fSigma;132 pix.fSigmaErr = fSigmaErr;133 pix.fProb = fProb;134 pix.fProbLimit = fProbLimit;135 136 //137 // Copy MHCalibrationPix data members138 //139 pix.fEventFrequency = fEventFrequency;140 pix.fBlackoutLimit = fBlackoutLimit;141 pix.fSaturated = fSaturated;142 pix.fPickupLimit = fPickupLimit;143 pix.fPixId = fPixId;144 145 //146 // Copy MHCalibrationChargePix data members147 //148 pix.fHAbsTime = fHAbsTime;149 150 return &pix;151 }152 #endif153 82 154 83 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePix.h
r4962 r5098 21 21 MHCalibrationChargePix(const char *name=NULL, const char *title=NULL); 22 22 ~MHCalibrationChargePix() {} 23 24 // TObject *Clone(const char* name="") const;25 23 26 24 void Reset(); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.cc
r5004 r5098 92 92 } 93 93 94 95 #if 096 // --------------------------------------------------------------------------97 //98 // ATTENTION: This nasty Clone function is necessary since the ROOT cloning99 // lead to crashes on SOME machines (unfortunately not mine...).100 // This function is a workaround in order to achieve the correct101 // DrawClone() behaviour.102 //103 TObject *MHCalibrationPix::Clone(const char *name) const104 {105 106 MHCalibrationPix &pix = *new MHCalibrationPix(name ? name : fName.Data(),fTitle.Data());107 108 //109 // Copy MHGausEvents data members110 //111 pix.fBinsAfterStripping = fBinsAfterStripping;112 pix.fCurrentSize = fCurrentSize;113 pix.fFlags = fFlags;114 pix.fPowerProbabilityBins = fPowerProbabilityBins;115 116 if (fHPowerProbability)117 pix.fHPowerProbability=(TH1I*)fHPowerProbability->Clone();118 119 if (fPowerSpectrum)120 pix.fPowerSpectrum = new TArrayF(*fPowerSpectrum);121 122 pix.fEvents = fEvents;123 124 if (fFGausFit)125 pix.fFGausFit=(TF1*)fFGausFit->Clone();126 if (fFExpFit)127 pix.fFExpFit=(TF1*)fFExpFit->Clone();128 129 pix.fFirst = fFirst;130 131 if (fGraphEvents)132 pix.fGraphEvents=(TGraph*)fGraphEvents->Clone();133 if (fGraphPowerSpectrum)134 pix.fGraphPowerSpectrum=(TGraph*)fGraphPowerSpectrum->Clone();135 136 pix.fHGausHist = fHGausHist;137 138 pix.fLast = fLast;139 pix.fMean = fMean;140 pix.fMeanErr = fMeanErr;141 pix.fNbins = fNbins;142 pix.fNDFLimit = fNDFLimit;143 pix.fSigma = fSigma;144 pix.fSigmaErr = fSigmaErr;145 pix.fProb = fProb;146 pix.fProbLimit = fProbLimit;147 148 //149 // Copy data members150 //151 pix.fBlackoutLimit = fBlackoutLimit;152 pix.fSaturated = fSaturated;153 pix.fPickupLimit = fPickupLimit;154 pix.fPixId = fPixId;155 156 return &pix;157 }158 #endif159 160 94 // ----------------------------------------------------------------------------- 161 95 // -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.h
r4994 r5098 27 27 void Clear(Option_t *o=""); 28 28 29 // TObject *Clone(const char* name="") const;30 31 29 // Getters 32 30 const Double_t GetBlackout () const; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r5083 r5098 170 170 // -------------------------------------------------------------------------- 171 171 // 172 // Our own clone function is necessary since root 3.01/06 or Mars 0.4173 // I don't know the reason.174 //175 // Creates new MHCalibrationRelTimeCam176 //177 #if 0178 TObject *MHCalibrationRelTimeCam::Clone(const char *name) const179 {180 181 const Int_t navhi = fAverageHiGainAreas->GetEntries();182 const Int_t navlo = fAverageLoGainAreas->GetEntries();183 const Int_t nsehi = fAverageHiGainSectors->GetEntries();184 const Int_t nselo = fAverageLoGainSectors->GetEntries();185 186 //187 // FIXME, this might be done faster and more elegant, by direct copy.188 //189 MHCalibrationRelTimeCam *cam = new MHCalibrationRelTimeCam();190 191 cam->fAverageHiGainAreas->Expand(navhi);192 cam->fAverageHiGainSectors->Expand(nsehi);193 194 for (int i=0; i<navhi; i++)195 (*cam->fAverageHiGainAreas) [i] = (*fAverageHiGainAreas) [i]->Clone();196 for (int i=0; i<nsehi; i++)197 (*cam->fAverageHiGainSectors)[i] = (*fAverageHiGainSectors)[i]->Clone();198 199 if (IsLoGain())200 {201 cam->fAverageLoGainAreas->Expand(navlo);202 cam->fAverageLoGainSectors->Expand(nselo);203 204 for (int i=0; i<navlo; i++)205 (*cam->fAverageLoGainAreas) [i] = (*fAverageLoGainAreas) [i]->Clone();206 for (int i=0; i<nselo; i++)207 (*cam->fAverageLoGainSectors)[i] = (*fAverageLoGainSectors)[i]->Clone();208 }209 210 cam->fAverageAreaNum = fAverageAreaNum;211 cam->fAverageAreaSat = fAverageAreaSat;212 cam->fAverageAreaSigma = fAverageAreaSigma;213 cam->fAverageAreaSigmaVar = fAverageAreaSigmaVar;214 cam->fAverageAreaRelSigma = fAverageAreaRelSigma;215 cam->fAverageAreaRelSigmaVar = fAverageAreaRelSigmaVar;216 cam->fAverageSectorNum = fAverageSectorNum;217 cam->fRunNumbers = fRunNumbers;218 219 cam->fColor = fColor;220 cam->fPulserFrequency = fPulserFrequency;221 cam->fFlags = fFlags;222 223 return cam;224 225 }226 #endif227 228 // --------------------------------------------------------------------------229 //230 172 // Gets or creates the pointers to: 231 173 // - MCalibrationRelTimeCam -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.h
r5083 r5098 55 55 ~MHCalibrationRelTimeCam() {} 56 56 57 //TObject *Clone(const char *name="") const;58 59 57 UInt_t GetReferencePixel() const { return fReferencePixel; } 60 58 -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r5084 r5098 265 265 } 266 266 267 // --------------------------------------------------------------------------268 //269 // Use the MH::Clone function and clone additionally the rest of the270 // data members.271 //272 #if 0273 TObject *MHGausEvents::Clone(const char *name) const274 {275 276 MHGausEvents &pix = (MHGausEvents&)*MH::Clone(name);277 278 /*279 //280 // Copy data members281 //282 pix.fBinsAfterStripping = fBinsAfterStripping;283 pix.fCurrentSize = fCurrentSize;284 pix.fFlags = fFlags;285 pix.fPowerProbabilityBins = fPowerProbabilityBins;286 287 if (fHPowerProbability)288 pix.fHPowerProbability=(TH1I*)fHPowerProbability->Clone();289 290 if (fPowerSpectrum)291 pix.fPowerSpectrum = new TArrayF(*fPowerSpectrum);292 293 if (fFGausFit)294 pix.fFGausFit=(TF1*)fFGausFit->Clone();295 if (fFExpFit)296 pix.fFExpFit=(TF1*)fFExpFit->Clone();297 298 pix.fFirst = fFirst;299 300 if (fGraphEvents)301 pix.fGraphEvents=(TGraph*)fGraphEvents->Clone();302 if (fGraphPowerSpectrum)303 pix.fGraphPowerSpectrum=(TGraph*)fGraphPowerSpectrum->Clone();304 305 pix.fHGausHist = fHGausHist;306 307 pix.fEventFrequency = fEventFrequency;308 pix.fLast = fLast;309 pix.fMean = fMean;310 pix.fMeanErr = fMeanErr;311 pix.fNbins = fNbins;312 pix.fNDFLimit = fNDFLimit;313 pix.fSigma = fSigma;314 pix.fSigmaErr = fSigmaErr;315 pix.fProb = fProb;316 pix.fProbLimit = fProbLimit;317 */318 return &pix;319 }320 #endif321 322 267 // ----------------------------------------------------------------------------- 323 268 // -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h
r5083 r5098 76 76 ~MHGausEvents(); 77 77 78 //TObject *Clone(const char* name="") const;79 80 78 void Clear(Option_t *o=""); 81 79 void Reset();
Note:
See TracChangeset
for help on using the changeset viewer.