Changeset 8301


Ignore:
Timestamp:
02/04/07 11:22:51 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

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

    r8300 r8301  
    14881488    }
    14891489
     1490    // Defined resource id
     1491    const TString id = IsUseMC() ? "MC" : Form("%02d", period);
     1492
    14901493    // Check for a valid entry for the correct period
    1491     TString fname = env.GetValue(Form("%02d", period), "");
     1494    TString fname = env.GetValue(id, "");
    14921495    if (fname.IsNull())
    14931496    {
    1494         *fLog << err << "ERROR - No entry for period " << period;
    1495         *fLog << " found in " << fHiLoCalibFile << "... looking for default." << endl;
     1497        *fLog << err << "ERROR - No entry for resource id '" << id;
     1498        *fLog << "' found in " << fHiLoCalibFile << "... looking for default." << endl;
    14961499        return kFALSE;
    14971500/*
     
    16181621    fHiLoCalibFile = GetEnv("HiLoCalibFile",fHiLoCalibFile.Data());
    16191622
     1623    /*
    16201624    if (IsUseMC() && !fHiLoCalibFile.EndsWith("_mc.root"))
    16211625    {
     
    16281632            fHiLoCalibFile.Insert(fHiLoCalibFile.Length()-5, "_mc");
    16291633    }
     1634    */
    16301635
    16311636    return ReadHiLoCalibFile();
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8245 r8301  
    10661066   
    10671067    MHPedestalCam hpedcam;
     1068    hpedcam.SetPedestalsOut(&fPedestalCamOut);
    10681069    if (fExtractionType != kFundamental)
    1069       hpedcam.SetRenorm(kTRUE);
    1070     //    fPedestalHist.SetRenorm(kTRUE);
    1071     //    fPedestalHist.SetPedestalsOut(&fPedestalCamOut);
    1072     hpedcam.SetPedestalsOut(&fPedestalCamOut);
    1073 
    1074     MPedestalCam pedinter;
    1075     pedinter.SetName("MPedestalCamIntermediate");
    1076 
    1077     MFillH fillped(&hpedcam, "MPedestalCamIntermediate", "FillPedCam");
    1078     //    MFillH fillped(&fPedestalHist, "MPedestalCamIntermediate", "FillPedCam");
     1070        hpedcam.SetRenorm(kTRUE);
     1071
    10791072    MFillH fillpul("MHCalibrationPulseTimeCam", "MRawEvtData", "FillPulseTime");
    1080     fillped.SetBit(MFillH::kDoNotDisplay);
    10811073    fillpul.SetBit(MFillH::kDoNotDisplay);
    10821074
     
    11611153          }
    11621154       
    1163         pedcalc.SetIntermediateStorage();
    1164         pedlogain.SetIntermediateStorage();
    1165         plist.AddToList(&pedinter);
    11661155        plist.AddToList(&hpedcam);
    1167         //        plist.AddToList(&fPedestalHist);
    1168         tlist.AddToList(&fillped);
    11691156    }
    11701157
     
    11721159    pedlogain.SetPedestalsIn(&fPedestalCamIn);
    11731160
    1174     pedcalc.SetPedestalsInter(&pedinter);
    1175     pedlogain.SetPedestalsInter(&pedinter);
    11761161    pedcalc.SetPedestalsOut(&fPedestalCamOut);
    11771162    pedlogain.SetPedestalsOut(&fPedestalCamOut);
Note: See TracChangeset for help on using the changeset viewer.