Ignore:
Timestamp:
08/11/04 12:01:44 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4511 r4577  
    118118Bool_t MGeomApply::ReInit(MParList *pList)
    119119{
    120     MGeomCam *cam = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam"));
    121     if (!cam)
     120    MGeomCam *geom = (MGeomCam*)pList->FindObject(AddSerialNumber("MGeomCam"));
     121    if (!geom)
    122122    {
    123123       *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl;
     
    128128    // the use of some camera files from the 0.7 beta version in which the
    129129    // array containing pixel ratios is not initialized.
    130     cam->CalcPixRatio();
    131 
     130    geom->CalcPixRatio();
     131
     132    TIter Next(*pList);
     133    TObject *o = 0;
     134
     135    while ((o=Next()))
     136    {
     137        MCamEvent *cam = dynamic_cast<MCamEvent*>(o);
     138        if (cam)
     139            cam->Init(*geom);
     140    }
     141/*
    132142    MPedestalCam *ped = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam"));
    133143    if (ped)
    134         ped->Init(*cam);
     144        ped->Init(*geom);
    135145
    136146    MCalibrationCam *cal = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationChargeCam"));
    137147    if (cal)
    138         cal->Init(*cam);
     148        cal->Init(*geom);
    139149
    140150    MCalibrationCam *cat = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationRelTimeCam"));
    141151    if (cat)
    142         cat->Init(*cam);
     152        cat->Init(*geom);
    143153
    144154    MCalibrationCam *qe = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationQECam"));
    145155    if (qe)
    146         qe->Init(*cam);
     156        qe->Init(*geom);
    147157
    148158    MCalibrationCam *pcam = (MCalibrationCam*)pList->FindObject(AddSerialNumber("MCalibrationPedCam"));
    149159    if (pcam)
    150         pcam->Init(*cam);
     160        pcam->Init(*geom);
    151161
    152162    MPedPhotCam *pedphot = (MPedPhotCam*)pList->FindObject(AddSerialNumber("MPedPhotCam"));
    153163    if (pedphot)
    154         pedphot->Init(*cam);
     164        pedphot->Init(*geom);
    155165
    156166    MExtractedSignalCam *ext = (MExtractedSignalCam*)pList->FindObject(AddSerialNumber("MExtractedSignalCam"));
    157167    if (ext)
    158         ext->InitSize(cam->GetNumPixels());
     168        ext->Init(*cam);
    159169
    160170    MArrivalTimeCam *tme = (MArrivalTimeCam*)pList->FindObject(AddSerialNumber("MArrivalTimeCam"));
     
    168178    MBadPixelsCam *bad = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam"));
    169179    if (bad)
    170       bad->InitSize(cam->GetNumPixels());
     180        bad->InitSize(cam->GetNumPixels());
     181    */
    171182
    172183    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.