Ignore:
Timestamp:
07/17/08 15:58:20 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/ganymed.cc

    r8989 r9005  
    1 #include <TROOT.h>
     1#include <TTree.h>
    22#include <TClass.h>
    33#include <TSystem.h>
     
    4343    gLog << " ganymed [options] dataset.txt|number" << endl << endl;
    4444    gLog << " Arguments:" << endl;
    45     gLog << "   dataset.txt:              ASCII file defining a collection of datasets/sequences" << endl;
    46     gLog << "                             (for more details see MSequence/MDataSet)" << endl;
    47     gLog << "   number:                   The dataset number (using file in the datacenter)" << endl;
    48     gLog << "                             For more details see MDataSet." << endl;
     45    gLog << "   dataset.txt:              File defining a collection of datasets/sequences"  << endl;
     46    gLog << "                             (for more details see MSequence/MDataSet)"          << endl;
     47    gLog << "   number:                   The dataset number (using file in the datacenter)"  << endl;
     48    gLog << "                             For more details see MDataSet."                     << endl;
    4949    gLog << " Root Options:" << endl;
    50     gLog << "   -b                        Batch mode (no graphical output to screen)" << endl<<endl;
     50    gLog << "   -b                        Batch mode (no graphical output to screen)"         << endl;
     51    gLog << endl;
    5152    gLog << " Operation Mode:" << endl;
    52     gLog << "   -mc                       Monte Carlo dataset (no times)" << endl;
    53     gLog << "   --wobble                  Force wobble mode (overwrites dataset)" << endl;
    54     gLog << "   --no-wobble               Force normal mode (overwrites dataset)" << endl << endl;
     53    gLog << "   -mc                       Monte Carlo dataset (no times)"                     << endl;
     54    gLog << "   --wobble                  Force wobble mode (overwrites dataset)"             << endl;
     55    gLog << "   --no-wobble               Force normal mode (overwrites dataset)"             << endl;
     56    gLog << endl;
    5557    gLog << " Options:" << endl;
    5658    gLog.Usage();
    57     gLog << "   --debug-env=0             Disable debugging setting resources <default>" << endl;
    58     gLog << "   --debug-env[=1]           Display untouched resources after program execution" << endl;
    59     gLog << "   --debug-env=2             Display untouched resources after eventloop setup" << endl;
    60     gLog << "   --debug-env=3             Debug setting resources from resource file and command line" << endl;
     59    gLog << "   --debug-env=0             Disable debugging setting resources <default>"      << endl;
     60    gLog << "   --debug-env[=1]           Display untouched resources after execution"        << endl;
     61    gLog << "   --debug-env=2             Display untouched resources after eventloop setup"  << endl;
     62    gLog << "   --debug-env=3             Debug setting resources from resource file and"     << endl;
     63    gLog << "                             command line" << endl;
    6164    gLog << "   --debug-mem               Debug memory usage" << endl << endl;
    62     gLog << "   --rc=Name:option          Set or overwrite a resource of the resource file." << endl;
    63     gLog << "                             (Note, that this option can be used multiple times." << endl;
     65    gLog << "   --rc=Name:option          Set or overwrite a resource of the resource file."  << endl;
     66    gLog << "                             (Note, this option can be used multiple times)"    << endl;
    6467    gLog << endl;
    6568    gLog << "   -q                        Quit when job is finished" << endl;
    6669    gLog << "   -f                        Force overwrite of existing files" << endl;
    67     gLog << "   --n=number                Analysis number (required if not in dataset file)" << endl;
    68     gLog << "   --dataset=number          Choose a dataset from a collection of datasets in your file" << endl;
    69     gLog << "                             (for more details see MDataSet)" << endl;
    70     gLog << "   --out=path                Path to write all output to [def=local path]" << endl;
    71     gLog << "   --ind=path                Path to data/star files [default=datacenter path]" << endl;
    72     gLog << "   --ins=path                Path to sequence files [default=datacenter path]" << endl;
    73     gLog << "   --outf=filename           Filename for output file (eg. status display)" << endl;
     70    gLog << "   --n=number                Analysis number (required if not in dataset file)"  << endl;
     71    gLog << "   --dataset=number          Choose a dataset from a collection of datasets"    << endl;
     72    gLog << "                             in your file (for more details see MDataSet)"      << endl;
     73    gLog << "   --out=path                Path to write all output to [def=local path]"       << endl;
     74    gLog << "   --ind=path                Path to data/star files [default=datacenter path]"  << endl;
     75    gLog << "   --ins=path                Path to sequence files [default=datacenter path]"   << endl;
     76    gLog << "   --outf=filename           Filename for output file (eg. status display)"      << endl;
    7477    gLog << "   --sum[=filename]          Enable writing of summary file (events after cut0)" << endl;
    7578//    gLog << "   --res[=filename]          Enable writing of result file (surviving events)" << endl;
    76     gLog << "   --skip-res                Disable writing of result events" << endl;
    77     gLog << "   --write-only              Only write output files. No histograms filled." << endl;
    78     gLog << "   --print-ds                Print the information interpreted from the dataset file" << endl;
    79     gLog << "   --print-files             Print files taken from sequences ('+' found, '-' missing)" << endl;
     79    gLog << "   --skip-res                Disable writing of result events"                   << endl;
     80    gLog << "   --write-only              Only write output files. No histograms filled."     << endl;
     81    gLog << "   --print-ds                Print dataset as interpreted from the dataset file" << endl;
     82    gLog << "   --print-files             Print files from sequences, '+' found, '-' missing" << endl;
    8083//    gLog << "   --full-display            Show as many plots as possible" << endl;
    81     gLog << "   --config=ganymed.rc       Resource file [default=ganymed.rc]" << endl;
    82     gLog << endl;
    83     gLog << "   --version, -V             Show startup message with version number" << endl;
     84    gLog << "   --config=ganymed.rc       Resource file [default=ganymed.rc]"                 << endl;
     85    gLog << endl;
     86    gLog << "   --max-file-size=number    Sets the maximum size before root opens a new file" << endl;
     87    gLog << "                             automatically. The number is given in kB (1000b)."  << endl;
     88    gLog << "                             Use this option with caution it can result in"      << endl;
     89    gLog << "                             extremely large files (especially summary files),"  << endl;
     90    gLog << "                             use (e.g. lower size) cuts instead to decrease"     << endl;
     91    gLog << "                             the file size. Root's default is 1.9GB."            << endl;
     92    gLog << endl;
     93    gLog << "   --version, -V             Show startup message with version number"           << endl;
    8494    gLog << "   -?, -h, --help            This help" << endl << endl;
    8595    gLog << "Background:" << endl;
     
    8999    gLog << " 1,070,000km.  It has a magnetic field  and probably has a molten iron" << endl;
    90100    gLog << " core.  It takes  Ganymed  7.15 days to  orbit  Jupiter.  Its mass  is" << endl;
    91     gLog << " 1.5e23kg. It was independently discovered by  Galileo and S.Marius in"<< endl;
     101    gLog << " 1.5e23kg. It was independently discovered by  Galileo and S.Marius in" << endl;
    92102    gLog << " 1610.  Ganymed is  the largest moon  in the solar system;  it is also" << endl;
    93103    gLog << " larger than the planets Mercury and Pluto." << endl << endl;
     
    98108    if (!MARS::CheckRootVer())
    99109        return 0xff;
     110
     111    // FIXME: Record command line to file!!!
    100112
    101113    MLog::RedirectErrorHandler(MLog::kColor);
     
    146158    const TString kNameSummary   = arg.GetStringAndRemove("--sum=");
    147159    const Bool_t  kSkipResult    = arg.HasOnlyAndRemove("--skip-res");
     160
    148161//    const Bool_t  kWriteResult   = arg.HasOnlyAndRemove("--res");
    149162//    const TString kNameResult    = arg.GetStringAndRemove("--res=");
     163
     164    TTree::SetMaxTreeSize((Long64_t)arg.GetIntAndRemove("--max-file-size=", TTree::GetMaxTreeSize()/1000)*1000);
    150165
    151166    if (kWobbleModeOn && kWobbleModeOff)
Note: See TracChangeset for help on using the changeset viewer.