BxCppDev / bxdecay0

C++ port of the Decay0/GENBB fortran Monte Carlo code for the generation of standard decay or double beta decay processes for various radioactive nuclides of interest
GNU General Public License v3.0
12 stars 12 forks source link

Geant4 11 support #26

Closed gipert closed 2 years ago

gipert commented 2 years ago

G4String has been modified in G4 v11. I get this compilation error:

/root/src/extensions/bxdecay0_g4/bxdecay0_g4/unique_point_vertex_generator_messenger.cc: In member function ‘virtual void bxdecay0_g4::UniquePointVertexGeneratorMessenger::SetNewValue(G4UIcommand*, G4String)’:
/root/src/extensions/bxdecay0_g4/bxdecay0_g4/unique_point_vertex_generator_messenger.cc:114:22: error: ‘class G4String’ has no member named ‘isNull’
  114 |       if (! unitRepr.isNull()) {
      |                      ^~~~~~
fmauger commented 2 years ago

Hi Luigi, OK. Changing isNull() to empty() should fix this issue both for G4.10 and 11. I'll commit ASAP. Thanks for the report. frc

gipert commented 2 years ago

Compiles now. Thanks for fixing!