Changeset 5098 for trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
- Timestamp:
- 09/17/04 14:47:10 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r5083 r5098 170 170 // -------------------------------------------------------------------------- 171 171 // 172 // Our own clone function is necessary since root 3.01/06 or Mars 0.4173 // I don't know the reason.174 //175 // Creates new MHCalibrationRelTimeCam176 //177 #if 0178 TObject *MHCalibrationRelTimeCam::Clone(const char *name) const179 {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 #endif227 228 // --------------------------------------------------------------------------229 //230 172 // Gets or creates the pointers to: 231 173 // - MCalibrationRelTimeCam
Note:
See TracChangeset
for help on using the changeset viewer.