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{ }else{
TString temp = inFileName[0]; TString temp = inFileName[0];
temp.Remove(0, pos+1); temp.Remove(0, pos+1);
temp.Remove(3); int pos = temp.Last('.');
outFileName = "run" + temp; temp.Remove(pos);
outFileName = Form("run%03d", atoi(temp));
if( timeWindow < 0 ) { if( timeWindow < 0 ) {
outFileName +="_single.root"; outFileName +="_single.root";
}else{ }else{