| 22 |
#include <PscuHeader.h> |
#include <PscuHeader.h> |
| 23 |
#include <EventHeader.h> |
#include <EventHeader.h> |
| 24 |
#include <fstream> |
#include <fstream> |
| 25 |
|
#include <cstdlib> |
| 26 |
|
#include <sys/stat.h> |
| 27 |
#include <TFile.h> |
#include <TFile.h> |
| 28 |
#include <TObjString.h> |
#include <TObjString.h> |
| 29 |
#include <TString.h> |
#include <TString.h> |
| 31 |
|
|
| 32 |
void PhysEndRunToXML(TString base, TString outDirectory = "", TString xslPath = ""){ |
void PhysEndRunToXML(TString base, TString outDirectory = "", TString xslPath = ""){ |
| 33 |
|
|
| 34 |
Int_t tmpSize; |
// Int_t tmpSize; |
| 35 |
ofstream outputFile; |
ofstream outputFile; |
| 36 |
stringstream oss; |
stringstream oss; |
| 37 |
|
|
| 144 |
|
|
| 145 |
for (int i = 2; i < argc; i++){ |
for (int i = 2; i < argc; i++){ |
| 146 |
if (!strcmp(argv[i], "-outDir")){ |
if (!strcmp(argv[i], "-outDir")){ |
| 147 |
if (++i >= argc){ |
if (++i >= argc){ |
| 148 |
printf( "-outDir needs arguments. \n"); |
printf( "-outDir needs arguments. \n"); |
| 149 |
printf( "Try '--help' for more information. \n"); |
printf( "Try '--help' for more information. \n"); |
| 150 |
exit(1); |
exit(1); |
| 151 |
} else { |
} else { |
| 152 |
outDir = argv[i]; |
outDir = argv[i]; |
| 153 |
continue; |
continue; |
| 154 |
} |
} |
| 155 |
} |
} |
| 156 |
|
|
| 157 |
if (!strcmp(argv[i], "-xslPath")) |
if (!strcmp(argv[i], "-xslPath")){ |
| 158 |
if (++i >= argc){ |
if (++i >= argc){ |
| 159 |
printf( "-xslPath needs arguments. \n"); |
printf( "-xslPath needs arguments. \n"); |
| 160 |
printf( "Try '--help' for more information. \n"); |
printf( "Try '--help' for more information. \n"); |
| 161 |
exit(1); |
exit(1); |
| 162 |
} else { |
} else { |
| 163 |
xslPath = argv[i]; |
xslPath = argv[i]; |
| 164 |
continue; |
continue; |
| 165 |
} |
} |
| 166 |
} |
} |
| 167 |
|
} |
| 168 |
PhysEndRunToXML(argv[1], outDir, xslPath); |
PhysEndRunToXML(argv[1], outDir, xslPath); |
| 169 |
} |
} |
| 170 |
|
|