Ignore:
Timestamp:
07/15/07 19:25:45 (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/MDataSet.cc

    r8441 r8636  
    3838//       SequencesOff: 36817
    3939//
     40//       SequencePath: /magic/sequences
     41//       DataPath:     /magic/data/star
     42//
    4043//       Sequence00035222.File: sequences/sequence035222.txt
    4144//       Sequence00036817.File: sequences/sequence036817.txt
     
    4447//       Sequence00036817.Dir: /data2/wuerzburg/Crab-Analyse/images/036817
    4548//
    46 // The analysis number is an artifical number used to name the output
    47 // files automatically if the names are not overwritten in the corresponding
    48 // programs.
    49 //
    50 // The sequence number are used to concatenate the filenames of the
    51 // sequences using the file structure used in the datacenter. Each sequence
    52 // can be added to the on and off data at the same time but only once.
     49//       MonteCarlo: No
     50//
     51// AnalysisNumber: The analysis number is an artifical number used to name
     52// the output files automatically if the names are not overwritten in the
     53// corresponding programs.
     54//
     55// SequencePath: In case it is not specified the datacenter default path is
     56// used. If it is given it is the place at which the sequence files
     57// are searched, if not overwritten by either a program command line
     58// option (aka. a argument to the constructor) or a resource for
     59// an individual sequence file. Note, that the four digits high-level
     60// directories to sort the sequences are added to the given path.
     61//
     62// DataPath: In case it is not specified the datacenter default path is
     63// used. If it is given it is the place at which the data files
     64// are searched, if not overwritten by either a program command line
     65// option (aka. a argument to the constructor) or a resource for
     66// an individual data path.  Note, that the four digits high-level
     67// directories to sort the sequences are added to the given path.
     68//
     69// SequencesOn/Off: The sequence number are used to concatenate the filenames
     70// of the sequences using the file structure used in the datacenter. Each
     71// sequence can be added to the on and off data at the same time but only
     72// once.
    5373//
    5474// If you have different file names you can overwrite the default file names
     
    5979// overwrite the directories in which the sequence-files (eg I-files) are
    6080// stored using Sequence%08d.Dir (make sure you have 8 digits!)
     81//
     82//
    6183//
    6284// Resource file entries are case sensitive!
     
    226248    fComment      = env.GetValue("Comment",    "");
    227249
    228     SetupDefaultPath(sequences, GetDefPathSequences());
    229     SetupDefaultPath(data,      GetDefPathDataFiles());
     250    const TString defpathseq  = env.GetValue("SequencePath", GetDefPathSequences());
     251    const TString defpathdata = env.GetValue("DataPath",     GetDefPathDataFile());
     252
     253    SetupDefaultPath(sequences, defpathseq);
     254    SetupDefaultPath(data,      defpathdata);
    230255
    231256    fPathSequences = sequences;
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r8633 r8636  
    873873
    874874    scalc.SetMode(MSrcPosCalc::kDefault);
     875    scalc.SetNumRandomOffPositions(fNumOffSourcePos);
    875876
    876877    MFillH fill1b("MHHillasOnPre  [MHHillas]",      "MHillas",      "FillHillasPre");
     
    947948    MFillH fillsrc(&hsrcpos, "MSrcPosCam", "FillSrcPosCam");
    948949    fillsrc.SetNameTab("SrcPos");
    949     if (set.IsWobbleMode() & !set.IsMonteCarlo())
     950
     951    if (set.IsWobbleMode() && !set.IsMonteCarlo())
    950952        tlist2.AddToListBefore(&fillsrc, &hcalc);
    951953
     
    983985        if (!set.IsMonteCarlo())
    984986            tlist.AddToList(&fillvs, "EffectiveOnTime");
    985         else
    986             tlist2.AddToListBefore(&fillvs, &scalc);
     987
     988        // It is not really necessary to re-calculate the image parameters
     989        // for the the on-source for MCs, but it is done for symmetry reasons
     990        tlist2.AddToListBefore(&fillvs, &scalc);
    987991    }
    988992
Note: See TracChangeset for help on using the changeset viewer.