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 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_
 

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 37 of file SteerWriter.cxx.

◆ add_other_options()

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

Definition at line 46 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 27 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.

◆ write()

void R3B::SteerWriter::write ( )

Definition at line 51 of file SteerWriter.cxx.

◆ write_data_file()

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

Definition at line 67 of file SteerWriter.cxx.

◆ write_methods()

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

Definition at line 91 of file SteerWriter.cxx.

◆ write_others()

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

Definition at line 100 of file SteerWriter.cxx.

◆ write_parameter_defaults()

void R3B::SteerWriter::write_parameter_defaults ( )
private

Definition at line 75 of file SteerWriter.cxx.

Member Data Documentation

◆ data_filepath_

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

Definition at line 62 of file SteerWriter.h.

◆ filepath_

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

Definition at line 60 of file SteerWriter.h.

◆ methods_

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

Definition at line 59 of file SteerWriter.h.

◆ other_options_

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

Definition at line 64 of file SteerWriter.h.

◆ parameter_defaults_

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

Definition at line 63 of file SteerWriter.h.

◆ parameter_file_

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

Definition at line 61 of file SteerWriter.h.


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