31#ifndef G4VFileManager_h
32#define G4VFileManager_h 1
90 template <
typename HT>
95 static constexpr std::string_view
fkClass {
"G4VFileManager" };
104 std::shared_ptr<G4VTHnFileManager<tools::histo::h1d>>
fH1FileManager {
nullptr };
105 std::shared_ptr<G4VTHnFileManager<tools::histo::h2d>>
fH2FileManager {
nullptr };
106 std::shared_ptr<G4VTHnFileManager<tools::histo::h3d>>
fH3FileManager {
nullptr };
107 std::shared_ptr<G4VTHnFileManager<tools::histo::p1d>>
fP1FileManager {
nullptr };
108 std::shared_ptr<G4VTHnFileManager<tools::histo::p2d>>
fP2FileManager {
nullptr };
133std::shared_ptr<G4VTHnFileManager<tools::histo::h1d>>
134G4VFileManager::GetHnFileManager<tools::histo::h1d>()
const
135{
return fH1FileManager; }
139std::shared_ptr<G4VTHnFileManager<tools::histo::h2d>>
140G4VFileManager::GetHnFileManager<tools::histo::h2d>()
const
141{
return fH2FileManager; }
145std::shared_ptr<G4VTHnFileManager<tools::histo::h3d>>
146G4VFileManager::GetHnFileManager<tools::histo::h3d>()
const
147{
return fH3FileManager; }
151std::shared_ptr<G4VTHnFileManager<tools::histo::p1d>>
152G4VFileManager::GetHnFileManager<tools::histo::p1d>()
const
153{
return fP1FileManager; }
157std::shared_ptr<G4VTHnFileManager<tools::histo::p2d>>
158G4VFileManager::GetHnFileManager<tools::histo::p2d>()
const
159{
return fP2FileManager; }
const G4AnalysisManagerState & fState
virtual G4bool SetIsEmpty(const G4String &fileName, G4bool isEmpty)=0
virtual G4bool CloseFile(const G4String &fileName)=0
G4String GetNtupleDirectoryName() const
virtual G4bool WriteFile(const G4String &fileName)=0
std::shared_ptr< G4VTHnFileManager< tools::histo::h3d > > fH3FileManager
~G4VFileManager() override=default
G4String GetHistoDirectoryName() const
virtual G4bool SetHistoDirectoryName(const G4String &dirName)
std::shared_ptr< G4VTHnFileManager< tools::histo::h1d > > fH1FileManager
std::shared_ptr< G4VTHnFileManager< tools::histo::p1d > > fP1FileManager
G4bool IsOpenFile() const
G4String fNtupleDirectoryName
std::shared_ptr< G4VTHnFileManager< HT > > GetHnFileManager() const
std::shared_ptr< G4VTHnFileManager< tools::histo::p2d > > fP2FileManager
G4bool fLockDirectoryNames
G4bool SetFileName(const G4String &fileName) final
virtual G4bool CloseFiles()=0
virtual G4bool SetNtupleDirectoryName(const G4String &dirName)
void LockDirectoryNames()
virtual G4bool OpenFile(const G4String &fileName)=0
std::shared_ptr< G4VTHnFileManager< tools::histo::h2d > > fH2FileManager
virtual G4bool OpenFiles()=0
virtual G4bool DeleteEmptyFiles()=0
virtual G4bool CreateFile(const G4String &fileName)=0
G4String fHistoDirectoryName
void UnlockDirectoryNames()
virtual G4bool WriteFiles()=0
static constexpr std::string_view fkClass