Message: Creating geometry in python Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Creating geometry in python 

Forum: Geometry
Date: 28 May, 2009
From: Jorge Ferrera <Jorge Ferrera>

Hello again boys,

I have another problem and I hope someone can help me. I have executed successful the examples using python, now I programming my own simulation, but I should not use the modules, because my thesis. My problem:

Declaring my World Physical volume in C++

physicWorld = new G4PVPlacement(0,

And it compiled ok, but, in python I did almost the same thing:

physicWorld =     G4PVPlacement(0,
And it hasnīt compiled. Iīve received a error saying that doensīt exist a method with my inputs.
I think this happens because the zero (0), the method ask for HepGeom::Transform3D or CLHEP::HepRotation 
and my input is int (zero, 0). I guess that I have two options, use the methods in python, but I donīt know how 
or find out how to put zero, null(None) in python. Ok, I am not a python programmer, but I am trying, someone can give me a tip?

Thanks guys ;)


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Creating geometry in python   (Koichi Murakami - 02 Jun, 2009)
2 None: Re: Creating geometry in python   (Koichi Murakami - 02 Jun, 2009)
 Add Message Add Message
to: "Creating geometry in python"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]