37 const std::vector<const G4MolecularConfiguration*>* products = reactionData->
GetProducts();
40 if (reactant1 !=
nullptr) {
42 if (reactant2 !=
nullptr) reactionLhs +=
" + ";
44 if (reactant2 !=
nullptr) reactionLhs += reactant2->
GetUserID();
47 for (
auto it = products->cbegin(); it != products->cend(); ++it) {
49 if (it != products->cbegin() && reactionRhs.size() > 0) reactionRhs +=
" + ";
50 reactionRhs += (*it)->GetUserID();
54 G4String reactionString = reactionLhs +
" -> " + reactionRhs;
56 return reactionString;