Ignore:
Timestamp:
11/01/19 14:18:10 (5 years ago)
Author:
tbretz
Message:
Make a public access to MCorsikaRead::CalcNumEvents possible. This allows to use it to check whether all files are valid. Added the new option '--check' to ceres for that. Copy '-tel' to the file names. This is more conevenient in reading them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mjobs/MJSimulation.cc

    r19723 r19848  
    396396}
    397397
    398 Bool_t MJSimulation::Process(const MArgs &args, const MSequence &seq)
     398Bool_t MJSimulation::Process(const MArgs &args, const MSequence &seq, Bool_t checkonly)
    399399{
    400400    // --------------------------------------------------------------------------------
     
    409409    // - description of the job itself
    410410    // - list of the to processed sequence
     411    if (!checkonly)
     412        fLog->Separator(GetDescriptor());
     413
    411414    *fLog << inf;
    412     fLog->Separator(GetDescriptor());
    413 
    414415    if (!CheckEnv())
    415416        return kFALSE;
     
    418419        *fLog << fSequence.GetFileName() << endl;
    419420    else
    420         *fLog << "Input: " << args.GetNumArguments() << "-files" << endl;
     421        *fLog << "Input: " << args.GetNumArguments() << " file(s)" << endl;
    421422    *fLog << endl;
    422423
     
    550551        return kFALSE;
    551552    }
     553
     554    if (checkonly)
     555        return read.CalcNumTotalEvents();
    552556
    553557    // --------------------------------------------------------------------------------
     
    823827
    824828    const char *regex = fRunNumber<0 ?
    825         "s/[cC][eE][rR]([0-9]+)(-[tT][eE][lL]([0-9]+))?/%s\\/00$1.%03d%%s_MonteCarlo$3.root/" :
    826         "s/[cC][eE][rR][0-9]+([0-9][0-9][0-9])(-[tT][eE][lL]([0-9]+))?/%s\\/%08d.$1%%s_MonteCarlo$3.root/";
     829        "s/[cC][eE][rR]([0-9]+)(-[tT][eE][lL]([0-9]+))?/%s\\/00$1.%03d%%s_MonteCarlo$2.root/" :
     830        "s/[cC][eE][rR][0-9]+([0-9][0-9][0-9])(-[tT][eE][lL]([0-9]+))?/%s\\/%08d.$1%%s_MonteCarlo$2.root/";
    827831
    828832    const char *fmt = fFileOut.IsNull() ?
Note: See TracChangeset for help on using the changeset viewer.