From ee7d062651202d9590f5517767570f7e2a129e3c Mon Sep 17 00:00:00 2001 From: adrien-matta <a.matta@surrey.ac.uk> Date: Thu, 28 Jan 2016 09:44:12 +0000 Subject: [PATCH] * Fixing small geometry issues in Trex and Miniball --- NPSimulation/Detectors/Miniball/Miniball.cc | 1 - NPSimulation/Detectors/TRex/TRex.cc | 2 +- Projects/TRex_Miniball/TRex_Miniball.detector | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/NPSimulation/Detectors/Miniball/Miniball.cc b/NPSimulation/Detectors/Miniball/Miniball.cc index b5b19e2c2..567a6cced 100644 --- a/NPSimulation/Detectors/Miniball/Miniball.cc +++ b/NPSimulation/Detectors/Miniball/Miniball.cc @@ -271,7 +271,6 @@ void Miniball::ConstructDetector(G4LogicalVolume* world){ G4RotationMatrix* Rot = new G4RotationMatrix(u,v,w); G4Transform3D Trans(*Rot,Det_pos); - Det_pos=G4ThreeVector(0,0,0); m_ClusterDetector->MakeImprint(world,Det_pos, Rot,i+1); // set a nicer name std::vector< G4VPhysicalVolume * >::iterator it = m_ClusterDetector->GetVolumesIterator(); diff --git a/NPSimulation/Detectors/TRex/TRex.cc b/NPSimulation/Detectors/TRex/TRex.cc index e536c2eb9..d6f4f125c 100644 --- a/NPSimulation/Detectors/TRex/TRex.cc +++ b/NPSimulation/Detectors/TRex/TRex.cc @@ -300,7 +300,7 @@ void TRex::ConstructDetector(G4LogicalVolume* world){ G4VisAttributes* ChamberVisAtt = new G4VisAttributes(G4Colour(0.0,0.4,0.5,0.2)); m_Chamber->SetVisAttributes(ChamberVisAtt); - new G4PVPlacement(new G4RotationMatrix(),G4ThreeVector(0,0,0),m_Chamber,"TRex_Chamber",world,false,0); + new G4PVPlacement(new G4RotationMatrix(),G4ThreeVector(0,0,50),m_Chamber,"TRex_Chamber",world,false,0); } } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... diff --git a/Projects/TRex_Miniball/TRex_Miniball.detector b/Projects/TRex_Miniball/TRex_Miniball.detector index 06f82a43b..210bb5c22 100644 --- a/Projects/TRex_Miniball/TRex_Miniball.detector +++ b/Projects/TRex_Miniball/TRex_Miniball.detector @@ -86,13 +86,13 @@ Sharc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Miniball R= 110 - THETA= 125 + THETA= 110 PHI= 320 Shape= Square %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Miniball R= 110 - THETA= 125 + THETA= 110 PHI= 220 Shape= Square %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -122,7 +122,7 @@ Miniball %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Miniball R= 110 - THETA= 125 + THETA= 110 PHI= 40 Shape= Square %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- GitLab