Import Geant4 11.0.0 source tree
This commit is contained in:
committed by
Ben Morgan
parent
6399a014b6
commit
80e2389dd8
@@ -40,7 +40,8 @@ class G4BaseFileManager
|
||||
{
|
||||
public:
|
||||
explicit G4BaseFileManager(const G4AnalysisManagerState& state);
|
||||
virtual ~G4BaseFileManager();
|
||||
G4BaseFileManager() = delete;
|
||||
virtual ~G4BaseFileManager() = default;
|
||||
|
||||
virtual G4bool SetFileName(const G4String& fileName);
|
||||
// Set the base file name (without extension)
|
||||
@@ -50,7 +51,7 @@ class G4BaseFileManager
|
||||
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 = "",
|
||||
@@ -61,7 +62,7 @@ class G4BaseFileManager
|
||||
const std::vector<G4String>& GetFileNames() const;
|
||||
// Return the file names vector
|
||||
|
||||
G4String GetHnFileName(const G4String& hnType,
|
||||
G4String GetHnFileName(const G4String& hnType,
|
||||
const G4String& hnName) const;
|
||||
// Compose and return the histogram or profile specific file name:
|
||||
// - add _hn_hnName suffix to the file base name
|
||||
@@ -72,17 +73,24 @@ class G4BaseFileManager
|
||||
// - add _nt_ntupleName suffix to the file base name
|
||||
// - add _tN suffix if called on thread worker
|
||||
// - add file extension if not present
|
||||
|
||||
|
||||
G4String GetNtupleFileName(G4int ntupleFileNumber) const;
|
||||
// Compose and return the ntuple specific file name:
|
||||
// - add _mN suffix to the file base name
|
||||
// - add _mN suffix to the file base name
|
||||
// - add file extension if not present
|
||||
|
||||
|
||||
G4String GetPlotFileName() const;
|
||||
// Return the file name for batch plotting output
|
||||
|
||||
protected:
|
||||
// data members
|
||||
// Methods for verbose
|
||||
void Message(G4int level,
|
||||
const G4String& action,
|
||||
const G4String& objectType,
|
||||
const G4String& objectName = "",
|
||||
G4bool success = true) const;
|
||||
|
||||
// Data members
|
||||
const G4AnalysisManagerState& fState;
|
||||
G4String fFileName; // to be changed in fDefaultFileName
|
||||
std::vector<G4String> fFileNames;
|
||||
@@ -92,7 +100,7 @@ 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;
|
||||
@@ -102,4 +110,11 @@ inline const std::vector<G4String>& G4BaseFileManager::GetFileNames() const {
|
||||
return fFileNames;
|
||||
}
|
||||
|
||||
inline void G4BaseFileManager::Message(
|
||||
G4int level, const G4String& action, const G4String& objectType,
|
||||
const G4String& objectName, G4bool success) const
|
||||
{
|
||||
fState.Message(level, action, objectType, objectName, success);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user