Dear all,
When I use the following code to fill tuples in G4SteppingAction, why is there a lot of zero data, these data are not what I want to fill, how to solve this problem?
looking at the documentation for FillNtupleDColumn, I am not sure if the way you call it does what you want:
G4bool G4RootNtupleManager::FillNtupleDColumn ( G4int ntupleId,
G4int columnId,
G4double value
)
ntupleId is 0, which is the first ntuple - should be fine eventID presumably can be a very large number, and this goes into the columnId in your code. Could it be that all columns before these events are filled with zeros? So at the end you get a single ntuple but a large number of columns. Instead, you want a large number of ntuples, with 1 column each, right?