@@ -81,7 +81,7 @@ B5DetectorConstruction::B5DetectorConstruction()
81
81
fCellLogical(nullptr ), fHadCalScintiLogical(nullptr ),
82
82
fMagneticLogical(nullptr ),
83
83
fVisAttributes(),
84
- fArmAngle(30 .*deg), fArmRotation(nullptr ), fSecondArmPhys(nullptr )
84
+ fArmAngle(0 .*deg), fArmRotation(nullptr ), fSecondArmPhys(nullptr )
85
85
86
86
{
87
87
fArmRotation = new G4RotationMatrix ();
@@ -127,13 +127,17 @@ G4VPhysicalVolume* B5DetectorConstruction::Construct()
127
127
false ,0 ,checkOverlaps);
128
128
129
129
// 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);
131
132
fMagneticLogical = new G4LogicalVolume (magneticSolid, air, " magneticLogical" );
132
133
133
134
// 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 ,
137
141
" magneticPhysical" ,worldLogical,
138
142
false ,0 ,checkOverlaps);
139
143
0 commit comments