Skip to content

Commit

Permalink
Merge pull request #165 from rhbob/fixPbarWindowWedge
Browse files Browse the repository at this point in the history
fixPbarWindowAndWedgeAtTS3
  • Loading branch information
kutschke authored Apr 20, 2020
2 parents 0eab688 + 78b756c commit 97ae56c
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 7 deletions.
3 changes: 2 additions & 1 deletion BeamlineGeom/inc/PbarWindow.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace mu2e {
CLHEP::Hep3Vector const& getLocal() const { return _origin; }
std::string material() const { return _material; }
int version() const { return _version; }

std::string wedgeMaterial() const { return _wedgeMaterial; }
// The following are primarily for version 1 and 2
double rOut() const { return _rOut; }
double getY0() const { return _y0 ; };
Expand Down Expand Up @@ -54,6 +54,7 @@ namespace mu2e {

std::string _shape;
std::string _material;
std::string _wedgeMaterial;

double _rOut;
double _halfZ;
Expand Down
8 changes: 5 additions & 3 deletions GeometryService/src/BeamlineMaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,12 @@ namespace mu2e {
if ( pbarWindow._nStrips > 0 ) {
c.getVectorDouble("pbarwedge.stripHeights",pbarWindow._stripHeights,pbarWindow._nStrips);
}
// for version 4 (variable thickness strips)
if (pbarWindow._nStrips > 0 && pbarWindow._version == 4) {
c.getVectorDouble("pbarwedge.stripThicknesses",pbarWindow._stripThicknesses,pbarWindow._nStrips);
// for version 4 (variable thickness strips)
if (pbarWindow._nStrips > 0 && pbarWindow._version == 4) {
c.getVectorDouble("pbarwedge.stripThicknesses",pbarWindow._stripThicknesses,pbarWindow._nStrips);
}
// allow for the wedge and window to have different materials
pbarWindow._wedgeMaterial = c.getString("pbarwedge.wedgeMaterial",pbarWindow._material); //default to window material
}

} // namespace mu2e
Expand Down
18 changes: 18 additions & 0 deletions Mu2eG4/geom/TransportSolenoid_v06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Correct the pbar window used in TS5
#include "Mu2eG4/geom/TransportSolenoid_v05.txt"

// Pbar Absorber
int pbar.version = 4;
double pbar.halfLength = 0.127;
string pbar.materialName = "A1100";

int pbarwedge.nStrips = 3;
double pbarwedge.stripThickness = 0.127; // mm
vector<double> pbarwedge.stripThicknesses = {0.0635,0.0635,0.0635}; // mm
vector<double> pbarwedge.stripHeights = {23, 69, 115}; // mm

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

17 changes: 17 additions & 0 deletions Mu2eG4/geom/TransportSolenoid_v07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

//titanium pbar window and updated wedge to match
#include "Mu2eG4/geom/TransportSolenoid_v06.txt"

// Pbar Absorber
double pbar.halfLength = 0.0254; //thin
string pbar.materialName = "G4_Ti";
string pbarwedge.wedgeMaterial = "A1100";
int pbarwedge.nStrips = 4;
vector<double> pbarwedge.stripThicknesses = {0.0635,0.0635,0.0635,0.0635}; // mm
vector<double> pbarwedge.stripHeights = {48, 88, 128,168}; // mm

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

2 changes: 1 addition & 1 deletion Mu2eG4/geom/geom_2019_PhaseI_hayman_v2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ double mu2e.detectorSystemZ0 = 10171.; // mm G4BL: (17730-7292=9801 mm)
#include "Mu2eG4/geom/psEnclosure_v04.txt"
#include "Mu2eG4/geom/PSShield_v06.txt"
#include "Mu2eG4/geom/PSExternalShielding_v01.txt"
#include "Mu2eG4/geom/TransportSolenoid_v05.txt"
#include "Mu2eG4/geom/TransportSolenoid_v07.txt"

// External Shielding
#include "Mu2eG4/geom/ExtShieldUpstream_v06.txt"
Expand Down
10 changes: 10 additions & 0 deletions Mu2eG4/geom/geom_common_hayman_v2_TS06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Top level geometry, using the hayman_v2 production target geometry file and a correcteted TS3 pbar window
#include "Mu2eG4/geom/geom_common_hayman_v2.txt"
#include "Mu2eG4/geom/TransportSolenoid_v06.txt"



// This tells emacs to view this file in c++ mode.
// Local Variables:
// mode:c++
// End:
4 changes: 2 additions & 2 deletions Mu2eG4/src/constructTS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1877,9 +1877,9 @@ namespace mu2e {
G4cout << "pbarWedgeTrans = " << pbarWedgeTrans << G4endl;
}
pbarWedgeInfo.solid = stairCase;

G4Material* wedgeMaterial = findMaterialOrThrow(pbarWindow.wedgeMaterial()); //defaults to window material if not specified
finishNesting(pbarWedgeInfo,
pbarMaterial,
wedgeMaterial,
pbarWedgeRot,
pbarWedgeTrans,
parent.logical,
Expand Down

0 comments on commit 97ae56c

Please sign in to comment.