Skip to content

Commit f6a339f

Browse files
author
knikolop
committed
Magnet
1 parent c70c971 commit f6a339f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/B5DetectorConstruction.cc

+9-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ B5DetectorConstruction::B5DetectorConstruction()
8181
fCellLogical(nullptr), fHadCalScintiLogical(nullptr),
8282
fMagneticLogical(nullptr),
8383
fVisAttributes(),
84-
fArmAngle(30.*deg), fArmRotation(nullptr), fSecondArmPhys(nullptr)
84+
fArmAngle(0.*deg), fArmRotation(nullptr), fSecondArmPhys(nullptr)
8585

8686
{
8787
fArmRotation = new G4RotationMatrix();
@@ -127,13 +127,17 @@ G4VPhysicalVolume* B5DetectorConstruction::Construct()
127127
false,0,checkOverlaps);
128128

129129
// Tube with Local Magnetic field
130-
auto magneticSolid = new G4Tubs("magneticTubs",0.,1.*m,1.*m,0.,360.*deg);
130+
//auto magneticSolid = new G4Tubs("magneticTubs",0.,1.*m,1.*m,0.,360.*deg);
131+
auto magneticSolid = new G4Box("magneticTubs",1.*m,1.*m,1.*m);
131132
fMagneticLogical = new G4LogicalVolume(magneticSolid, air, "magneticLogical");
132133

133134
// placement of Tube
134-
G4RotationMatrix* fieldRot = new G4RotationMatrix();
135-
fieldRot->rotateX(90.*deg);
136-
new G4PVPlacement(fieldRot,G4ThreeVector(),fMagneticLogical,
135+
// G4RotationMatrix* fieldRot = new G4RotationMatrix();
136+
// fieldRot->rotateX(90.*deg);
137+
// new G4PVPlacement(fieldRot,G4ThreeVector(),fMagneticLogical,
138+
// "magneticPhysical",worldLogical,
139+
// false,0,checkOverlaps);
140+
new G4PVPlacement(0,G4ThreeVector(),fMagneticLogical,
137141
"magneticPhysical",worldLogical,
138142
false,0,checkOverlaps);
139143

0 commit comments

Comments
 (0)