11 void usage(
const char *name) {
12 printf(
"\n\nUsage: %s [input_file [ output_file]]\n",name);
16 int main(
int argc,
char * argv[])
18 const char *packageName=
"No_name";
19 printf(
"Hello World %d: \n", argc);
21 case 3: printf(
"\tThe output file name <%s>\n", argv[2]);
22 case 2: printf(
"\tThe input file name <%s>\n", argv[1]);
23 case 1: printf(
"\tThe package name <%s>", argv[0]);
24 packageName = argv[0];
27 printf(
"\tNo paramater\n");
36 int MyPackage(
const char *infile=
"$USER/example.list"
37 ,
const char *outfile =
"$SCRATCH/example.root")
39 TString sInFile = infile;
40 TString sOutFile = outfile;
42 gSystem->ExpandPathName(sInFile);
43 gSystem->ExpandPathName(sOutFile);
45 char *argv[] = {(
char*)
"MyPackage",(
char*) sInFile.Data(),(
char*) sOutFile.Data() };
47 printf(
"\n\nUsage: root.exe -b -l -q \'%s.cxx+[(\"input_file\" [,\"output_file\"])\']\n",argv[0]);
48 printf(
"------ The square brackets [] are to show the optional components\n");