Message: Re: Is there any example to show how to use nested parameterization class Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Is there any example to show how to use nested parameterization class 

Keywords: Nested parameterization example code
Forum: Medical Applications
Re: None Is there any example to show how to use nested parameterization class (Xiaoning Ding)
Re: None Re: Is there any example to show how to use nested parameterization class (Makoto Asai)
Re: None Re: Is there any example to show how to use nested parameterization class (Xiaoning Ding)
Date: 23 Aug, 2006
From: Xiaoning Ding <xiaoningding@yahoo.com>

I found the answer for my 2nd question. The visulization can be turned on by adding following lines in main(int argc,char** argv):

#include "G4VisExecutive.hh"

... int main(int argc,char** argv) {

...
 #ifdef G4VIS_USE
  // visualisation manager
  G4VisManager* visManager = new G4VisExecutive;
  visManager->Initialize();
#endif
...

#ifdef G4VIS_USE
  delete visManager;
#endif

}

However, the phantom is not displayed correctly.  I debuged the source code.  It seems to me that the problem is the argument parentTouch passed in the method ComputeMaterial(...) of G4VNestedParameterisation is NULL.  Therefore, there is no way to trace the parent ids (ix and iy).
 

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

1 None: Re: Is there any example to show how to use nested parameterization class   (Vagner Cassola - 08 Nov, 2006)
 Add Message Add Message
to: "Re: Is there any example to show how to use nested parameterization class"

 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 ]