Ignore:
Timestamp:
04/06/04 13:58:05 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MGeomApply.cc

    r3660 r3667  
    7575#include "MGeomCam.h"
    7676#include "MPedestalCam.h"
    77 #include "MCalibrationChargeCam.h"
    78 #include "MCalibrationRelTimeCam.h"
    79 #include "MCalibrationQECam.h"
    80 #include "MCalibrationPedCam.h"
     77#include "MCalibrationCam.h"
    8178#include "MPedPhotCam.h"
    8279#include "MExtractedSignalCam.h"
     
    140137        ped->InitSize(cam->GetNumPixels());
    141138
    142     MCalibrationChargeCam *cal =
    143       (MCalibrationChargeCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam"));
     139    MCalibrationCam *cal = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam"));
    144140    if (cal)
    145       {
    146         cal->InitSize          ( cam->GetNumPixels()  );
    147         cal->InitAverageAreas  ( cam->GetNumAreas()   );
    148         cal->InitAverageSectors( cam->GetNumSectors() );
    149       }
     141        cal->Init(*cam);
    150142
    151     MCalibrationRelTimeCam *cat =
    152       (MCalibrationRelTimeCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam"));
     143    MCalibrationCam *cat = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam"));
    153144    if (cat)
    154       {
    155         cat->InitSize          ( cam->GetNumPixels()  );
    156         cat->InitAverageAreas  ( cam->GetNumAreas()   );
    157         cat->InitAverageSectors( cam->GetNumSectors() );
    158       }
    159    
    160     MCalibrationQECam *qe =
    161       (MCalibrationQECam*)pList->FindObject(AddSerialNumber("MCalibrationQECam"));
     145        cat->Init(*cam);
     146
     147    MCalibrationCam *qe = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationQECam"));
    162148    if (qe)
    163       {
    164         qe->InitSize           ( cam->GetNumPixels()  );
    165         qe->InitAverageAreas   ( cam->GetNumAreas()   );
    166         qe->InitAverageSectors ( cam->GetNumSectors() );
    167       }
    168    
    169     MCalibrationPedCam *pcam =
    170       (MCalibrationPedCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam"));
     149        qe->Init(*cam);
     150
     151    MCalibrationCam *pcam = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam"));
    171152    if (pcam)
    172       {
    173         pcam->InitSize           ( cam->GetNumPixels()  );
    174         pcam->InitAverageAreas   ( cam->GetNumAreas()   );
    175         pcam->InitAverageSectors ( cam->GetNumSectors() );
    176       }
    177    
     153        pcam->Init(*cam);
     154
    178155    MPedPhotCam *pedphot = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam"));
    179156    if (pedphot)
    180157        pedphot->InitSize(cam->GetNumPixels());
    181158
    182 
    183159    MExtractedSignalCam *ext = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam"));
    184160    if (ext)
    185161        ext->InitSize(cam->GetNumPixels());
    186 
    187162
    188163    MBlindPixels *bnd = (MBlindPixels*)pList->FindObject(AddSerialNumber("MBlindPixels"));
Note: See TracChangeset for help on using the changeset viewer.