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

None Re: G4TessellatedSolid 

Forum: Geometry
Re: Question G4TessellatedSolid (Amanda Leung)
Date: 18 Feb, 2010
From: John Apostolakis <John Apostolakis>

Dear Amanda,

The constructor you are using for G4LogicalVolume is correct.

G4LogicalVolume( G4VSolid*             pSolid,
                     G4Material*           pMaterial,
                     const G4String&       Name, ...

It seems that one of the parameters you are passing to it is not of  
the type expected.
Likely the material  'Ar' is not a pointer to a material  ?

Else maybe you did not include the G4LogicalVolume.hh header file ?

If neither of these suggestions help, please look a bit more and then  
post the compiler error that you get.

Best regards,
John

On Feb 18, 2010, at 12:37 AM, Amanda Leung wrote:

>
> *** Discussion title: Geometry
>
> I created a G4TessellatedSolid, but I am having trouble to place it  
> into
> a Logical Volume.
>
> First I used this function:
>
> G4LogicalVolume* experimentalHall_log
>    = new G4LogicalVolume(experimentalHall_box,Ar,"expHall_log");
>
> But it gives me an error.
>
> So I tried to use this example:
>
> G4LogicalVolume( G4VSolid*             pSolid,
>                     G4Material*           pMaterial,
>                     const G4String&       Name,
>                     G4FieldManager*       pFieldMgr=0,
>                     G4VSensitiveDetector* pSDetector=0,
>                     G4UserLimits*         pULimits=0,
>                     G4bool                Optimise=true )
>
> Should I use the second one instead?
>
> Therefore, I want to ask how can I add material onto  
> G4TessellatedSolid?
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply  
> or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1019.html

 Add Message Add Message
to: "Re: G4TessellatedSolid"

 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 ]