Changeset 9005 for trunk/MagicSoft/Mars/ganymed.cc
- Timestamp:
- 07/17/08 15:58:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/ganymed.cc
r8989 r9005 1 #include <T ROOT.h>1 #include <TTree.h> 2 2 #include <TClass.h> 3 3 #include <TSystem.h> … … 43 43 gLog << " ganymed [options] dataset.txt|number" << endl << endl; 44 44 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; 49 49 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; 51 52 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; 55 57 gLog << " Options:" << endl; 56 58 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; 61 64 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, th at 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; 64 67 gLog << endl; 65 68 gLog << " -q Quit when job is finished" << endl; 66 69 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; 74 77 gLog << " --sum[=filename] Enable writing of summary file (events after cut0)" << endl; 75 78 // 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 informationinterpreted 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; 80 83 // 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; 84 94 gLog << " -?, -h, --help This help" << endl << endl; 85 95 gLog << "Background:" << endl; … … 89 99 gLog << " 1,070,000km. It has a magnetic field and probably has a molten iron" << endl; 90 100 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; 92 102 gLog << " 1610. Ganymed is the largest moon in the solar system; it is also" << endl; 93 103 gLog << " larger than the planets Mercury and Pluto." << endl << endl; … … 98 108 if (!MARS::CheckRootVer()) 99 109 return 0xff; 110 111 // FIXME: Record command line to file!!! 100 112 101 113 MLog::RedirectErrorHandler(MLog::kColor); … … 146 158 const TString kNameSummary = arg.GetStringAndRemove("--sum="); 147 159 const Bool_t kSkipResult = arg.HasOnlyAndRemove("--skip-res"); 160 148 161 // const Bool_t kWriteResult = arg.HasOnlyAndRemove("--res"); 149 162 // const TString kNameResult = arg.GetStringAndRemove("--res="); 163 164 TTree::SetMaxTreeSize((Long64_t)arg.GetIntAndRemove("--max-file-size=", TTree::GetMaxTreeSize()/1000)*1000); 150 165 151 166 if (kWobbleModeOn && kWobbleModeOff)
Note:
See TracChangeset
for help on using the changeset viewer.