Skip to content

Commit c78586b

Browse files
Remove WCSimPhysicsList
1 parent 7778f1c commit c78586b

13 files changed

+7
-957
lines changed

CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ target_link_libraries(WCSim ${Geant4_LIBRARIES} ${ROOT_LIBRARIES} WCSimRoot Tree
8282
# relies on these scripts being in the current working directory.
8383
#
8484
set(WCSIM_SCRIPTS
85-
jobOptions2.mac
8685
jobOptions.mac
8786
WCSim.mac
8887
daq.mac

WCSim.cc

+1-16
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#include "G4UIterminal.hh"
55
#include "G4UItcsh.hh"
66
#include "WCSimDetectorConstruction.hh"
7-
#include "WCSimPhysicsList.hh"
8-
#include "WCSimPhysicsMessenger.hh"
97
#include "WCSimPhysicsListFactory.hh"
108
#include "WCSimPhysicsListFactoryMessenger.hh"
119
#include "WCSimTuningParameters.hh"
@@ -59,27 +57,14 @@ int main(int argc,char** argv)
5957
// Set up the messenger hooks here, initialize the actual list after loading jobOptions.mac
6058
WCSimPhysicsListFactory *physFactory = new WCSimPhysicsListFactory();
6159

62-
// Currently, default model is set to BINARY
60+
// Currently, default physics list is set to FTFP_BERT
6361
file_exists("jobOptions.mac");
6462
UI->ApplyCommand("/control/execute jobOptions.mac");
6563

6664
// Initialize the physics factory to register the selected physics.
6765
physFactory->InitializeList();
6866
runManager->SetUserInitialization(physFactory);
6967

70-
// If the WCSim physics list was chosen in jobOptions.mac,
71-
// then it's hadronic model needs to be selected in jobOptions2.mac
72-
//=================================
73-
// Added by JLR 2005-07-05
74-
//=================================
75-
// Choice of hadronic interaction model for
76-
// protons & neutrons. This file must be read in
77-
// by the program BEFORE the runManager is initialized.
78-
// If file does not exist, default model will be used.
79-
// Currently, default model is set to BINARY.
80-
file_exists("jobOptions2.mac");
81-
UI->ApplyCommand("/control/execute jobOptions2.mac");
82-
8368
// Visualization
8469
G4VisManager* visManager = new WCSimVisManager;
8570
visManager->Initialize();

include/WCSimPhysicsList.hh

-63
This file was deleted.

include/WCSimPhysicsListFactory.hh

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "G4OpticalPhysics.hh"
99

1010
#include "WCSimPhysicsListFactoryMessenger.hh"
11-
#include "WCSimPhysicsList.hh"
1211
#include "WCSimRootOptions.hh"
1312

1413
//class WCSimPhysicsList;
@@ -38,7 +37,6 @@ class WCSimPhysicsListFactory : public G4VModularPhysicsList
3837
WCSimPhysicsListFactoryMessenger* PhysicsMessenger;
3938
G4PhysListFactory* factory;
4039

41-
WCSimPhysicsList * WCSimPhysList;
4240
};
4341

4442
#endif

include/WCSimPhysicsMessenger.hh

-28
This file was deleted.

include/WCSimRootOptions.hh

-3
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ public:
105105
bool GetTopveto() {return Topveto;}
106106
//WCSimPhysicsListFactory sets
107107
void SetPhysicsListName(string iPhysicsListName) {PhysicsListName = iPhysicsListName;}
108-
void SetSecondaryHadModel(string iSecondaryHadModel) {SecondaryHadModel = iSecondaryHadModel;}
109108
//WCSimPhysicsListFactory gets
110109
string GetPhysicsListName() {return PhysicsListName;}
111-
string GetSecondaryHadModel() {return SecondaryHadModel;}
112110
//WCSimPrimaryGeneratorAction sets
113111
void SetVectorFileName(string iVectorFileName) {VectorFileName = iVectorFileName;}
114112
void SetGeneratorType(string iGeneratorType) {GeneratorType = iGeneratorType;}
@@ -168,7 +166,6 @@ private:
168166

169167
//WCSimPhysicsListFactory
170168
string PhysicsListName;
171-
string SecondaryHadModel;
172169

173170
//WCSimPrimaryGeneratorAction
174171
string VectorFileName;

jobOptions.mac

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#
1313
#/WCSim/physics/list QGSP_BIC_HP #preferred for energies below 5 GeV
1414
#/WCSim/physics/list LBE # preferred for low-background experiments.
15-
#/WCSim/physics/list WCSim # included for backward-compatibility. Requires jobOptions2.mac
1615
/WCSim/physics/list FTFP_BERT # recommended for high energy physics and hadron production up to beam momentum of several tens of GeV/c.
1716

1817

jobOptions2.mac

-12
This file was deleted.

0 commit comments

Comments
 (0)