Message: Re: Any advice on wrapping CLHEP into Python Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Any advice on wrapping CLHEP into Python 

Forum: Installation and Configuration
Re: None Any advice on wrapping CLHEP into Python (Robert Penny)
Date: 21 Jan, 2010
From: Koichi Murakami <Koichi Murakami>

> Firstly, is anyone aware of a more extensive wrapping of CLHEP geometric =
> primitives than the TwoVector, ThreeVector and Transform3D in the =
> existing Geant source tree?  It'd be nice to use the operator =
> overloading for applying transformations through a simple Python =
> multiplication.

I suppose there are no such extensive CLHEP wrapping. I have only warped out classes that are used in Geant4.

But you can easily expose other CLHEP classes you want in the same way as implemented in g4py.

> Secondly, it seems like moving away from bjam towards GNUmake for =
> building the extensions is the way to go.
> 
> I can probably get a better handle on this after I spend a few more =
> hours walking through the environments/g4py source tree.  However, if =
> there's anyone out there who's done this already I'd appreciate their =
> advice.

Boost are moving from bjam to CMAKE. Bjam is very complicated and not easy to understand and use. Using GNUmake is much easier for handling software building.

I just copied compile options in bjam to GNUmake, that are presented in g4py/sys/XXX.gmk. You can reuse it for building your own wrapper using GNUmake.

Cheers, Koichi

 Add Message Add Message
to: "Re: Any advice on wrapping CLHEP into 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 ]