Open whit2333 opened 2 months ago
Apologies for not replying; we haven't used GitHub issues for G4CMP, and I'm not consistently getting notifications about them. The G4CMP package has not been migrated for consistency with Geant4 11 at all. There are multiple interface changes (besides the two you found) which make such a migration irreversable. For now, we're keeping it at Geant4 10.7, for compatibility with the main experimental users. I'll leave this issue open as a reminder.
G4PhysicsModelCatalog
The latest G4 version changed the
G4PhysicsModelCatalog
interface latest: https://geant4.kek.jp/Reference/11.2.0/classG4PhysicsModelCatalog.html v10.05: https://geant4.kek.jp/Reference/10.05/classG4PhysicsModelCatalog.htmlNot sure how to fix this one right away.
G4String changes
substr
Also, errors with
G4String
which no longer has the implicit conversion operator taking two integers:latest: https://geant4.kek.jp/Reference/11.2.0/classG4String.html v10.05: https://geant4.kek.jp/Reference/10.05/classG4String.html
I suggest using
substr
https://en.cppreference.com/w/cpp/string/basic_string/substr(int,int) -> .substr(int,int)
index
Similar issue with new G4String. Can replace with
find
..index(args) -> .find(args)
Index is just wrapper on https://en.cppreference.com/w/cpp/string/basic_string/find