Ignore:
Timestamp:
11/24/04 16:16:09 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedestalCam.cc

    r4794 r5465  
    9999// --------------------------------------------------------------------------
    100100//
     101// Copy 'constructor'
     102//
     103void MPedestalCam::Copy(TObject &object) const
     104{
     105
     106  MPedestalCam &cam = (MPedestalCam&)object;
     107 
     108  const Int_t n = GetSize();
     109 
     110  if (n==0)
     111    return;
     112 
     113  cam.InitSize(n);
     114  for (int i=0; i<n; i++)
     115    (*this)[i].Copy(cam[i]);
     116}
     117
     118// --------------------------------------------------------------------------
     119//
    101120// Set the size of the camera
    102121//
  • trunk/MagicSoft/Mars/mpedestal/MPedestalCam.h

    r4794 r5465  
    3131 
    3232  void Clear(Option_t *o="");
     33  void Copy(TObject &object) const;
    3334 
    3435  // Getters
Note: See TracChangeset for help on using the changeset viewer.