Skip to content

Commit

Permalink
Fixed mumetal rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganAskins committed Jul 25, 2019
1 parent 91904a3 commit a318e0c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/geo/GeoPMTFactoryBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -559,16 +559,17 @@ namespace RAT {
//place the mumetal shields
G4ThreeVector offsetmumetal = G4ThreeVector(0.0, 0.0, /*-10.0*/0.0*CLHEP::cm);
//G4cout << "pmtpos is " << pmtpos << "\n";
G4ThreeVector mumetalpos = pmtpos + offsetmumetal;
G4ThreeVector offsetmu_rot = pmtrot->inverse()(offsetmumetal);
G4ThreeVector mumetalpos = pmtpos + offsetmu_rot;
if (mu_metal) {
new G4PVPlacement
( 0,
mumetalpos,
"mumetal_phys",
mumetal_log,
phys_mother,
false,
id);
( pmtrot,
mumetalpos,
"mumetal_phys",
mumetal_log,
phys_mother,
false,
id);
}

if (!pmtParam.useEnvelope && logiWg) {
Expand Down

0 comments on commit a318e0c

Please sign in to comment.