Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -37,24 +37,40 @@
#include "tools/hdf5/ntuple"
#include <string_view>
class G4Hdf5RFileManager;
class G4Hdf5RNtupleManager : public G4TRNtupleManager<tools::hdf5::ntuple>
{
friend class G4Hdf5AnalysisReader;
protected:
public:
explicit G4Hdf5RNtupleManager(const G4AnalysisManagerState& state);
virtual ~G4Hdf5RNtupleManager();
G4Hdf5RNtupleManager() = delete;
virtual ~G4Hdf5RNtupleManager() = default;
private:
// Methods from the templated base class
//
// Set methods
void SetFileManager(std::shared_ptr<G4Hdf5RFileManager> fileManager);
// Methods from the base class
virtual G4int ReadNtupleImpl(const G4String& ntupleName, const G4String& fileName,
const G4String& dirName, G4bool isUserFileName) final;
virtual G4bool GetTNtupleRow(G4TRNtupleDescription<tools::hdf5::ntuple>* ntupleDescription) final;
};
// Static data members
static constexpr std::string_view fkClass { "G4Hdf5RNtupleManager" };
// Data members
std::shared_ptr<G4Hdf5RFileManager> fFileManager { nullptr };
};
// // inline functions
// inline G4int G4Hdf5RNtupleManager::GetNofNtuples() const
// { return fNtupleVector.size(); }
inline void
G4Hdf5RNtupleManager::SetFileManager(std::shared_ptr<G4Hdf5RFileManager> fileManager)
{ fFileManager = fileManager; }
#endif