Ignore:
Timestamp:
09/17/04 14:47:10 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindPix.cc

    r5084 r5098  
    231231}
    232232
    233 #if 0
    234 // --------------------------------------------------------------------------
    235 //
    236 // ATTENTION: This nasty Clone function is necessary since the ROOT cloning
    237 //            lead to crashes on SOME machines (unfortunately not mine...).
    238 //            This function is a workaround in order to achieve the correct
    239 //            DrawClone() behaviour.
    240 //
    241 TObject *MHCalibrationChargeBlindPix::Clone(const char *name) const
    242 {
    243 
    244   MHCalibrationChargeBlindPix &pix =
    245     *new MHCalibrationChargeBlindPix(name ? name : fName.Data(),fTitle.Data());
    246 
    247   //
    248   // Copy MHGausEvents data members
    249   //
    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 members
    289   //
    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 members
    298   //
    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 #endif
    328 
    329233/*
    330234// --------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.