Skip to content

Commit

Permalink
Set the default z shift of the magnetic field to -5.087 m
Browse files Browse the repository at this point in the history
This will cause the old magnetic fields to be read in correctly,
even if there is no /remoll/field/zoffset command
  • Loading branch information
wdconinc committed Oct 2, 2019
1 parent 96fd953 commit 45d23f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions macros/runexample.mac
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
/remoll/addfield map_directory/blockyHybrid_rm_3.0.txt
/remoll/addfield map_directory/blockyUpstream_rm_1.1.txt

/remoll/field/zoffset map_directory/blockyHybrid_rm_3.0.txt -5087.
/remoll/field/zoffset map_directory/blockyUpstream_rm_1.1.txt -5087.

#/remoll/field/scale map_directory/blockyHybrid_rm_3.0.txt 1.0
#/remoll/field/current map_directory/blockyHybrid_rm_3.0.txt 1000.0

Expand Down
5 changes: 4 additions & 1 deletion src/remollMagneticField.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ remollMagneticField::remollMagneticField( G4String filename ){

fPhi0 = -1e9;

fZoffset = 0.0;
// Default offset for field maps in reference frame with
// the hall pivot at z = 0.
fZoffset = -5087.0;

fInit = false;
fMagCurrent0 = -1e9;

Expand Down

0 comments on commit 45d23f1

Please sign in to comment.