fix outfile name

This commit is contained in:
Ryan Tang 2024-08-13 14:41:27 -04:00
parent f842b37378
commit 7531c9c4c4

View File

@ -62,8 +62,9 @@ int main(int argc, char **argv) {
}else{
TString temp = inFileName[0];
temp.Remove(0, pos+1);
temp.Remove(3);
outFileName = "run" + temp;
int pos = temp.Last('.');
temp.Remove(pos);
outFileName = Form("run%03d", atoi(temp));
if( timeWindow < 0 ) {
outFileName +="_single.root";
}else{