/[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.11 by mocchiut, Mon Jul 23 09:34:08 2007 UTC
# Line 113  int main(int numinp, char *inps[]){ Line 113  int main(int numinp, char *inps[]){
113      return(0);          return(0);    
114    };    };
115    //    //
116      stringstream figsave;    
117    if ( !beverbose ){    if ( !beverbose ){
118      //      //
119      const string fil = gSystem->BaseName(name.Data());      const string fil = gSystem->BaseName(name.Data());
# Line 128  int main(int numinp, char *inps[]){ Line 129  int main(int numinp, char *inps[]){
129      const char *figrec = file2;      const char *figrec = file2;
130      //      //
131      const char *outDir = outdir;      const char *outDir = outdir;
     stringstream figsave;      
132      figsave.str("");      figsave.str("");
133      figsave << outDir << "/" ;      figsave << outDir << "/" ;
134      figsave << figrec << "_CaloQLOOK.txt";      figsave << figrec << "_CaloQLOOK.txt";
135      //      //
136      // redirect to /dev/null the stdout and stderr      // redirect to /dev/null the stdout and stderr
137      //      //
138      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);
139      dup2(nul,1);      dup2(nul,1);
140      dup2(nul,2);      dup2(nul,2);
141    };    };
142    printf("\n Welcome to FCaloQLOOK! \n");    printf("\n Welcome to FCaloQLOOK! v1r23 \n");
143    //    //
144    FCaloQLOOK(name,fromev,toev,outdir,format,iactive,w4i);    FCaloQLOOK(name,fromev,toev,outdir,format,iactive,w4i);
145    //    //

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

  ViewVC Help
Powered by ViewVC 1.1.23