- Timestamp:
- 09/14/04 19:46:40 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityBlindCam.cc
r4986 r5015 39 39 ///////////////////////////////////////////////////////////////////////////// 40 40 #include "MCalibrationIntensityBlindCam.h" 41 #include "MCalibrationBlindCam.h" 41 42 42 #include <T ClonesArray.h>43 #include <TObjArray.h> 43 44 44 45 ClassImp(MCalibrationIntensityBlindCam); … … 50 51 // Default constructor. 51 52 // 52 // Sets all pointers to 053 //54 // Creates a TClonesArray of MCalibrationBlindCam containers, initialized to 1 entry, destinated55 // to hold one container per camera.56 //57 53 MCalibrationIntensityBlindCam::MCalibrationIntensityBlindCam(const char *name, const char *title) 58 54 { … … 60 56 fName = name ? name : "MCalibrationIntensityBlindCam"; 61 57 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 // 66 void 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(); 62 78 63 fCams = new TClonesArray("MCalibrationBlindCam",1);64 79 if (oldcam) 80 oldcam->Copy(*newcam); 65 81 } 82
Note:
See TracChangeset
for help on using the changeset viewer.