A wrong in the scoring mesh

I defined a box-mesh in .mac document, which contain a BoxMesh. I want to record the flatSurfaceCurrent(x-axis wtih Ek in MeV & y-axis wtih weighted current) , so i write the following code:

/score/quantity/flatSurfaceCurrent SurfaceCurrent
/score/filter/particle gammaFilter gamma
/analysis/h1/create SurfaceCurrent Box_SurfaceCurrent 1 1 662. keV ! log
/score/fill1D 1 boxMesh_1 SurfaceCurrent

A error is coming like this :
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
Mesh <boxMesh_1> is not real-world logical volume or probe.
Error code : 1

anyone could tell me what wrong was happend?

maybe boxMesh_1 is not the name of your mesh? you did not show how you create the mesh, that could be valuable information to help :slight_smile:

Thank you for you attention, i add the code which define a box like i was described:

define scoring mesh

/score/create/boxMesh boxMesh_1
/score/mesh/boxSize 10 10 1 cm
/score/mesh/translate/xyz 0. -55. 210. cm
/score/mesh/nBin 10 10 1

looks like this is not (yet) possible:

This ifilling 1-D histogram functionality is not available for mesh scorer due to memory consumption concern. The list of primitive scorers available for 1-D histogram can be found at Table 8.


Thank you again, i didn’t mention it when reading this sentence.I will use a probe to recording the flatSurfaceCurrent.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.