Changeset 19540 for trunk/Mars/mcorsika


Ignore:
Timestamp:
06/04/19 10:18:11 (5 years ago)
Author:
tbretz
Message:
Added a check to ensure that telescope positions are set if required.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcorsika/MCorsikaRead.cc

    r19535 r19540  
    210210        *fLog << inf2 << "Run " << runid << " detected to be for the " << telid << "-th telescope." << endl;
    211211
     212        if (fNumTelescopes<telid)
     213        {
     214            *fLog << err << "Position of telescope " << telid << " not defined." << endl;
     215            return kERROR;
     216        }
     217
    212218        *fLog << inf << "Telescope #" << telid << " [X/Y/Z (R)]: ";
    213219        *fLog << fTelescopeX[telid-1] << "/";
Note: See TracChangeset for help on using the changeset viewer.