Ignore:
Timestamp:
02/12/09 20:07:51 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msim/MHPhotonEvent.cc

    r9308 r9328  
    194194    case 2:
    195195        {
    196             MReflector *r = (MReflector*)pList->FindObject("MReflector");
     196            MReflector *r = (MReflector*)pList->FindObject("Reflector", "MReflector");
    197197            if (!r)
    198198            {
    199                 *fLog << err << "MReflector not found... aborting." << endl;
     199                *fLog << err << "Reflector [MReflector] not found... aborting." << endl;
    200200                return kFALSE;
    201201            }
  • trunk/MagicSoft/Mars/msim/MSimAbsorption.cc

    r9243 r9328  
    235235Int_t MSimAbsorption::PreProcess(MParList *pList)
    236236{
     237    if (fFileName.IsNull())
     238    {
     239        *fLog << inf << "No file given... skipping." << endl;
     240        return kSKIP;
     241    }
     242
    237243    fEvt = (MPhotonEvent*)pList->FindObject("MPhotonEvent");
    238244    if (!fEvt)
     
    248254        return kFALSE;
    249255    }
     256
     257    *fLog << inf << "Using " << (fUseTheta?"Theta":"Wavelength") << " for absorption." << endl;
    250258
    251259    return ReadFile();
Note: See TracChangeset for help on using the changeset viewer.