Skip to content

Commit

Permalink
misc log fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelHu committed Oct 22, 2024
1 parent dc467cc commit 02e62db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RMGConvertLH5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ bool RMGConvertLH5::ConvertNTupleToTable(H5::Group& det_group) {
std::replace(lgdo_units.begin(), lgdo_units.end(), '\\', '/');
}

LH5Log(RMGLog::detail, ntuple_log_prefix, "column", lgdo_name, ", with units ", lgdo_units);
LH5Log(RMGLog::detail, ntuple_log_prefix, "column ", lgdo_name, ", with units ", lgdo_units);

// remove the column group with its child dataset, while preserving the data itself.
std::string column_tmp = column + "__tmp";
Expand Down
3 changes: 2 additions & 1 deletion src/RMGVertexConfinement.cc
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ void RMGVertexConfinement::InitializePhysicalVolumes() {
// invalidates old iterators).
for (const auto& s : new_obj_from_inspection) { fPhysicalVolumes.emplace_back(s); }

RMGLog::Out(RMGLog::detail, "Sampling from ", fPhysicalVolumes.size(), " physical volumes");
RMGLog::OutFormat(RMGLog::detail, "Sampling from {} physical volumes, volume = {}",
fPhysicalVolumes.size(), std::string(G4BestUnit(fPhysicalVolumes.total_volume, "Volume")));
}

void RMGVertexConfinement::InitializeGeometricalVolumes() {
Expand Down

0 comments on commit 02e62db

Please sign in to comment.