Ignore:
Timestamp:
08/25/04 17:30:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4729 r4732  
    248248    TString title = fDisplay->GetTitle();
    249249    title += "--  Calibration ";
    250     title += fSequence.IsValid() ? Form("calib%06d", fSequence.GetSequence()) : fRuns->GetRunsAsString();
     250    title += fSequence.IsValid() ? Form("calib%06d", fSequence.GetSequence()) : (const char*)fRuns->GetRunsAsString();
    251251    title += "  --";
    252252    fDisplay->SetTitle(title);
     
    12471247Bool_t MJCalibration::CheckEnv()
    12481248{
    1249     if (!MJob::CheckEnv())
    1250         return kFALSE;
    1251 
    12521249    TString col = GetEnv("Color", "");
    12531250    if (!col.IsNull())
     
    12691266    SetUsePINDiode(GetEnv("UsePINDiode", IsUsePINDiode()));
    12701267
    1271     return kTRUE;
     1268    return MJob::CheckEnv();
    12721269}
    12731270
     
    15571554    evtloop.SetDisplay(fDisplay);
    15581555    evtloop.SetLogStream(fLog);
    1559     if (GetEnv())
    1560         evtloop.ReadEnv(*GetEnv());
    1561 
    1562     //if (!WriteEventloop(evtloop))
    1563     //    return kFALSE;
     1556    if (!SetupEnv(evtloop))
     1557        return kFALSE;
     1558
     1559    if (!taskenv.GetTask() && !taskenv2.GetTask())
     1560    {
     1561        *fLog << err << "ERROR - Neither ExtractSignal nor ExtractTime initializedor both '<dummy>'." << endl;
     1562        return kFALSE;
     1563    }
    15641564
    15651565    if (!WriteTasks(taskenv.GetTask(), taskenv2.GetTask()))
     
    17381738    }
    17391739
    1740     if (t1->Write()<=0)
     1740    if (t1 && t1->Write()<=0)
    17411741    {
    17421742        *fLog << err << "Unable to write " << t1->GetName() << " to " << oname << endl;
    17431743        return kFALSE;
    17441744    }
    1745     if (t2->Write()<=0)
     1745    if (t2 && t2->Write()<=0)
    17461746    {
    17471747        *fLog << err << "Unable to write " << t2->GetName() << " to " << oname << endl;
Note: See TracChangeset for help on using the changeset viewer.