Skip to content

Commit 4a8692d

Browse files
authored
Merge pull request #48488 from civanch/clean_up_custom_physics
[SIM] Clean up custom physics sub-library
2 parents 21e9587 + e74a094 commit 4a8692d

37 files changed

+392
-478
lines changed

SimG4Core/CustomPhysics/interface/APrimePhysics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class APrimePhysics : public G4VPhysicsConstructor {
1515
/**
1616
* Class destructor.
1717
*/
18-
~APrimePhysics() override;
18+
~APrimePhysics() override = default;
1919

2020
/**
2121
* Construct particles.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @file CMSAPrime.h
3+
* @brief Class creating the A' particle in Geant.
4+
* @author Michael Revering, University of Minnesota
5+
*/
6+
7+
#ifndef CMSAPrime_h
8+
#define CMSAPrime_h
9+
10+
// Geant
11+
#include "G4ParticleDefinition.hh"
12+
13+
class CMSAPrime : public G4ParticleDefinition {
14+
private:
15+
static CMSAPrime* theAPrime;
16+
17+
CMSAPrime(const G4String& Name,
18+
G4double mass,
19+
G4double width,
20+
G4double charge,
21+
G4int iSpin,
22+
G4int iParity,
23+
G4int iConjugation,
24+
G4int iIsospin,
25+
G4int iIsospin3,
26+
G4int gParity,
27+
const G4String& pType,
28+
G4int lepton,
29+
G4int baryon,
30+
G4int encoding,
31+
G4bool stable,
32+
G4double lifetime,
33+
G4DecayTable* decaytable);
34+
35+
~CMSAPrime() override = default;
36+
37+
public:
38+
static CMSAPrime* APrime(double apmass = 1000);
39+
};
40+
41+
#endif

SimG4Core/CustomPhysics/interface/CMSAntiSIMP.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
class CMSAntiSIMP : public G4ParticleDefinition {
99
private:
1010
static CMSAntiSIMP* theInstance;
11-
CMSAntiSIMP() {}
12-
~CMSAntiSIMP() override {}
11+
CMSAntiSIMP() = default;
12+
~CMSAntiSIMP() override = default;
1313

1414
public:
1515
static CMSAntiSIMP* Definition(double mass);

SimG4Core/CustomPhysics/interface/CMSAntiSQ.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
class CMSAntiSQ : public G4ParticleDefinition {
1313
private:
1414
static CMSAntiSQ* theInstance;
15-
CMSAntiSQ() {}
16-
~CMSAntiSQ() {}
15+
CMSAntiSQ() = default;
16+
~CMSAntiSQ() override = default;
1717

1818
public:
1919
static CMSAntiSQ* Definition(double mass);

SimG4Core/CustomPhysics/interface/CMSDarkPairProduction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CMSDarkPairProduction : public G4PairProductionRelModel {
2222
G4double df = 1.0,
2323
const G4String& nam = "BetheHeitlerLPM");
2424

25-
~CMSDarkPairProduction() override;
25+
~CMSDarkPairProduction() override = default;
2626

2727
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
2828
G4double kinEnergy,

SimG4Core/CustomPhysics/interface/CMSDarkPairProductionProcess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CMSDarkPairProductionProcess : public G4VEmProcess
2525
const G4String& processName = "conv",
2626
G4ProcessType type = fElectromagnetic);
2727

28-
~CMSDarkPairProductionProcess() override;
28+
~CMSDarkPairProductionProcess() override = default;
2929

3030
// true for Gamma only.
3131
G4bool IsApplicable(const G4ParticleDefinition&) override;

SimG4Core/CustomPhysics/interface/CMSSIMPInelasticProcess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CMSSIMPInelasticProcess : public G4HadronicProcess {
99
public:
1010
CMSSIMPInelasticProcess(const G4String& processName = "SIMPInelastic");
1111

12-
~CMSSIMPInelasticProcess() override;
12+
~CMSSIMPInelasticProcess() override = default;
1313

1414
G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override;
1515

SimG4Core/CustomPhysics/interface/CMSSIMPInelasticXS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CMSSIMPInelasticXS : public G4VCrossSectionDataSet {
1010
public:
1111
CMSSIMPInelasticXS();
1212

13-
~CMSSIMPInelasticXS() override;
13+
~CMSSIMPInelasticXS() override = default;
1414

1515
G4bool IsElementApplicable(const G4DynamicParticle*, G4int Z, const G4Material*) override;
1616

SimG4Core/CustomPhysics/interface/CMSSQ.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
class CMSSQ : public G4ParticleDefinition {
1414
private:
1515
static CMSSQ* theInstance;
16-
CMSSQ() {}
17-
~CMSSQ() {}
16+
CMSSQ() = default;
17+
;
18+
~CMSSQ() override = default;
1819

1920
public:
2021
static CMSSQ* Definition(double mass);

SimG4Core/CustomPhysics/interface/CMSSQInelasticCrossSection.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class CMSSQInelasticCrossSection : public G4VCrossSectionDataSet {
1313
public:
1414
CMSSQInelasticCrossSection(double mass);
1515

16-
~CMSSQInelasticCrossSection();
16+
~CMSSQInelasticCrossSection() override = default;
1717

18-
virtual G4bool IsElementApplicable(const G4DynamicParticle* aPart, G4int Z, const G4Material*);
18+
G4bool IsElementApplicable(const G4DynamicParticle* aPart, G4int Z, const G4Material*) override;
1919

20-
virtual G4double GetElementCrossSection(const G4DynamicParticle*, G4int Z, const G4Material*);
20+
G4double GetElementCrossSection(const G4DynamicParticle*, G4int Z, const G4Material*) override;
2121

2222
G4double GetSQCrossSection(G4double kineticEnergy, G4int Z);
2323

0 commit comments

Comments
 (0)