Changeset 5052 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 09/15/04 23:18:04 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityCam.cc
r5046 r5052 359 359 MCalibrationCam *MCalibrationIntensityCam::GetCam(Int_t i) 360 360 { 361 return static_cast<MCalibrationCam*>( fCams->Last());361 return static_cast<MCalibrationCam*>(i==-1 ? fCams->Last() : fCams->At(i)); 362 362 } 363 363 … … 368 368 const MCalibrationCam *MCalibrationIntensityCam::GetCam(Int_t i) const 369 369 { 370 return static_cast<MCalibrationCam*>( fCams->Last());370 return static_cast<MCalibrationCam*>(i==-1 ? fCams->Last() : fCams->At(i)); 371 371 } 372 372
Note:
See TracChangeset
for help on using the changeset viewer.