I noticed a hint in the Readme file for chem4:
\section CHEM4_s12 OTHER INFORMATION
I have access to a track. How do I access to its molecular information?
G4Track* thisIsMytrack = …
G4Molecule* thisIsMyMolecule = GetMolecule(thisIsMyTrack);
If the pointer thisIsMyMolecule is null, then this is NOT a chemical species
How do I get the molecule’s name?
G4Molecule* thisIsMyMolecule = …
const G4String& moleculeName = thisIsMyMolecule->GetName();
I want to know in which file I need to add this code? Just copy the past?