42 fH1RFileManager = std::make_shared<G4CsvHnRFileManager<histo::h1d>>(
this);
43 fH2RFileManager = std::make_shared<G4CsvHnRFileManager<histo::h2d>>(
this);
44 fH3RFileManager = std::make_shared<G4CsvHnRFileManager<histo::h3d>>(
this);
45 fP1RFileManager = std::make_shared<G4CsvHnRFileManager<histo::p1d>>(
this);
46 fP2RFileManager = std::make_shared<G4CsvHnRFileManager<histo::p2d>>(
this);
52 for (
auto& rfile : fRFiles ) {
64 Message(
kVL4,
"open",
"read analysis file", fileName);
67 auto newFile =
new std::ifstream(fileName);
68 if ( ! newFile->is_open() ) {
69 Warn(
"Cannot open file " + fileName, fkClass,
"OpenRFile");
74 auto it = fRFiles.find(fileName);
75 if ( it != fRFiles.end() ) {
80 fRFiles[fileName] = newFile;
83 Message(
kVL1,
"open",
"read analysis file", fileName);
91 auto it = fRFiles.find(fileName);
92 if (it != fRFiles.end()) {
void Message(G4int level, const G4String &action, const G4String &objectType, const G4String &objectName="", G4bool success=true) const
~G4CsvRFileManager() override
std::ifstream * GetRFile(const G4String &fileName) const
virtual G4bool OpenRFile(const G4String &fileName)
G4CsvRFileManager()=delete
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
void Warn(const G4String &message, const std::string_view inClass, const std::string_view inFunction)