Message: Re: Customize scorer and messenger Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Customize scorer and messenger 

Forum: Biasing and Scoring
Re: Question Customize scorer and messenger (Klas Marcks)
Re: None Re: Customize scorer and messenger (Makoto Asai)
Re: Question Re: Customize scorer and messenger (Klas Marcks)
Date: 28 Jun, 2016
From: Makoto Asai <Makoto Asai>

Hi,

Once your messenger instantiates UI commands for your scorer, these commands are automatically available through G4UImanager. In the SetNewValue() method of your messenger class, you firstly have to get the pointer to the "current" mesh, and then instantiate your scorer and assign it to the current mesh. You may refer to this code as a template.

http://www-geant4.kek.jp/lxr/source/digits_hits/utils/src/G4ScoreQuantityMessenger.cc#L215

Makoto

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

1 Ok: Re: Customize scorer and messenger   (Klas Marcks - 29 Jun, 2016)
 Add Message Add Message
to: "Re: Customize scorer and messenger"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews