Skip to content

Commit

Permalink
Merge pull request #595 from michaelmackenzie/Mu2eII_IPA
Browse files Browse the repository at this point in the history
Mu2eII_SM21: Add option to not build the IPA
  • Loading branch information
kutschke authored Sep 27, 2021
2 parents 729a7e7 + c405864 commit 8db6877
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 5 deletions.
11 changes: 6 additions & 5 deletions GeometryService/src/MECOStyleProtonAbsorberMaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,22 @@ namespace mu2e {
// Decide which pabs will be turned on
//////////////////////////////////////

bool pabs1 = true;
bool pabs2 = true;
bool pabs1 = _config.getBool("protonabsorber.buildIPA", true);
bool pabs2 = _config.getBool("protonabsorber.buildIPA", true);
bool opa1 = _config.getBool("protonabsorber.outerPA", false);
bool opa2 = true;

// if pabs starts from DS3 region
if (distFromTargetEnd > targetEndToDS2End) {
if (pabs1 && distFromTargetEnd > targetEndToDS2End) {
pabs1 = false;
}

// if pabs is short enouhg to locate at DS2 region only
if (distFromTargetEnd + pabsZHalfLen*2.< targetEndToDS2End) {
if (pabs2 && distFromTargetEnd + pabsZHalfLen*2.< targetEndToDS2End) {
pabs2 = false;
}
if (!pabs1 && !pabs2) {

if (!pabs1 && !pabs2 && _config.getBool("protonabsorber.buildIPA", true)) {
return;
}

Expand Down
8 changes: 8 additions & 0 deletions Mu2eG4/geom/geom_Mu2eTrackerStraws_common.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Geometry using the Mu2e era tracker straws
#include "Offline/Mu2eG4/geom/geom_common.txt"
#include "Offline/Mu2eG4/geom/tracker_straw_params_v01.txt"

// This tells emacs to view this file in c++ mode.
// Local Variables:
// mode:c++
// End:
9 changes: 9 additions & 0 deletions Mu2eG4/geom/geom_noIPA_common.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Geometry without the IPA
#include "Offline/Mu2eG4/geom/geom_common.txt"
bool protonabsorber.buildIPA = false;
bool protonabsorber.ipa.buildSupports = false;

// This tells emacs to view this file in c++ mode.
// Local Variables:
// mode:c++
// End:
25 changes: 25 additions & 0 deletions Mu2eG4/geom/tracker_straw_params_v01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Mu2e era straw parameters taken from tracker_v6.txt

double tracker.strawOuterRadius = 2.5;
double tracker.strawWallThickness = 0.015;
double tracker.strawGap = 1.25;
double tracker.wireRadius = 0.0125;
string tracker.mat.strawgas = "StrawGas";
string tracker.mat.wire = "G4_W";
vector<string> tracker.strawMaterials = { "G4_MYLAR", "StrawGas", "G4_W" };
// define an inactive length at each end of every straw
double tracker.passivationMargin = -4.;
// Define the parameters of the metal coatings on the straws and wires.
double tracker.straw.wallOuterMetal.thickness = 0.00005;
string tracker.straw.wallOuterMetal.material = "G4_Al";
double tracker.straw.wallInnerMetal1.thickness = 0.00005;
string tracker.straw.wallInnerMetal1.material = "G4_Al";
double tracker.straw.wallInnerMetal2.thickness = 0.00002;
string tracker.straw.wallInnerMetal2.material = "G4_Au";
double tracker.straw.wirePlate.thickness = 0.00025;
string tracker.straw.wirePlate.material = "G4_Au";

// This tells emacs to view this file in c++ mode.
// Local Variables:
// mode:c++
// End:

0 comments on commit 8db6877

Please sign in to comment.