/[PAMELA software]/calo/flight/FQLOOK/src/FCaloQLOOK.cc
ViewVC logotype

Diff of /calo/flight/FQLOOK/src/FCaloQLOOK.cc

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

revision 1.6 by mocchiut, Fri Sep 22 13:38:59 2006 UTC revision 1.13 by mocchiut, Fri Jan 17 15:10:31 2014 UTC
# Line 11  Line 11 
11  #include <TSystem.h>  #include <TSystem.h>
12  #include <iostream>  #include <iostream>
13  #include <sstream>  #include <sstream>
14    #include <cstdlib>
15  #include <sys/types.h>  #include <sys/types.h>
16  #include <unistd.h>  #include <unistd.h>
17  #include <stdio.h>  #include <stdio.h>
18    #include <sys/stat.h>
19    #include <cstdlib>
20  //  //
21  extern void FCaloQLOOK(TString, int, int, TString, TString, Bool_t, Bool_t);  extern void FCaloQLOOK(TString, int, int, TString, TString, Bool_t, Bool_t);
22  extern void info();  extern void info();
# Line 113  int main(int numinp, char *inps[]){ Line 116  int main(int numinp, char *inps[]){
116      return(0);          return(0);    
117    };    };
118    //    //
119      stringstream figsave;    
120    if ( !beverbose ){    if ( !beverbose ){
121      //      //
122      const string fil = gSystem->BaseName(name.Data());      const string fil = gSystem->BaseName(name.Data());
# Line 128  int main(int numinp, char *inps[]){ Line 132  int main(int numinp, char *inps[]){
132      const char *figrec = file2;      const char *figrec = file2;
133      //      //
134      const char *outDir = outdir;      const char *outDir = outdir;
     stringstream figsave;      
135      figsave.str("");      figsave.str("");
136      figsave << outDir << "/" ;      figsave << outDir << "/" ;
137      figsave << figrec << "_CaloQLOOK.txt";      figsave << figrec << "_CaloQLOOK.txt";
138      //      //
139      // redirect to /dev/null the stdout and stderr      // redirect to /dev/null the stdout and stderr
140      //      //
141      nul = open(figsave.str().c_str(), O_CREAT | O_RDWR,S_IREAD | S_IWRITE);      nul = open(figsave.str().c_str(), O_CREAT | O_RDWR,S_IREAD | S_IWRITE | S_IRGRP | S_IWGRP | S_IROTH);
142      dup2(nul,1);      dup2(nul,1);
143      dup2(nul,2);      dup2(nul,2);
144    };    };
145    printf("\n Welcome to FCaloQLOOK! \n");    printf("\n Welcome to FCaloQLOOK! v1r23 \n");
146    //    //
147    FCaloQLOOK(name,fromev,toev,outdir,format,iactive,w4i);    FCaloQLOOK(name,fromev,toev,outdir,format,iactive,w4i);
148    //    //

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23