src/stepping.cc: In member function ‘virtual void MySteppingAction::UserSteppingAction(const G4Step*)’:
src/stepping.cc:18:10: error: ‘fScoringVolume’ was not declared in this scope
18 | if (!fScoringVolume) return;
| ^~~~~~~~~~~~~~
This is what is shown in the terminal after the run the code. I have defined fScoringVolume within MyDetectorConstruction class and included MyDetectorConstruction.hh in stepping.hh and still this error keeps showing.
Please help.