--- quicklook/dataToXML/PhysEndRunToXML.cpp 2008/10/14 07:42:48 1.3 +++ quicklook/dataToXML/PhysEndRunToXML.cpp 2014/01/17 15:10:32 1.4 @@ -22,7 +22,8 @@ #include #include #include - +#include +#include #include #include #include @@ -30,7 +31,7 @@ void PhysEndRunToXML(TString base, TString outDirectory = "", TString xslPath = ""){ - Int_t tmpSize; + // Int_t tmpSize; ofstream outputFile; stringstream oss; @@ -143,26 +144,27 @@ for (int i = 2; i < argc; i++){ if (!strcmp(argv[i], "-outDir")){ - if (++i >= argc){ - printf( "-outDir needs arguments. \n"); - printf( "Try '--help' for more information. \n"); - exit(1); - } else { - outDir = argv[i]; - continue; - } + if (++i >= argc){ + printf( "-outDir needs arguments. \n"); + printf( "Try '--help' for more information. \n"); + exit(1); + } else { + outDir = argv[i]; + continue; + } } - - if (!strcmp(argv[i], "-xslPath")) - if (++i >= argc){ - printf( "-xslPath needs arguments. \n"); - printf( "Try '--help' for more information. \n"); - exit(1); - } else { - xslPath = argv[i]; - continue; - } + + if (!strcmp(argv[i], "-xslPath")){ + if (++i >= argc){ + printf( "-xslPath needs arguments. \n"); + printf( "Try '--help' for more information. \n"); + exit(1); + } else { + xslPath = argv[i]; + continue; + } } + } PhysEndRunToXML(argv[1], outDir, xslPath); }