/[PAMELA software]/calo/flight/CaloHK/src/CaloHK.cpp
ViewVC logotype

Diff of /calo/flight/CaloHK/src/CaloHK.cpp

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

revision 1.2 by mocchiut, Tue Aug 11 14:21:05 2009 UTC revision 1.3 by mocchiut, Thu Jan 23 11:23:50 2014 UTC
# Line 11  Line 11 
11  #include <TSystem.h>  #include <TSystem.h>
12  #include <iostream>  #include <iostream>
13  #include <sys/types.h>  #include <sys/types.h>
14    #include <sys/stat.h>
15  #include <unistd.h>  #include <unistd.h>
16  #include <stdio.h>  #include <stdio.h>
17  #include <cstdlib>  #include <cstdlib>
# Line 27  void usage(){ Line 28  void usage(){
28    printf(  "                  if in the first position \"-name\" can be omitted. \n");      printf(  "                  if in the first position \"-name\" can be omitted. \n");  
29    printf("\n OPTIONS: \n");      printf("\n OPTIONS: \n");  
30    printf("\n -v                  be verbose \n");      printf("\n -v                  be verbose \n");  
31    printf(  " -entry entry        calibration entry to analyze [default = 0, all] \n");    //  printf(  " -entry entry        calibration entry to analyze [default = 0, all] \n");
32    printf(  " -interactive        shows figures on the screen [default = non-interactive] \n");    printf(  " -interactive        shows figures on the screen [default = non-interactive] \n");
33    printf(  " -wait               wait for canvas to be closed before going on [default = don't wait] \n");    printf(  " -wait               wait for canvas to be closed before going on [default = don't wait] \n");
34    printf(  " -matra              draw the strip rms in a box plot [default: do not draw] \n");    //  printf(  " -matra              draw the strip rms in a box plot [default: do not draw] \n");
35    printf(  " -oudDir output_dir  path of the output directory [default = ./] (with or without final '/') \n");    printf(  " -oudDir output_dir  path of the output directory [default = ./] (with or without final '/') \n");
36    printf(  " -format format      format for output file (without . )[default = png] \n");    printf(  " -format format      format for output file (without . )[default = png] \n");
37    printf("\nExamples: ");    printf("\nExamples: ");
# Line 44  int main(int numinp, char *inps[]){ Line 45  int main(int numinp, char *inps[]){
45    TString name;    TString name;
46    TString outdir = "./";    TString outdir = "./";
47    TString format = "png";    TString format = "png";
48    int matra = 0;    //  int matra = 0;
49    Long64_t calibno = 0;    //  Long64_t calibno = 0;
50    char *pEnd;    //  char *pEnd;
51    int nul = 0;    int nul = 0;
52    bool beverbose = false;    bool beverbose = false;
53    Bool_t iactive = false;    Bool_t iactive = false;
# Line 86  int main(int numinp, char *inps[]){ Line 87  int main(int numinp, char *inps[]){
87          format = (TString)inps[i+1];          format = (TString)inps[i+1];
88        };        };
89    
90        if ( !strcmp(inps[i],"-entry") ) {        /*      if ( !strcmp(inps[i],"-entry") ) {
91          if ( numinp-1 < i+1 ){          if ( numinp-1 < i+1 ){
92            usage();            usage();
93            exit(-3);            exit(-3);
# Line 95  int main(int numinp, char *inps[]){ Line 96  int main(int numinp, char *inps[]){
96        };        };
97        if ( !strcmp(inps[i],"-matra") ) {        if ( !strcmp(inps[i],"-matra") ) {
98          matra = 1;          matra = 1;
99        };              };*/    
100        if ( !strcmp(inps[i],"-interactive") ) {        if ( !strcmp(inps[i],"-interactive") ) {
101          iactive = true;          iactive = true;
102        };            };    

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

  ViewVC Help
Powered by ViewVC 1.1.23