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()); |
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 |
// |
// |