39 using namespace G4Analysis;
47 if ( fgInstance ==
nullptr ) {
58 fNtupleManager(nullptr),
65 <<
"G4Hdf5AnalysisReader already exists."
66 <<
"Cannot create another instance.";
67 G4Exception(
"G4Hdf5AnalysisReader::G4Hdf5AnalysisReader()",
98 auto finalResult =
true;
101 finalResult = finalResult &&
result;
104 finalResult = finalResult &&
result;
124 auto h1 = ReadHnImpl<tools::histo::h1d>(h1Name, fileName, dirName);
149 auto h2 = ReadHnImpl<tools::histo::h2d>(h2Name, fileName, dirName);
175 auto h3 = ReadHnImpl<tools::histo::h3d>(h3Name, fileName, dirName);
200 auto p1 = ReadPnImpl<tools::histo::p1d>(p1Name, fileName, dirName);
226 auto p2 = ReadPnImpl<tools::histo::p2d>(p2Name, fileName, dirName);
254 if ( ! isUserFileName ) {
G4Hdf5RNtupleManager * fNtupleManager
const G4AnalysisVerbose * GetVerboseL2() const
static G4Hdf5AnalysisReader * Instance()
std::ostringstream G4ExceptionDescription
G4AnalysisManagerState fState
static G4Hdf5AnalysisReader * fgMasterInstance
virtual G4int ReadNtupleImpl(const G4String &ntupleName, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
virtual ~G4Hdf5AnalysisReader()
void SetNtupleManager(G4VRNtupleManager *ntupleManager)
void SetFileManager(G4BaseFileManager *fileManager)
G4Hdf5RFileManager * fFileManager
hid_t GetNtupleRDirectory(const G4String &fileName, const G4String &dirName, G4bool isPerThread)
virtual G4int ReadP2Impl(const G4String &p2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
static G4ThreadLocal G4Hdf5AnalysisReader * fgInstance
const G4AnalysisVerbose * GetVerboseL4() const
virtual G4int ReadH1Impl(const G4String &h1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
G4double G4ParticleHPJENDLHEData::G4double result
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4int SetNtuple(G4TRNtupleDescription< TNTUPLE > *rntupleDescription)
virtual G4int ReadH2Impl(const G4String &h2Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
virtual G4int ReadP1Impl(const G4String &p1Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final
void Message(const G4String &action, const G4String &object, const G4String &objectName, G4bool success=true) const
G4GLOB_DLL std::ostream G4cout
G4bool GetIsMaster() const
G4Hdf5AnalysisReader(G4bool isMaster=true)
virtual G4int ReadH3Impl(const G4String &h3Name, const G4String &fileName, const G4String &dirName, G4bool isUserFileName) final