Changeset 15063


Ignore:
Timestamp:
03/13/13 16:04:24 (12 years ago)
Author:
tbretz
Message:
Only change extension to fits when writing fits files requested.
File:
1 edited

Legend:

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

    r15062 r15063  
    541541    const TString rule4(Form(fmt, 'I'));
    542542    TString rule3(Form(fmt, header.GetRunTypeChar()));
    543     rule3.ReplaceAll("$1.root/", "$1.fits/");
     543    if (fWriteFitsFile)
     544        rule3.ReplaceAll("$1.root/", "$1.fits/");
    544545
    545546    MWriteRootFile write4a( 2, rule4, fOverwrite?"RECREATE":"NEW", "Star file");
Note: See TracChangeset for help on using the changeset viewer.