bug fix on EventBuilder outfile
This commit is contained in:
parent
7e3aaf9c83
commit
661241d44f
|
@ -47,9 +47,10 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
/// Form outFileName;
|
/// Form outFileName;
|
||||||
TString outFileName = inFileName[0];
|
TString outFileName = inFileName[0];
|
||||||
int pos = outFileName.Index("_");
|
int pos = outFileName.Last('/');
|
||||||
pos = outFileName.Index("_", pos+1);
|
pos = outFileName.Index("_", pos+1); // find next "_"
|
||||||
outFileName.Remove(pos);
|
pos = outFileName.Index("_", pos+1); // find next "_"
|
||||||
|
outFileName.Remove(pos); // remove the rest
|
||||||
outFileName += "_" + std::to_string(timeWindow);
|
outFileName += "_" + std::to_string(timeWindow);
|
||||||
outFileName += ".root";
|
outFileName += ".root";
|
||||||
printf("-------> Out file name : %s \n", outFileName.Data());
|
printf("-------> Out file name : %s \n", outFileName.Data());
|
||||||
|
|
|
@ -44,9 +44,10 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
/// Form outFileName;
|
/// Form outFileName;
|
||||||
TString outFileName = inFileName[0];
|
TString outFileName = inFileName[0];
|
||||||
int pos = outFileName.Index("_");
|
int pos = outFileName.Last('/');
|
||||||
pos = outFileName.Index("_", pos+1);
|
pos = outFileName.Index("_", pos+1); // find next "_"
|
||||||
outFileName.Remove(pos);
|
pos = outFileName.Index("_", pos+1); // find next "_"
|
||||||
|
outFileName.Remove(pos); // remove the rest
|
||||||
outFileName += "_" + std::to_string(timeWindow) + "_noTrace";
|
outFileName += "_" + std::to_string(timeWindow) + "_noTrace";
|
||||||
outFileName += ".root";
|
outFileName += ".root";
|
||||||
printf("-------> Out file name : %s \n", outFileName.Data());
|
printf("-------> Out file name : %s \n", outFileName.Data());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user