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

Feedback Re: G4VNestedParameterisation::ComputeMaterial() 

Forum: Geometry
Re: Question G4VNestedParameterisation::ComputeMaterial() (Aram Teymurazyan)
Date: 28 Apr, 2010
From: John Apostolakis <John Apostolakis>

As you deduce, and the compiler is suggesting, you need to define only one method in your class which derives from G4VNestedParameterisation.

Only the first method is needed: 
  virtual G4Material* ComputeMaterial(G4VPhysicalVolume* currentVol,
                                        const G4int repNo, 
                                        const G4VTouchable* parentTouch=0) = 0;

The second method is used to call this method which you define, giving it the full information which it requires.

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

1 Question: Re: G4VNestedParameterisation::ComputeMaterial()   (Aram Teymurazyan - 28 Apr, 2010)
 Add Message Add Message
to: "Re: G4VNestedParameterisation::ComputeMaterial()"

 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 ]