#include <G4XmlNtupleFileManager.hh>
Definition at line 45 of file G4XmlNtupleFileManager.hh.
◆ G4XmlNtupleFileManager() [1/2]
◆ G4XmlNtupleFileManager() [2/2]
G4XmlNtupleFileManager::G4XmlNtupleFileManager |
( |
| ) |
|
|
delete |
◆ ~G4XmlNtupleFileManager()
G4XmlNtupleFileManager::~G4XmlNtupleFileManager |
( |
| ) |
|
|
overridedefault |
◆ ActionAtCloseFile()
G4bool G4XmlNtupleFileManager::ActionAtCloseFile |
( |
| ) |
|
|
overridevirtual |
Implements G4VNtupleFileManager.
Definition at line 83 of file G4XmlNtupleFileManager.cc.
84{
85 auto result = true;
86
87
88 auto ntupleVector = fNtupleManager->GetNtupleDescriptionVector();
89 for ( auto ntupleDescription : ntupleVector) {
90 result &= fFileManager->CloseNtupleFile(ntupleDescription);
91 }
92
93 return result;
94}
◆ ActionAtOpenFile()
G4bool G4XmlNtupleFileManager::ActionAtOpenFile |
( |
const G4String & |
fileName | ) |
|
|
overridevirtual |
◆ ActionAtWrite()
G4bool G4XmlNtupleFileManager::ActionAtWrite |
( |
| ) |
|
|
overridevirtual |
Implements G4VNtupleFileManager.
Definition at line 69 of file G4XmlNtupleFileManager.cc.
70{
71 auto ntupleVector = fNtupleManager->GetNtupleDescriptionVector();
72
73 for ( auto ntupleDescription : ntupleVector ) {
74 if (ntupleDescription->GetNtuple() != nullptr) {
75 ntupleDescription->GetNtuple()->write_trailer();
76 }
77 }
78
79 return true;
80}
◆ CreateNtupleManager()
std::shared_ptr< G4VNtupleManager > G4XmlNtupleFileManager::CreateNtupleManager |
( |
| ) |
|
|
overridevirtual |
Implements G4VNtupleFileManager.
Definition at line 49 of file G4XmlNtupleFileManager.cc.
50{
51 fNtupleManager = std::make_shared<G4XmlNtupleManager>(
fState);
52 fNtupleManager->SetFileManager(fFileManager);
53
54 return fNtupleManager;
55}
const G4AnalysisManagerState & fState
◆ GetNtupleManager()
◆ Reset()
G4bool G4XmlNtupleFileManager::Reset |
( |
| ) |
|
|
overridevirtual |
◆ SetFileManager()
void G4XmlNtupleFileManager::SetFileManager |
( |
std::shared_ptr< G4XmlFileManager > |
fileManager | ) |
|
|
inline |
The documentation for this class was generated from the following files: