Error in mesh grid

Hello everyone.
I’m trying to create voxels in my geometry. I tried the following lines of code in macro file :

/score/create/boxMesh boxMesh
/score/mesh/boxSize 0.46875 0.46875 0.46875 mm
/score/mesh/nBin 25 25 25
/score/quantity/doseDeposit DP
/run/beamOn 10
/score/dumpQuantityToFile boxMesh DP KernelSir.csv

#/run/numberOfThreads 4

#/run/beamOn 1
#/vis/sceneHandler/create VRML1FILE

but when I try to run I have this error :

→ G4MTRunManager::CreateAndStartWorkers() → Initializing workers…

***** COMMAND NOT FOUND </score/create/boxMesh boxMesh> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
Command aborted (100)
Error code : 100
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

and I don’t understand.

Can you help me please?

I’m new to Geant4 and I don’t know much.

Thank you

did you initialized G4ScoringManager::GetScoringManager(); in your main?

I didn’t know I had to initialize G4ScoringManager, I just did it and it works.

Thank you for your help.

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