Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -34,6 +34,8 @@
#include "G4AnalysisManagerState.hh"
#include "globals.hh"
#include <vector>
class G4BaseFileManager
{
public:
@@ -42,17 +44,22 @@ class G4BaseFileManager
virtual G4bool SetFileName(const G4String& fileName);
// Set the base file name (without extension)
// If the current file name is already in use
// setting is not performed and false is returned
virtual G4String GetFileType() const;
// Return the manager type (starts with a lowercase letter)
void AddFileName(const G4String& fileName);
// For handling multiple files
// Save file name in a vector if not yet present
G4String GetFileName() const;
// Return the base file name (without extension)
G4String GetFullFileName(const G4String& baseFileName = "",
G4bool isPerThread = true) const;
// Compose and return the full file name:
// - add _tN suffix to the file base name if isPerThread
// - add file extension if not present
// - add file extension if not present and available in state
const std::vector<G4String>& GetFileNames() const;
// Return the file names vector
G4String GetHnFileName(const G4String& hnType,
const G4String& hnName) const;
@@ -74,26 +81,25 @@ class G4BaseFileManager
G4String GetPlotFileName() const;
// Return the file name for batch plotting output
G4String GetFileType() const;
// Return the manager file type (starts with a lowercase letter)
protected:
// utility function
G4String TakeOffExtension(G4String& name) const;
// data members
const G4AnalysisManagerState& fState;
G4String fFileName;
G4String fFileName; // to be changed in fDefaultFileName
std::vector<G4String> fFileNames;
};
inline G4bool G4BaseFileManager::SetFileName(const G4String& fileName) {
// CHECK if still needed in this base class
fFileName = fileName;
return true;
}
inline G4String G4BaseFileManager::GetFileName() const {
return fFileName;
}
#endif
}
inline const std::vector<G4String>& G4BaseFileManager::GetFileNames() const {
return fFileNames;
}
#endif