Error segmentation fault histogram doesn't exist in modified example b5

I tried modifying the b5 example and changing several variables but when I ran the simulation no data appeared and there was an error. I tried changing the number of hodoscopes and drift chamber. The error “Hitogram doesn’t exist” appears but i’n not sure what to do. please help me.I attached the run code and events below

EventAction.cc (8.0 KB)
RunAction.cc (5.2 KB)

The error was like

Run 0 starts.

… set ntuple merging row mode : row-wise - done
… create file : B3.root - done
… open analysis file : B3.root - done
… create file : B3ntuple.root - done
… open main analysis file : B3.root - done
G4WT2 > /tracking/storeTrajectory 2
G4WT4 > /tracking/storeTrajectory 2
G4WT3 > /tracking/storeTrajectory 2
G4WT0 > /tracking/storeTrajectory 2
G4WT1 > /tracking/storeTrajectory 2

========================================================================================
→ G4TaskRunManager::CreateAndStartWorkers() → Creating 1 tasks with 1 events/task…

Adding task 0 to task-group…
G4WT4 > ### Run 0 starts on worker thread 4.
G4WT4 > … set ntuple merging row mode : row-wise - done
G4WT4 > → Event 0 starts with initial seeds (13049039,61775110).
G4WT4 > <> is not found.
G4WT4 > <> is not found.
G4WT4 >
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W001
issued by : G4THnManager::GetTId
histogram does not exist.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

G4WT4 >
G4WT4 > >>> Event 0 >>> Simulation truth : proton (0,0,-1090.08)
G4WT4 > Hodoscope 1 has 0 hits.
Segmentation fault (core dumped)