Message: Using UI command to change detector's position Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Using UI command to change detector's position 

Forum: Geometry
Date: 02 Aug, 2018
From: <mesonsoup>

I recently started learning GEANT4. I am following the B2 example given by the software provider. I was able to successfully create a detector messenger class and define my own UI commands such as SetDetectorMaterial(). This was possible because in my detectorconstruction.cc file, I simply defined this method and used logicVolume->SetMaterial(newMaterial). However, now I want to have a UI command which can change the position of the detector but there is no such method like SetPosition() or equivalent. Any hints on how to change detector's position by a UI command?

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

1 None: Re: Using UI command to change detector's position   (Makoto Asai - 02 Aug, 2018)
(_ News: Re: Using UI command to change detector's position   (mesonsoup - 03 Aug, 2018)
 Add Message Add Message
to: "Using UI command to change detector's position"

 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 ]