Message: Re: GDML Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GDML 

Keywords: GDML, attributes
Forum: Geometry
Re: None GDML (Francisco Garcia)
Re: None Re: GDML (John Allison)
Date: 22 Feb, 2007
From: Francisco Garcia <Francisco Garcia>

Hi Allison,

Thanks a lot, I found the name of the physical volumes. But now I would like to set the colours attibutes in the detector Construction class.

For instance I done this:

G4VPhysicalVolume* gogdmlDetectorConstruction::Construct()

  fWorld =  (G4VPhysicalVolume *)GDMLProcessor::GetInstance()->GetWorldVolume();

  //  fWorld->GetLogicalVolume()->SetVisAttributes (G4VisAttributes::Invisible);

  fWorld->GetLogicalVolume()->SetVisAttributes (G4VisAttributes(G4Colour(0.0,1.0,1.0)));


and this changed the color of the world Volume and this is what I would like to do with all of the rest of the volumes.

But then I tried this

G4VPhysicalVolume* gogdmlDetectorConstruction::Construct()

  G4String fCageName = "field_cageGeom132P";

  fCage =  (G4VPhysicalVolume *)GDMLProcessor::GetInstance()->GetPhysicalVolume(fCageName);



Where field_cageGeom132P is the name I have got using the commands you just have said, but it doesn't work. It gives some segmantation fault.

I think I do some mistakes in the instantiation the physical Volume and therefore it crashs.

Can somebody gives some hints?



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

1 None: Re: GDML   (Radovan Chytracek - 22 Feb, 2007)
(_ None: Re: GDML   (Francisco Garcia - 23 Feb, 2007)
(_ None: Re: GDML   ( - 23 Feb, 2007)
(_ None: Re: GDML   (Witek Pokorski - 23 Feb, 2007)
 Add Message Add Message
to: "Re: GDML"

 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 ]