From ba3df2e05c35aa5addb600e436d8408bd35b2f5b Mon Sep 17 00:00:00 2001 From: shivesh Date: Tue, 21 Aug 2018 15:54:38 +0100 Subject: position of tank --- src/G4BeamTestDetectorConstruction.cxx | 2 +- src/G4BeamTestTank.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/G4BeamTestDetectorConstruction.cxx b/src/G4BeamTestDetectorConstruction.cxx index cf75551..2bf76a2 100644 --- a/src/G4BeamTestDetectorConstruction.cxx +++ b/src/G4BeamTestDetectorConstruction.cxx @@ -14,7 +14,7 @@ G4BeamTestDetectorConstruction::G4BeamTestDetectorConstruction(): - origin_(NAN, NAN, NAN), verboseLevel_(0)/* , tankList_(0) */ + origin_(0, 0, 0), verboseLevel_(0)/* , tankList_(0) */ { } diff --git a/src/G4BeamTestTank.cxx b/src/G4BeamTestTank.cxx index 2fc5bed..b9d469e 100644 --- a/src/G4BeamTestTank.cxx +++ b/src/G4BeamTestTank.cxx @@ -175,6 +175,7 @@ G4VPhysicalVolume* G4BeamTestTank::InstallTank(G4VPhysicalVolume* mother, const tankLog_->SetVisAttributes(tankVisAtt); G4ThreeVector tankPos = position_ - origin - mother->GetTranslation(); + G4cout << "tankPos = " << tankPos << G4endl; G4VPhysicalVolume* tankPhys = new G4PVPlacement(0, tankPos, tankLog_, ("tank_" + tankName).c_str(), -- cgit v1.2.3