RE: Braidwood RAT

From: Matthew Worcester (mworcest@hep.uchicago.edu)
Date: Tue Oct 18 2005 - 22:03:54 CDT


Hi Zelimir,

We've seen your problem at UC, too. The problem is that the function:

void GLG4Ellipsoid::DescribeYourselfTo (G4VGraphicsScene& scene) const
{
#if (G4VERSIONCODE <= 40700)
   scene.AddThis (*this); // function was named AddThis for a long time...
#else
   scene.AddSolid (*this); // renamed to AddSolid in Geant4 7.01
#endif
}

Has G4VERSIONCODE defined for an old version of G4. This is done in RAT
in the file include/local_g4version.hh which should look like:

#define G4VERSIONSTRING "geant4-07-01"
#define G4VERSIONCODE 40701

for Geant4.7.1. The file local_g4version.hh is created by configure in
RAT, and somehow it picked up an old version tag (or none at all) for G4.
I think that running 'make pristine' should remove that file. Then check
that you have all of your env variables pointing to your Geant4.7.1
release. Then re-run configure in RAT and re-source the new env.csh file.
Then you should be able to make GLG4sim again.

Cheers,
Matt

On Tue, 18 Oct 2005, Zelimir Djurcic wrote:

> Hi Matt,
>
> sorry for late replay, I was quit busy today...
> Yes, I would like to come to the meeting.
> This was interesting for me to take a look into BW simulation.
>
> I want to bug you with a couple of questions: I am trying
> to install RAT to my laptop so I may play when travel (I will
> go to PANIC) or at home etc.
> I installed root 4.04/02g and Geant4.7.1, I verified it works
> with several Geant4 examples.
> When I try to compile GLG4 and RAT, I have trouble.
> RAT complain to GLG4.
> Then I try to compile GLG4 itself. I get this:
>
> make[1]: Entering directory `/home/zdjurcic/MyGeant4/RAT/GLG4sim'
> Compiling GLG4Ellipsoid.cc ...
> src/GLG4Ellipsoid.cc: In member function `virtual G4bool
> GLG4Ellipsoid::CalculateExtent(EAxis, const G4VoxelLimits&, const
> G4AffineTransform&, G4double&, G4double&) const':
> src/GLG4Ellipsoid.cc:248: warning: enumeration value `kRho' not handled in
> switch
> src/GLG4Ellipsoid.cc:248: warning: enumeration value `kRadial3D' not handled
> in
> switch
> src/GLG4Ellipsoid.cc:248: warning: enumeration value `kPhi' not handled in
> switch
> src/GLG4Ellipsoid.cc:248: warning: enumeration value `kUndefined' not handled
> in switch
> src/GLG4Ellipsoid.cc: In member function `virtual void
> GLG4Ellipsoid::DescribeYourselfTo(G4VGraphicsScene&) const':
> src/GLG4Ellipsoid.cc:798: no matching function for call to
> `G4VGraphicsScene::
> AddThis(const GLG4Ellipsoid&)'
> /usr/local/geant4.7.1/source/graphics_reps/include/G4Polyhedron.hh: At global
> scope:
> /usr/local/geant4.7.1/source/graphics_reps/include/G4Polyhedron.hh:119:
> warning: `
> virtual HepPolyhedron& G4Polyhedron::operator=(const HepPolyhedron&)' was
> hidden
> src/GLG4Ellipsoid.cc:817: warning: by `GLG4PolyhedronEllipsoid&
> GLG4PolyhedronEllipsoid::operator=(const GLG4PolyhedronEllipsoid&)'
> make[1]: *** [/home/zdjurcic/MyGeant4/tmp/Linux-g++/glg4sim/GLG4Ellipsoid.o]
> Err or 1
> make[1]: Leaving directory `/home/zdjurcic/MyGeant4/RAT/GLG4sim'
> make: *** [application] Error 2
>
>
> Do you know what's going on?
> Thanks,
> Z.



This archive was generated by hypermail 2.1.6 : Fri Oct 21 2005 - 00:01:02 CDT