--- calo/flight/FQLOOK/src/FCaloQLOOK.cc 2006/09/22 13:38:59 1.6 +++ calo/flight/FQLOOK/src/FCaloQLOOK.cc 2014/01/17 15:10:31 1.13 @@ -11,9 +11,12 @@ #include #include #include +#include #include #include #include +#include +#include // extern void FCaloQLOOK(TString, int, int, TString, TString, Bool_t, Bool_t); extern void info(); @@ -113,6 +116,7 @@ return(0); }; // + stringstream figsave; if ( !beverbose ){ // const string fil = gSystem->BaseName(name.Data()); @@ -128,18 +132,17 @@ const char *figrec = file2; // const char *outDir = outdir; - stringstream figsave; figsave.str(""); figsave << outDir << "/" ; figsave << figrec << "_CaloQLOOK.txt"; // // redirect to /dev/null the stdout and stderr // - 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); dup2(nul,1); dup2(nul,2); }; - printf("\n Welcome to FCaloQLOOK! \n"); + printf("\n Welcome to FCaloQLOOK! v1r23 \n"); // FCaloQLOOK(name,fromev,toev,outdir,format,iactive,w4i); //