G4AnalysisManager problem root

Hello.
I’m having trouble creating the root file.

I changed “g4root.hh” to “G4AnalysisManager.hh” and still I get this error.

please i’m stuck on this

_Geant4 Version: Geant4 11
_Operating System: Ubuntu 20.04

-Alejandro

Hello,

The error message complains about MyActioInitialization class; do you have #include "MyActionInitialization.hh" in your sim.cc ? Does your MyActioInitialization class derive from G4VUserActionInitialization ?

Best regards,

1 Like

Hello and thank you!!

I added #include “My Action Initialization.hh” in my sim.cc and it shows me an error about not finding the file.

This is my file where I declare MyActionInitialization:
action.hh (292 Bytes)

Hi !

Wrong call,

“action.hh” is your MyActionInitialization, therefore, you need to call action.hh i.e. #include action.hh in your sim.cc or main.cc

hope it works for you.
VRS

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