37using std::make_shared;
51 fNtupleManager = std::make_shared<G4XmlNtupleManager>(
fState);
52 fNtupleManager->SetFileManager(fFileManager);
54 return fNtupleManager;
62 fNtupleManager->CreateNtuplesFromBooking(
71 auto ntupleVector = fNtupleManager->GetNtupleDescriptionVector();
73 for (
auto ntupleDescription : ntupleVector ) {
74 if (ntupleDescription->GetNtuple() !=
nullptr) {
75 ntupleDescription->GetNtuple()->write_trailer();
88 auto ntupleVector = fNtupleManager->GetNtupleDescriptionVector();
89 for (
auto ntupleDescription : ntupleVector) {
90 result &= fFileManager->CloseNtupleFile(ntupleDescription);
101 return fNtupleManager->Reset();
std::shared_ptr< G4NtupleBookingManager > fBookingManager
const G4AnalysisManagerState & fState
G4bool ActionAtOpenFile(const G4String &fileName) override
G4bool ActionAtWrite() override
std::shared_ptr< G4VNtupleManager > CreateNtupleManager() override
G4XmlNtupleFileManager()=delete
G4bool ActionAtCloseFile() override