Changeset 8389


Ignore:
Timestamp:
04/03/07 15:37:57 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8387 r8389  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/04/03 Thomas Bretz
     22
     23   * mjobs/MDataSet.cc:
     24     - added processing of RunTime and Name resource
     25
     26
     27
    2128 2007/03/29 Thomas Bretz
    2229
  • trunk/MagicSoft/Mars/mjobs/MDataSet.cc

    r8282 r8389  
    194194MDataSet::MDataSet(const char *fname, TString sequences, TString data)
    195195{
    196     fName  = fname;
     196    fName = fname;
    197197
    198198    fSequencesOn.SetOwner();
    199199    fSequencesOff.SetOwner();
    200200
    201     const char *expname = gSystem->ExpandPathName(fname);
    202 
    203     fTitle = Form("Dataset contained in file %s", expname);
     201    TString expname(fname);
     202    gSystem->ExpandPathName(expname);
    204203
    205204    const Bool_t access = !gSystem->AccessPathName(expname, kFileExists);
     
    208207
    209208    MEnv env(expname);
    210     delete [] expname;
    211 
    212     fNumAnalysis = env.GetValue("AnalysisNumber",  -1);
     209
     210    fNumAnalysis = env.GetValue("AnalysisNumber", -1);
     211    fTitle       = env.GetValue("Name", expname);
    213212
    214213    TString str;
     
    235234    fCatalog    = fCatalog.Strip(TString::kBoth);
    236235
     236    // --- Now "touch" resources which are not yet stored in MDataSet ---
     237    env.Touch("RunTime");
     238
     239    // --- Print "untouch" resources ---
    237240    if (env.GetNumUntouched()>0)
    238241    {
     
    268271    }
    269272    gLog << "AnalysisNumber: " << fNumAnalysis << endl << endl;
     273
     274    if (!fTitle.IsNull())
     275        gLog << "Name: " << fTitle << endl << endl;
     276
    270277    gLog << "SequencesOn:   ";
    271278    for (int i=0; i<fNumSequencesOn.GetSize(); i++)
     
    282289    gLog << "WobbleMode: " << (fIsWobbleMode?"On":"Off") << endl << endl;
    283290
     291
     292
    284293    gLog << "Comment: " << fComment << endl;
    285294
Note: See TracChangeset for help on using the changeset viewer.