/[PAMELA software]/quicklook/calo/FQLOOK/src/FCaloCHKCALIB.cc
ViewVC logotype

Diff of /quicklook/calo/FQLOOK/src/FCaloCHKCALIB.cc

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

revision 1.3 by mocchiut, Mon Jul 10 13:55:02 2006 UTC revision 1.7 by mocchiut, Fri Jan 17 15:10:30 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 <cstdlib>
15  #include <unistd.h>  #include <unistd.h>
16  #include <stdio.h>  #include <stdio.h>
17    #include <sys/stat.h>
18    #include <cstdlib>
19  //  //
20  extern void FCaloCHKCALIB(TString,  Long64_t, TString, int, TString);  extern void FCaloCHKCALIB(TString,  Long64_t, TString, int, TString, Bool_t, Bool_t);
21  extern void info();  extern void info();
22  using namespace std;  using namespace std;
23  //  //
# Line 25  void usage(){ Line 28  void usage(){
28    printf("\n OPTIONS: \n");      printf("\n OPTIONS: \n");  
29    printf("\n -v                  be verbose \n");      printf("\n -v                  be verbose \n");  
30    printf(  " -entry entry        calibration entry to analyze [default = 0, all] \n");    printf(  " -entry entry        calibration entry to analyze [default = 0, all] \n");
31      printf(  " -interactive        shows figures on the screen [default = non-interactive] \n");
32      printf(  " -wait               wait for canvas to be closed before going on [default = don't wait] \n");
33    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");
34    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");
35    printf(  " -format format      format for output file (without . )[default = ps] \n");    printf(  " -format format      format for output file (without . )[default = png] \n");
36    printf("\nExamples: ");    printf("\nExamples: ");
37    printf("\n\nFCaloCHKCALIB /home/pamela/filesfromyoda/dw_050301_00100.root \n");    printf("\n\nFCaloCHKCALIB /home/pamela/filesfromyoda/dw_050301_00100.root \n");
38    printf("\nFCaloCHKCALIB -v -name /home/pamela/filesfromyoda/dw_050301_00100.root \n");    printf("\nFCaloCHKCALIB -v -name /home/pamela/filesfromyoda/dw_050301_00100.root \n");
# Line 36  void usage(){ Line 41  void usage(){
41  //  //
42  int main(int numinp, char *inps[]){  int main(int numinp, char *inps[]){
43    TString name;    TString name;
44    TString outdir = "";    TString outdir = "./";
45    TString format = "ps";    TString format = "png";
46    int matra = 0;    int matra = 0;
47    Long64_t calibno = 0;    Long64_t calibno = 0;
48    char *pEnd;    char *pEnd;
49    int nul = 0;    int nul = 0;
50    bool beverbose = false;    bool beverbose = false;
51      Bool_t iactive = false;
52      Bool_t w4i = false;
53    
54    if ( numinp > 1 ){    if ( numinp > 1 ){
55      name = (TString)inps[1];      name = (TString)inps[1];
# Line 89  int main(int numinp, char *inps[]){ Line 95  int main(int numinp, char *inps[]){
95        if ( !strcmp(inps[i],"-matra") ) {        if ( !strcmp(inps[i],"-matra") ) {
96          matra = 1;          matra = 1;
97        };            };    
98          if ( !strcmp(inps[i],"-interactive") ) {
99            iactive = true;
100          };    
101          if ( !strcmp(inps[i],"-wait") ) {
102            w4i = true;
103          };    
104        if ( !strcmp(inps[i],"-v") || !strcmp(inps[i],"--verbose") ) beverbose = true;        if ( !strcmp(inps[i],"-v") || !strcmp(inps[i],"--verbose") ) beverbose = true;
105      };      };
106    } else {    } else {
# Line 109  int main(int numinp, char *inps[]){ Line 121  int main(int numinp, char *inps[]){
121    };    };
122    printf("\n Welcome to FCaloCHKCALIB! \n");    printf("\n Welcome to FCaloCHKCALIB! \n");
123    //    //
124    FCaloCHKCALIB(name,calibno,outdir,matra,format);    FCaloCHKCALIB(name,calibno,outdir,matra,format,iactive,w4i);
125    //    //
126    if ( !beverbose ) close(nul);    if ( !beverbose ) close(nul);
127    return(0);    return(0);

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

  ViewVC Help
Powered by ViewVC 1.1.23