R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::SteerWriter Class Reference

#include <SteerWriter.h>

Public Types

enum class  Method : uint8_t {
  inversion , diagonalization , fullGMRES , sparseGMRES ,
  cholesky , bandcholesky , HIP
}

Public Member Functions

 SteerWriter ()=default
void set_filepath (std::string_view filepath)
void set_data_filepath (std::string_view filepath)
void set_parameter_file (std::string_view filename)
void set_working_dir (std::string_view dir)
void add_parameter_default (int par_num, const std::pair< float, float > &values)
void add_method (Method method, const std::pair< float, float > &values)
void add_other_options (std::vector< std::string > options)
void write ()

Private Member Functions

void write_parameter_defaults ()
void write_data_file (std::ofstream &ofile)
void write_methods (std::ofstream &ofile)
void write_others (std::ofstream &ofile)

Private Attributes

std::map< Method, std::pair< float, float > > methods_
std::string filepath_ = DEFAULT_STEER_FILENAME
std::string parameter_file_ = DEFAULT_MILLEPEDE_PARAMETER_FILE
std::string data_filepath_ = DEFAULT_DATA_FILENAME
std::unordered_map< int, std::pair< float, float > > parameter_defaults_
std::vector< std::vector< std::string > > other_options_
std::string working_dir_ = "."

Detailed Description

Definition at line 33 of file SteerWriter.h.

Member Enumeration Documentation

◆ Method

enum class R3B::SteerWriter::Method : uint8_t
strong
Enumerator
inversion 
diagonalization 
fullGMRES 
sparseGMRES 
cholesky 
bandcholesky 
HIP 

Definition at line 36 of file SteerWriter.h.

Constructor & Destructor Documentation

◆ SteerWriter()

R3B::SteerWriter::SteerWriter ( )
default

Member Function Documentation

◆ add_method()

void R3B::SteerWriter::add_method ( Method method,
const std::pair< float, float > & values )

Definition at line 38 of file SteerWriter.cxx.

◆ add_other_options()

void R3B::SteerWriter::add_other_options ( std::vector< std::string > options)

Definition at line 47 of file SteerWriter.cxx.

◆ add_parameter_default()

void R3B::SteerWriter::add_parameter_default ( int par_num,
const std::pair< float, float > & values )

Definition at line 28 of file SteerWriter.cxx.

◆ set_data_filepath()

void R3B::SteerWriter::set_data_filepath ( std::string_view filepath)
inline

Definition at line 49 of file SteerWriter.h.

◆ set_filepath()

void R3B::SteerWriter::set_filepath ( std::string_view filepath)
inline

Definition at line 48 of file SteerWriter.h.

◆ set_parameter_file()

void R3B::SteerWriter::set_parameter_file ( std::string_view filename)
inline

Definition at line 50 of file SteerWriter.h.

◆ set_working_dir()

void R3B::SteerWriter::set_working_dir ( std::string_view dir)
inline

Definition at line 51 of file SteerWriter.h.

◆ write()

void R3B::SteerWriter::write ( )

Definition at line 52 of file SteerWriter.cxx.

◆ write_data_file()

void R3B::SteerWriter::write_data_file ( std::ofstream & ofile)
private

Definition at line 69 of file SteerWriter.cxx.

◆ write_methods()

void R3B::SteerWriter::write_methods ( std::ofstream & ofile)
private

Definition at line 94 of file SteerWriter.cxx.

◆ write_others()

void R3B::SteerWriter::write_others ( std::ofstream & ofile)
private

Definition at line 103 of file SteerWriter.cxx.

◆ write_parameter_defaults()

void R3B::SteerWriter::write_parameter_defaults ( )
private

Definition at line 77 of file SteerWriter.cxx.

Member Data Documentation

◆ data_filepath_

std::string R3B::SteerWriter::data_filepath_ = DEFAULT_DATA_FILENAME
private

Definition at line 63 of file SteerWriter.h.

◆ filepath_

std::string R3B::SteerWriter::filepath_ = DEFAULT_STEER_FILENAME
private

Definition at line 61 of file SteerWriter.h.

◆ methods_

std::map<Method, std::pair<float, float> > R3B::SteerWriter::methods_
private

Definition at line 60 of file SteerWriter.h.

◆ other_options_

std::vector<std::vector<std::string> > R3B::SteerWriter::other_options_
private

Definition at line 65 of file SteerWriter.h.

◆ parameter_defaults_

std::unordered_map<int, std::pair<float, float> > R3B::SteerWriter::parameter_defaults_
private

Definition at line 64 of file SteerWriter.h.

◆ parameter_file_

std::string R3B::SteerWriter::parameter_file_ = DEFAULT_MILLEPEDE_PARAMETER_FILE
private

Definition at line 62 of file SteerWriter.h.

◆ working_dir_

std::string R3B::SteerWriter::working_dir_ = "."
private

Definition at line 66 of file SteerWriter.h.


The documentation for this class was generated from the following files: