| 20 |
#include <PscuHeader.h> |
#include <PscuHeader.h> |
| 21 |
#include <EventHeader.h> |
#include <EventHeader.h> |
| 22 |
#include <fstream> |
#include <fstream> |
| 23 |
|
#include <cstdlib> |
| 24 |
|
#include <sys/stat.h> |
| 25 |
#include <TFile.h> |
#include <TFile.h> |
| 26 |
#include <TObjString.h> |
#include <TObjString.h> |
| 27 |
#include <TString.h> |
#include <TString.h> |
| 29 |
|
|
| 30 |
void RunHeaderToXML(TString base, TString outDirectory = "", TString xslPath = ""){ |
void RunHeaderToXML(TString base, TString outDirectory = "", TString xslPath = ""){ |
| 31 |
|
|
| 32 |
Int_t tmpSize; |
// Int_t tmpSize; |
| 33 |
ofstream outputFile; |
ofstream outputFile; |
| 34 |
stringstream oss; |
stringstream oss; |
| 35 |
|
|
| 122 |
} |
} |
| 123 |
} |
} |
| 124 |
|
|
| 125 |
if (!strcmp(argv[i], "-xslPath")) |
if (!strcmp(argv[i], "-xslPath")){ |
| 126 |
if (++i >= argc){ |
if (++i >= argc){ |
| 127 |
printf( "-xslPath needs arguments. \n"); |
printf( "-xslPath needs arguments. \n"); |
| 128 |
printf( "Try '--help' for more information. \n"); |
printf( "Try '--help' for more information. \n"); |
| 129 |
exit(1); |
exit(1); |
| 130 |
} else { |
} else { |
| 131 |
xslPath = argv[i]; |
xslPath = argv[i]; |
| 132 |
continue; |
continue; |
| 133 |
} |
} |
| 134 |
|
} |
| 135 |
} |
} |
| 136 |
RunHeaderToXML(argv[1], outDir, xslPath); |
RunHeaderToXML(argv[1], outDir, xslPath); |
| 137 |
} |
} |