aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2018-08-21 15:54:38 +0100
committershivesh <s.p.mandalia@qmul.ac.uk>2018-08-21 15:54:38 +0100
commitba3df2e05c35aa5addb600e436d8408bd35b2f5b (patch)
treeb1272d3cbc93a723d1d39c966839edf2c8bb87da
parent2925dbae7f488c3113b5f574eca1ceaba0ffdaac (diff)
downloadG4BeamTest-ba3df2e05c35aa5addb600e436d8408bd35b2f5b.tar.gz
G4BeamTest-ba3df2e05c35aa5addb600e436d8408bd35b2f5b.zip
position of tank
-rw-r--r--src/G4BeamTestDetectorConstruction.cxx2
-rw-r--r--src/G4BeamTestTank.cxx1
2 files changed, 2 insertions, 1 deletions
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(),