Class MHO_AFileInfoExtractor.
More...
#include <MHO_AFileInfoExtractor.hh>
Class MHO_AFileInfoExtractor.
extract useful inpformation from .cor, .frng. and root files for afile generation
- Author
- Email:
- Date
- Wed Sep 20 16:12:23 2023 -0400
◆ MHO_AFileInfoExtractor()
| hops::MHO_AFileInfoExtractor::MHO_AFileInfoExtractor |
( |
| ) |
|
|
inline |
◆ ~MHO_AFileInfoExtractor()
| virtual hops::MHO_AFileInfoExtractor::~MHO_AFileInfoExtractor |
( |
| ) |
|
|
inlinevirtual |
◆ ConvertToAlistRow()
| std::string hops::MHO_AFileInfoExtractor::ConvertToAlistRow |
( |
const mho_json & |
data, |
|
|
int |
version |
|
) |
| |
Converts mho_json data to alist row string for versions 5 or 6.
- Parameters
-
| data | Input mho_json data object |
| version | ALIST format version (5 or 6) |
- Returns
- Generated ALIST row string
◆ ConvertToString()
template<typename XValueType >
| std::string hops::MHO_AFileInfoExtractor::ConvertToString |
( |
XValueType |
value, |
|
|
const std::string & |
pformat |
|
) |
| |
|
inlineprotected |
Converts a value to string using specified format or default precision.
- Parameters
-
| value | Input value of type XValueType |
| pformat | Optional format string for value conversion |
- Returns
- String representation of the input value
◆ DetermineParameterType()
| par_type hops::MHO_AFileInfoExtractor::DetermineParameterType |
( |
std::string |
etype | ) |
|
|
protected |
Determines parameter type based on input string.
- Parameters
-
| etype | Input string representing parameter type. |
- Returns
- par_type enum value corresponding to the determined parameter type.
◆ GetAlistHeader()
| std::string hops::MHO_AFileInfoExtractor::GetAlistHeader |
( |
int |
version, |
|
|
int |
type, |
|
|
char |
comment_char |
|
) |
| |
Getter for alist header (row text)
- Parameters
-
| version | Version number for which to retrieve the header |
| type | Type of header to retrieve |
| comment_char | Comment character used in the header |
- Returns
- Alist header as a string
◆ RetrieveParameter()
| void hops::MHO_AFileInfoExtractor::RetrieveParameter |
( |
mho_json & |
obj, |
|
|
const std::string & |
name, |
|
|
const MHO_ParameterStore & |
paramStore, |
|
|
const std::string & |
path, |
|
|
const std::string & |
type |
|
) |
| |
|
protected |
Retrieves a parameter from the store and populates it into a json object.
- Parameters
-
| obj | Reference to an mho_json object where the retrieved parameter will be stored |
| name | Name of the parameter to retrieve |
| paramStore | Constant reference to the MHO_ParameterStore containing the parameters |
| path | Path to the parameter in the store |
| type | Type of the parameter |
◆ RetrieveParameterAsString()
| std::string hops::MHO_AFileInfoExtractor::RetrieveParameterAsString |
( |
const mho_json & |
obj, |
|
|
const std::string & |
name, |
|
|
const std::string & |
type, |
|
|
const std::string & |
pformat |
|
) |
| |
|
protected |
Retrieve and convert a parameter from a json object to string based on its type.
- Parameters
-
| obj | Input json object containing the parameter |
| name | Name of the parameter to retrieve |
| type | Type of the parameter (int, int64, double, string, bool) |
| pformat | Format for converting numeric types to string |
- Returns
- Parameter value as a string in specified format
◆ SummarizeFringeFile()
| bool hops::MHO_AFileInfoExtractor::SummarizeFringeFile |
( |
std::string |
filename, |
|
|
mho_json & |
fsum |
|
) |
| |
Summarizes a fringe file and populates the json object fsum with its data.
- Parameters
-
| filename | The path to the fringe file to summarize. |
| fsum | (mho_json&) |
- Returns
- True if the file is successfully summarized, false otherwise.
The documentation for this class was generated from the following files: