Ignore:
Timestamp:
03/24/05 11:14:13 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r6874 r6887  
    14771477{
    14781478
    1479   if (!fIsHiLoCalibration || IsUseMC())
     1479  if (!fIsHiLoCalibration)
    14801480    return kTRUE;
    14811481
     
    15821582
    15831583    fHiLoCalibFile = GetEnv("HiLoCalibFile",fHiLoCalibFile.Data());
     1584
     1585    if (IsUseMC() && !fHiLoCalibFile.EndsWith("_mc.root"))
     1586    {
     1587        if (!fHiLoCalibFile.EndsWith(".root"))
     1588        {
     1589            *fLog << warn << "WARNING - Hi-/Lo-Gain intercalibration file ";
     1590            *fLog << fHiLoCalibFile << " has not .root as extension..." << endl;
     1591        }
     1592        else
     1593            fHiLoCalibFile.Insert(fHiLoCalibFile.Length()-5, "_mc");
     1594    }
    15841595
    15851596    return ReadHiLoCalibFile();
Note: See TracChangeset for help on using the changeset viewer.