Ignore:
Timestamp:
02/19/09 22:59:24 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msimcamera
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimAPD.cc

    r9349 r9356  
    100100        *fLog << inf << fNameGeomCam << " [MGeomCam] not found..." << endl;
    101101
    102         fGeom = (MGeomCam*)pList->FindCreateObj(fNameGeomCam);
     102        fGeom = (MGeomCam*)pList->FindObject("MGeomCam");
    103103        if (!fGeom)
     104        {
     105            *fLog << err << "MGeomCam not found... aborting." << endl;
    104106            return kFALSE;
     107        }
    105108    }
    106109
  • trunk/MagicSoft/Mars/msimcamera/MSimGeomCam.cc

    r9347 r9356  
    9191        *fLog << inf << fNameGeomCam << " [MGeomCam] not found..." << endl;
    9292
    93         fGeom = (MGeomCam*)pList->FindCreateObj(fNameGeomCam);
     93        fGeom = (MGeomCam*)pList->FindObject("MGeomCam");
    9494        if (!fGeom)
     95        {
     96            *fLog << err << "MGeomCam not found... aborting." << endl;
    9597            return kFALSE;
     98        }
    9699    }
    97100
  • trunk/MagicSoft/Mars/msimcamera/MSimRandomPhotons.cc

    r9272 r9356  
    9191        *fLog << inf << fNameGeomCam << " [MGeomCam] not found..." << endl;
    9292
    93         fGeom = (MGeomCam*)pList->FindCreateObj(fNameGeomCam);
     93        fGeom = (MGeomCam*)pList->FindObject("MGeomCam");
    9494        if (!fGeom)
     95        {
     96            *fLog << err << "MGeomCam not found... aborting." << endl;
    9597            return kFALSE;
     98        }
    9699    }
    97100
     
    175178            // Add a new photon
    176179            // FIXME: SLOW!
    177             MPhotonData &ph = fEvt->Add(); 
     180            MPhotonData &ph = fEvt->Add();
    178181
    179182            // Set source to NightSky, time to t and tag to pixel index
Note: See TracChangeset for help on using the changeset viewer.