Skip to content

Commit

Permalink
[mini] fix constructors for AdePTPhysics (#335)
Browse files Browse the repository at this point in the history
This fixes the `AdePTPhysics` and `HepEmPhysics` in AdePT, to have the
same default values as the class they are derived from:
`G4EmStandardPhysics`. This allows for using a factory function and is
required in Gauss for LHCb simulations.
  • Loading branch information
SeverinDiederichs authored Jan 17, 2025
1 parent 25d9e22 commit 8d758c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/AdePT/integration/AdePTPhysics.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AdePTConfiguration;

class AdePTPhysics : public G4EmStandardPhysics { // public G4VPhysicsConstructor {
public:
AdePTPhysics(int ver, const G4String &name = "AdePT-physics-list");
AdePTPhysics(int ver = 1, const G4String &name = "AdePT-physics-list");
~AdePTPhysics();
AdePTTrackingManager *GetTrackingManager() { return fTrackingManager; }

Expand Down
2 changes: 1 addition & 1 deletion include/AdePT/integration/HepEMPhysics.hh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class HepEMPhysics : public G4EmStandardPhysics {
public:
HepEMPhysics(int ver, const G4String &name = "G4HepEm-physics-list");
HepEMPhysics(int ver = 1, const G4String &name = "G4HepEm-physics-list");
~HepEMPhysics();

public:
Expand Down

0 comments on commit 8d758c5

Please sign in to comment.