Skip to content

Commit

Permalink
Merge pull request #647 from kutschke/extracted_no_bfield
Browse files Browse the repository at this point in the history
Extracted no bfield
  • Loading branch information
brownd1978 authored Nov 4, 2021
2 parents 80930a3 + 4da886d commit 3056dc1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
53 changes: 53 additions & 0 deletions Mu2eG4/geom/bfgeom_no_field.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
//
// Variant of the BField system with zero magnetic field everywhere.
//
// BField information maintained as a separate file.
//
// Warning:
// There are multiple points of maintenance when you change bfield.innerMaps
// There are multiple points of maintenance when you change bfield.innerMaps
// - bfgeom_v01.txt ( the base geometry )
// - bfgeom_no_ds_v01.txt ( DS map removed )
// - bfgeom_reco_v01.txt ( only maps needed for reconstruction )
// - bfgeom_no_tsu_ps_v01.txt ( PS and TSu maps removed.
// - bfgeom_no_field.txt ( Magnetic field is zero everywhere )
//

// Form of DS field: 0 is full field;
// 1 is full upstream, const downstream;
// 2 is const throughout
int detSolFieldForm = 0;

vector<string> bfield.innerMaps = {};

// Value of the uniform magnetic field with the DS volume (only for
// detSolFieldForm>0)
double toyDS.bz = 0.0;

// Gradient of field in DS2 volume. Applied only in the case
// of detSolFieldForm=1 or detSolFieldForm=2.
double toyDS.gradient = 0.0; // Tesla/m

// This is recommended field map. See geom_mecofield.txt to use the meco field.
string bfield.format = "G4BL";

// The other option is "meco"
string bfield.interpolationStyle = trilinear;

int bfield.verbosityLevel = 0;
bool bfield.writeG4BLBinaries = false;

vector<string> bfield.outerMaps = {};

// This scale factor is of limited use.
// It can make approximate sense to scale the PS field to get a rough
// answer; the answer will be wrong in detail.
// It never makes sense to scale the TS field.
// Not sure if it ever makes sense to scale the PS field.
double bfield.scaleFactor = 0.0;

//
// This tells emacs to view this file in c++ mode.
// Local Variables:
// mode:c++
// End:
5 changes: 4 additions & 1 deletion Mu2eG4/geom/geom_common_extracted.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Top level geometry file for extracted detector cosmics running
// Top level geometry file for extracted detector cosmics running with no magnetic field

// Start from recent baseline geometry
#include "Offline/Mu2eG4/geom/geom_common_current.txt"

// Set the magnetic field to zero everywhere.
#include "Offline/Mu2eG4/geom/bfgeom_no_field.txt"

// Special - for garage position!
bool inGaragePosition = true;
double garage.zOffset = 14000.0; // for creating special garageFakeDS(2/3)Vacuum volume
Expand Down

0 comments on commit 3056dc1

Please sign in to comment.