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

Question Customize scorer and messenger 

Forum: Biasing and Scoring
Date: 28 Jun, 2016
From: Klas Marcks <Klas Marcks>

I have problems implementing a scorer and a messenger for the scorer. I use Geant4 10.00 under windows 8 and I use Visual Studio 10.

Although it I guess it should be possible to do it simpler, I have done the following:

I Implemented my own MyOwnRunManager class inheriting from G4RunManager and overrode the methods ContructScoringWorld and UpdateScoring so that they use MyOwnScoringManager and not G4ScoringManager.

Implemented MyOwnScoringManager with the members MyOwnScoringMessenger and MyOwnScoreQuantityMessenger. These are almost identical to their G4 counterparts.

In MyOwnScoreQuantityMessenger I substitute the G04PSFlatSurfaceFlux3D class with MyOwnPSFlatSurfaceFlux3D class which scores the flux of each side of a box.

I have also implemented MyOwnScoringBox since the G4ScoringBox calls methods of the G4ScoringManager.

My code compiles but when I run it, I get some strange warnings. Also, only zeroes are scored in the mesh that I set up from my macro-file.

The warning(s) look like

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : GeomNav1002
      issued by : G4Navigator::ComputeStep()
Accuracy error or slightly inaccurate position shift.
     The Step's starting point has moved 149.712 mm 
     since the last call to a Locate method.
     This has resulted in moving 2.23129 mm  from the last point at which the safety      was calculated 
     which is more than the computed safety= 0 mm  at that point.
     This difference is 2.23129 mm.
     The tolerated accuracy is 1e-006 mm. 

*** This is just a warning message. *** -------- WWWW -------- G4Exception-END --------- WWWW -------

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : GeomNav1002
      issued by : G4Navigator::ComputeStep()
May lead to a crash or unreliable results.
        Position has shifted considerably without notifying the navigator !
        Tolerated safety: 1e-006
        Computed shift  : 4.97866
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

When I run my example using the G4RunManager and the corresponding call G4ScoringManager::GetScoringManager(); after creating the G4RunManager the example runs without problem.

Does any one have any idea of whats going on and how to fix it or any suggestions of alternative methods to go about?

Thanks

Klas

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

1 None: Re: Customize scorer and messenger   (Makoto Asai - 28 Jun, 2016)
(_ Question: Re: Customize scorer and messenger   (Klas Marcks - 28 Jun, 2016)
(_ None: Re: Customize scorer and messenger   (Makoto Asai - 28 Jun, 2016)
(_ Ok: Re: Customize scorer and messenger   (Klas Marcks - 29 Jun, 2016)
 Add Message Add Message
to: "Customize scorer and messenger"

 Subscribe Subscribe

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