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/MHCalibrationRelTimeCam.cc

    r5083 r5098  
    170170// --------------------------------------------------------------------------
    171171//
    172 // Our own clone function is necessary since root 3.01/06 or Mars 0.4
    173 // I don't know the reason.
    174 //
    175 // Creates new MHCalibrationRelTimeCam
    176 //
    177 #if 0
    178 TObject *MHCalibrationRelTimeCam::Clone(const char *name) const
    179 {
    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 #endif
    227 
    228 // --------------------------------------------------------------------------
    229 //
    230172// Gets or creates the pointers to:
    231173// - MCalibrationRelTimeCam
Note: See TracChangeset for help on using the changeset viewer.