Changeset 6167
- Timestamp:
- 02/01/05 14:37:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6159 r6167 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2005/02/01 Thomas Bretz 24 25 * showplot.cc: 26 - another fix to make the batch mode working (you can use the batch 27 mode to convert a root-file into another format) 28 29 22 30 23 31 2005/01/31 Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r6031 r6167 56 56 roughly 0.5% 57 57 58 - fixed showplot to make file format conversion (eg. converting a 59 status display stored in a root file into a postscript file) in 60 batch mode possible: 61 showplot -b --save-as-ps[=outfile.ps] infile.root 62 58 63 59 64 -
trunk/MagicSoft/Mars/showplot.cc
r5618 r6167 56 56 // Evaluate arguments 57 57 // 58 MArgs arg(argc, argv );58 MArgs arg(argc, argv, kTRUE); 59 59 60 60 if (arg.HasOnly("-?") || arg.HasOnly("-h") || arg.HasOnly("--help")) … … 71 71 const Int_t kTab = arg.GetIntAndRemove("--tab=", -1); 72 72 73 const Bool_t kSaveAsPs = arg.HasOnlyAndRemove("--save-as-ps") || arg.Has("--save-as-ps=");73 const Bool_t kSaveAsPs = arg.HasOnlyAndRemove("--save-as-ps") || arg.Has("--save-as-ps="); 74 74 const Bool_t kSaveAsGif = arg.HasOnlyAndRemove("--save-as-gif") || arg.Has("--save-as-gif="); 75 const Bool_t kSaveAsC = arg.HasOnlyAndRemove("--save-as-C") || arg.Has("--save-as-C=");75 const Bool_t kSaveAsC = arg.HasOnlyAndRemove("--save-as-C") || arg.Has("--save-as-C="); 76 76 77 77 TString kNamePs = arg.GetStringAndRemove("--save-as-ps="); … … 89 89 } 90 90 91 TApplication app(" Callisto", &argc, argv);92 if ( gROOT->IsBatch() || !gClient)91 TApplication app("Showplot", &argc, argv); 92 if (!gROOT->IsBatch() && !gClient || gROOT->IsBatch() && !kBatch) 93 93 { 94 94 gLog << err << "Bombing... maybe your DISPLAY variable is not set correctly!" << endl; … … 101 101 const TString kInput = arg.GetArgumentStr(0); 102 102 103 if (kNamePs.IsNull() && kSaveAsPs)103 if (kNamePs.IsNull() && kSaveAsPs) 104 104 kNamePs = kInput; 105 105 if (kNameGif.IsNull() && kSaveAsGif) 106 106 kNameGif = kInput; 107 if (kNameC.IsNull() && kSaveAsC)107 if (kNameC.IsNull() && kSaveAsC) 108 108 kNameC = kInput; 109 109
Note:
See TracChangeset
for help on using the changeset viewer.