Skip to content

Commit daa15b4

Browse files
committed
Fix in output file names
1 parent a0e03ea commit daa15b4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Detectors/EMCAL/simulation/src/RawCreator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ int main(int argc, const char** argv)
109109
for (auto en : *treereader) {
110110
rawwriter.digitsToRaw(*digitbranch, *triggerbranch);
111111
}
112-
rawwriter.getWriter().writeConfFile("EMC", "RAWDATA", o2::utils::concat_string(outputdir, "raw.cfg"));
112+
rawwriter.getWriter().writeConfFile("EMC", "RAWDATA", o2::utils::concat_string(outputdir, "/EMCraw.cfg"));
113113
}

Detectors/EMCAL/simulation/src/RawWriter.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ void RawWriter::init()
3535
std::string rawfilename = mOutputLocation;
3636
switch (mFileFor) {
3737
case FileFor_t::kFullDet:
38-
rawfilename += "/emcal.root";
38+
rawfilename += "/emcal.raw";
3939
break;
4040
case FileFor_t::kSubDet: {
4141
std::string detstring;
4242
if (iddl < 22)
4343
detstring = "emcal";
4444
else
4545
detstring = "dcal";
46-
rawfilename += fmt::format("/%s", detstring.data());
46+
rawfilename += fmt::format("/{:s}.raw", detstring.data());
4747
break;
4848
};
4949
case FileFor_t::kLink:
50-
rawfilename += fmt::format("/emcal_%d_%d.root", crorc, link);
50+
rawfilename += fmt::format("/emcal_{:d}_{:d}.raw", crorc, link);
5151
}
5252
mRawWriter->registerLink(iddl, crorc, link, 0, rawfilename.data());
5353
}
@@ -298,4 +298,4 @@ int RawWriter::carryOverMethod(const header::RDHAny* rdh, const gsl::span<char>
298298
actualSize = sizeNoTrailer;
299299
}
300300
return actualSize;
301-
}
301+
}

0 commit comments

Comments
 (0)