Changeset 5013
- Timestamp:
- 09/14/04 19:04:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5011 r5013 32 32 33 33 2004/09/14: Markus Gaug 34 35 * mbadpixels/MBadPixelsIntensityCam.[h,cc] 36 * mcalib/MCalibrationIntensityCam.[h,cc] 37 - replace TClonesArray by TObjArray 34 38 35 39 * mjobs/MJCalibration.cc -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.cc
r4957 r5013 54 54 // Default constructor. 55 55 // 56 // Set the following pointer to NULL:56 // Initializes and sets owner of: 57 57 // - fCams 58 // - Initializes fCams to entry 58 59 // 59 60 MBadPixelsIntensityCam::MBadPixelsIntensityCam(const char *name, const char *title) 60 : fCams(NULL)61 61 { 62 62 … … 64 64 fTitle = title ? title : "Base container for the Intensity Calibration"; 65 65 66 } 67 68 // -------------------------------------------------------------------------- 69 // 70 // Deletes the histograms if they exist 66 fCams = new TObjArray; 67 fCams->SetOwner(); 68 69 InitSize(1); 70 } 71 72 // -------------------------------------------------------------------------- 73 // 74 // Deletes the cameras if they exist 71 75 // 72 76 MBadPixelsIntensityCam::~MBadPixelsIntensityCam() … … 84 88 { 85 89 86 fCams->ExpandCreate(GetSize()+1); 90 const Int_t size = GetSize(); 91 fCams->Expand(size+1); 92 93 (*fCams)[size] = new MBadPixelsCam; 87 94 88 95 GetCam()->SetName(name); … … 141 148 void MBadPixelsIntensityCam::InitSize(const UInt_t n) 142 149 { 143 fCams->ExpandCreate(n); 150 151 fCams->Expand(n); 152 153 for (Int_t i=0; i<fCams->GetSize(); i++) 154 (*fCams)[i] = new MBadPixelsCam; 144 155 } 145 156 … … 153 164 if (GetSize() == 0) 154 165 InitSize(1); 166 155 167 fCams->ForEach(MBadPixelsCam,Init)(geom); 156 168 } … … 164 176 Int_t MBadPixelsIntensityCam::GetSize() const 165 177 { 166 return fCams->GetEntries Fast();178 return fCams->GetEntries(); 167 179 } 168 180 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.h
r4957 r5013 12 12 #endif 13 13 14 class T ClonesArray;14 class TObjArray; 15 15 class MGeomCam; 16 16 class MBadPixelsIntensityCam : public MParContainer, public MCamEvent … … 22 22 protected: 23 23 24 T ClonesArray *fCams; //-> Array of MBadPixelsCams, one per pulse colour and intensity24 TObjArray *fCams; //-> Array of MBadPixelsCams, one per pulse colour and intensity 25 25 26 26 public:
Note:
See TracChangeset
for help on using the changeset viewer.