Skip to content

Commit

Permalink
Merge pull request #200 from JeffersonLab/feature-no-default-kryptonite
Browse files Browse the repository at this point in the history
Merge branch feature-no-default-kryptonite
  • Loading branch information
wdconinc committed Sep 5, 2019
2 parents 993a901 + 116d213 commit 8124ac8
Show file tree
Hide file tree
Showing 51 changed files with 72 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
2 changes: 1 addition & 1 deletion analysis/pruneTreeEnvelope/runexample_limit_envelope.mac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
2 changes: 1 addition & 1 deletion analysis/pruneTreeEnvelope/runexample_moller_envelope.mac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
1 change: 0 additions & 1 deletion include/remollDetectorConstruction.hh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class remollDetectorConstruction : public G4VUserDetectorConstruction
public:

void SetKryptoniteVerbose(G4int verbose) { fKryptoniteVerbose = verbose; }
void SetKryptoniteEnable(G4String flag);
void EnableKryptonite();
void DisableKryptonite();
void AddKryptoniteCandidate(G4String name);
Expand Down
2 changes: 1 addition & 1 deletion macros/envelope_data.mac
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
#/remoll/kryptonite/set true
#/control/execute macros/kryptonite.mac


#create moller output file
Expand Down
2 changes: 1 addition & 1 deletion macros/hepmc/ee_ee_hepmc.mac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/kryptonite/enable
/control/execute macros/kryptonite.mac

/remoll/SD/disable_range 7000 10000

Expand Down
2 changes: 1 addition & 1 deletion macros/hepmc/ee_ee_moller.mac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/kryptonite/enable
/control/execute macros/kryptonite.mac

/remoll/SD/disable_range 7000 10000

Expand Down
2 changes: 1 addition & 1 deletion macros/hepmc/ep_ep.mac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/evgen/set hepmcAscii

Expand Down
2 changes: 1 addition & 1 deletion macros/hepmc/ep_ep_elastic.mac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/kryptonite/enable
/control/execute macros/kryptonite.mac

/remoll/SD/disable_range 7000 10000

Expand Down
2 changes: 1 addition & 1 deletion macros/hepmc/ep_ep_hepmc.mac
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/kryptonite/enable
/control/execute macros/kryptonite.mac

/remoll/SD/disable_range 7000 10000

Expand Down
2 changes: 1 addition & 1 deletion macros/initializeTF1Generator.mac
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/process/list

Expand Down
12 changes: 12 additions & 0 deletions macros/kryptonite.mac
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Enable kryptonite
/remoll/kryptonite/enable

# Set some default materials
/remoll/kryptonite/add VacuumKryptonite
/remoll/kryptonite/add Tungsten
/remoll/kryptonite/add Copper
/remoll/kryptonite/add Lead
/remoll/kryptonite/add CW95

# List materials
/remoll/kryptonite/list
2 changes: 1 addition & 1 deletion macros/mainz.mac
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#----------------------------------------

# Kill tracks on interactions with W, Cu, and Pb
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/process/list

Expand Down
2 changes: 1 addition & 1 deletion macros/optical.mac
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/kryptonite/set false
/remoll/kryptonite/disable

/remoll/filename remollout.root

Expand Down
2 changes: 1 addition & 1 deletion macros/optics_test.mac
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/process/list

Expand Down
2 changes: 1 addition & 1 deletion macros/pion/pion_optical_response.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set false
/remoll/kryptonite/disable

# Only read detectors 28 and 30
/remoll/SD/disable_all
Expand Down
2 changes: 1 addition & 1 deletion macros/pion/pion_optical_response.mac
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set false
/remoll/kryptonite/disable

# Only read detectors 28 and 30
/remoll/SD/disable_all
Expand Down
2 changes: 1 addition & 1 deletion macros/remoll_test.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/process/list

Expand Down
2 changes: 1 addition & 1 deletion macros/runTF1.mac
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/process/list

Expand Down
2 changes: 1 addition & 1 deletion macros/runexample.mac
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/process/list

Expand Down
2 changes: 1 addition & 1 deletion macros/runexample_envelope.mac
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
2 changes: 1 addition & 1 deletion macros/runexample_epelastic_envelope.mac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
2 changes: 1 addition & 1 deletion macros/runexample_limit_envelope.mac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
2 changes: 1 addition & 1 deletion macros/runexample_moller_envelope.mac
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/remoll/beamcurr 85 microampere
# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac
/process/list
# Specify random number seed - DO NOT USE THE SAME SEED OVER AND OVER AGAIN
#/remoll/seed 123456
Expand Down
2 changes: 1 addition & 1 deletion macros/showermax_piondetector_optical_response_moller.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set false
/remoll/kryptonite/disable

# Only read detectors 28 and 30
/remoll/SD/disable_all
Expand Down
2 changes: 1 addition & 1 deletion macros/showermax_piondetector_optical_response_pion.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set false
/remoll/kryptonite/disable

# Only read detectors 28 and 30
/remoll/SD/disable_all
Expand Down
2 changes: 1 addition & 1 deletion macros/sim_dump_backscatter.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set false
/remoll/kryptonite/disable

# Disable all but useful detectors
/remoll/SD/disable_all
Expand Down
2 changes: 1 addition & 1 deletion macros/sim_dump_backscatter.mac
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set false
/remoll/kryptonite/disable

/remoll/SD/disable_all
/remoll/SD/enable 28
Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_beam.mac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_elastic.mac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_elasticAl.mac
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_elasticAl_DS.mac
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_elasticAl_US.mac
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_inelastic.mac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_inelasticAl.mac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_moller.mac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/enable
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_pion.mac
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/commit/test_raster.mac
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 1 addition & 1 deletion macros/tests/release/test_moller.mac
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

# Make interactions with W, Cu, and Pb
# realistic rather than pure absorbers
/remoll/kryptonite/set true
/control/execute macros/kryptonite.mac

/remoll/seed 123456

Expand Down
2 changes: 2 additions & 0 deletions macros/tests/unit/test_beam_energy.mac
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This will produce four files test_moller_$E.root, $E = 8,9,10,11 GeV.

/control/execute macros/kryptonite.mac

/run/initialize

/remoll/filename test_moller_8.root
Expand Down
2 changes: 2 additions & 0 deletions macros/tests/unit/test_det_enable.mac
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/run/initialize

/control/execute macros/kryptonite.mac

# Print all detectors
/remoll/SD/print_all

Expand Down
2 changes: 2 additions & 0 deletions macros/tests/unit/test_gen_external.mac
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/remoll/parallel/setfile geometry/mollerParallel.gdml
/remoll/physlist/parallel/enable

/control/execute macros/kryptonite.mac

/run/initialize

/remoll/evgen/set moller
Expand Down
1 change: 1 addition & 0 deletions macros/tests/unit/test_interval.mac
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/control/execute macros/kryptonite.mac
/run/initialize
/remoll/evgen/set moller
/remoll/interval 5
Expand Down
4 changes: 2 additions & 2 deletions macros/tests/unit/test_kryptonite.mac
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/remoll/kryptonite/add G4_Pb
/remoll/kryptonite/list

/remoll/kryptonite/set true
/remoll/kryptonite/enable
/run/beamOn 100
/remoll/kryptonite/set false
/remoll/kryptonite/disable
/run/beamOn 100
Loading

0 comments on commit 8124ac8

Please sign in to comment.