-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #647 from kutschke/extracted_no_bfield
Extracted no bfield
- Loading branch information
Showing
2 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters