44 fH1RFileManager = std::make_shared<G4XmlHnRFileManager<histo::h1d>>(
this);
45 fH2RFileManager = std::make_shared<G4XmlHnRFileManager<histo::h2d>>(
this);
46 fH3RFileManager = std::make_shared<G4XmlHnRFileManager<histo::h3d>>(
this);
47 fP1RFileManager = std::make_shared<G4XmlHnRFileManager<histo::p1d>>(
this);
48 fP2RFileManager = std::make_shared<G4XmlHnRFileManager<histo::p2d>>(
this);
54 for (
auto& rfile : fRFiles ) {
69 G4bool isPerThread =
false;
77 if (fReadFactory ==
nullptr) {
78 fReadFactory =
new tools::xml::default_factory();
82 auto newFile =
new toolx::raxml(*fReadFactory,
G4cout, verbose);
86 std::vector<tools::raxml_out>& objs = newFile->objects();
90 if ( ! newFile->load_file(name, compressed) ) {
91 Warn(
G4String(
"Cannot open file ") + name, fkClass,
"OpenRFile");
97 auto it = fRFiles.find(name);
98 if ( it != fRFiles.end() ) {
100 it->second = newFile;
103 fRFiles[name] = newFile;
115 G4bool isPerThread =
false;
118 auto it = fRFiles.find(name);
119 if (it != fRFiles.end()) {
G4GLOB_DLL std::ostream G4cout
G4String GetFullFileName(const G4String &baseFileName="", G4bool isPerThread=true) const
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
std::shared_ptr< G4VTHnRFileManager< tools::histo::h2d > > fH2RFileManager
std::shared_ptr< G4VTHnRFileManager< tools::histo::p2d > > fP2RFileManager
std::shared_ptr< G4VTHnRFileManager< tools::histo::h3d > > fH3RFileManager
std::shared_ptr< G4VTHnRFileManager< tools::histo::p1d > > fP1RFileManager
std::shared_ptr< G4VTHnRFileManager< tools::histo::h1d > > fH1RFileManager
G4XmlRFileManager()=delete
virtual G4bool OpenRFile(const G4String &fileName)
~G4XmlRFileManager() override
toolx::raxml * GetRFile(const G4String &fileName) const
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)