Skip to content

Commit

Permalink
Introduced 04_1 module
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 18, 2020
1 parent 76a8c3f commit 469537d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 16 deletions.
17 changes: 1 addition & 16 deletions examples/hl_lhc_collision/main.mask
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,8 @@ call, file="optics.madx";
call, file="modules/module_01_orbit.madx";
call, file="modules/module_02_lumilevel.madx";
call, file="modules/module_03_beambeam.madx";

! Install and switch off crabs
call, file="tools/enable_crabcavities.madx";
on_crab1 = 0;
on_crab5 = 0;

!Save references
call, file="modules/auxiliary_00_savereferences.madx";

! Errors and tuning
on_disp = 0;
call, file="modules/module_04_1_finalizeseq_storerefs.madx";
call, file="modules/module_04_errors.madx";
call, file="modules/module_05_tuning.madx";

! Switch off crabs
on_crab1 = par_crab1;
on_crab5 = par_crab5;

call, file="modules/module_06_generate.madx";

10 changes: 10 additions & 0 deletions module_04_1_finalizeseq_storerefs.madx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
print, text="";
print, text="";
print, text="+++++++++++++++++++++++++++++++++++++++++++++++++++++";
print, text="++ START MODULE 4.1: FINALIZE SEQ. AND STORE REFS +++";
print, text="+++++++++++++++++++++++++++++++++++++++++++++++++++++";
print, text="";
print, text="";

call, file="modules/submodule_04_1a_install_crabs.madx";
call, file="modules/submodule_04_1b_save_references.madx";
11 changes: 11 additions & 0 deletions submodule_04_1a_install_crabs.madx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
print, text="";
print, text="";
print, text=" --- Submodule 4.1a: install crabs ";
print, text=" --------------------------------- ";
print, text="";
print, text="";

! Install and switch off crabs
call, file="tools/enable_crabcavities.madx";
on_crab1 = 0;
on_crab5 = 0;
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
print, text="";
print, text="";
print, text=" --- Submodule 4.1a: store references ";
print, text=" ------------------------------------ ";
print, text="";
print, text="";

exec, crossing_disable;
on_disp = 0;
Expand Down
3 changes: 3 additions & 0 deletions submodule_05f_RF.madx
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ LAGRF400.B1=0.5;
LAGRF400.B2=0.;
VRF400 := par_vrf_total;

! Switch on crabs
on_crab1 = par_crab1;
on_crab5 = par_crab5;

0 comments on commit 469537d

Please sign in to comment.