/[PAMELA software]/quicklook/dataToXML/PhysEndRunToXML.cpp
ViewVC logotype

Diff of /quicklook/dataToXML/PhysEndRunToXML.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by mocchiut, Tue Oct 14 07:42:48 2008 UTC revision 1.4 by mocchiut, Fri Jan 17 15:10:32 2014 UTC
# Line 22  Line 22 
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>
# Line 30  Line 31 
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        
# Line 143  int main(int argc, char* argv[]){ Line 144  int main(int argc, char* argv[]){
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23