25 void open(std::string_view file_name, std::string_view file_option);
26 void open(
const std::vector<std::string>& filenames, std::string_view file_option =
"read");
27 void open(std::unique_ptr<TFile> root_file);
53 static auto Input() {
return std::make_unique<ParRootFileIo>(
true); }
60 static auto Output() {
return std::make_unique<ParRootFileIo>(
false); }
73 void readVersions(FairRtdbRun* current_par_run)
override;
74 auto check() ->
bool override;
75 void close()
override;
ParRootFileIo(ParRootFileIo &&)=delete
static auto Output()
Factory method to create an instance for parameter output.
auto check() -> bool override
~ParRootFileIo() override
auto get_first_root_file() -> auto *
bool read_parameter(FairParSet *par)
Read a parameter from the input root file.
std::vector< std::unique_ptr< TFile > > root_files_
void open(std::string_view file_name, std::string_view file_option)
auto read_parameter_from_run(FairParSet *par, bool is_ignored) -> bool
ParRootFileIo(const ParRootFileIo &)=delete
ClassDefOverride(ParRootFileIo, 1)
ParRootFileIo & operator=(ParRootFileIo &&)=delete
void readVersions(FairRtdbRun *current_par_run) override
static auto Input()
Factory method to create an instance for parameter input.
int write_parameter(FairParSet *par)
Write the parameter to the output root file.
ParRootFileIo & operator=(const ParRootFileIo &)=delete
ParRootFileIo(bool is_input)