Ignore:
Timestamp:
09/14/04 19:46:40 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityBlindCam.cc

    r4986 r5015  
    3939/////////////////////////////////////////////////////////////////////////////
    4040#include "MCalibrationIntensityBlindCam.h"
     41#include "MCalibrationBlindCam.h"
    4142
    42 #include <TClonesArray.h>
     43#include <TObjArray.h>
    4344
    4445ClassImp(MCalibrationIntensityBlindCam);
     
    5051// Default constructor.
    5152//
    52 // Sets all pointers to 0
    53 //
    54 // Creates a TClonesArray of MCalibrationBlindCam containers, initialized to 1 entry, destinated
    55 // to hold one container per camera.
    56 //
    5753MCalibrationIntensityBlindCam::MCalibrationIntensityBlindCam(const char *name, const char *title)
    5854{
     
    6056  fName  = name  ? name  : "MCalibrationIntensityBlindCam";
    6157  fTitle = title ? title : "Results of the Intensity Calibration";
     58
     59}
     60
     61// --------------------------------------------------------------------------
     62//
     63// Calls TObjArray::Expand() for fCams and initialze one MCalibrationBlindCam
     64// and copy the entries
     65//
     66void MCalibrationIntensityBlindCam::InitSize(const UInt_t n)
     67{
     68
     69  MCalibrationBlindCam *oldcam = NULL;
     70
     71  if (n>1)
     72    oldcam = (MCalibrationBlindCam*)GetCam();
     73
     74  MCalibrationIntensityCam::InitSize(n);
     75  (*fCams)[n-1] = new MCalibrationBlindCam;
     76
     77  MCalibrationBlindCam *newcam = (MCalibrationBlindCam*)GetCam(); 
    6278 
    63   fCams = new TClonesArray("MCalibrationBlindCam",1);
    64  
     79  if (oldcam)
     80    oldcam->Copy(*newcam);
    6581}
     82
Note: See TracChangeset for help on using the changeset viewer.