Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
ParamBlockLoader Class Reference

Loader class to populate a BlockAccessor from a source file. More...

#include <ParamBlockLoader.h>

Inheritance diagram for ParamBlockLoader:
Collaboration diagram for ParamBlockLoader:

Public Member Functions

void load (std::shared_ptr< BlockAccessor > dest, fs::path src_file, bool block_in_blocks=false) override
 Loads parameter blocks from a file into the given BlockAccessor.
 
void add_lha_prototype (BlockName blockName, size_t itemCount=2, size_t valueIdx=1, int scaleIdx=-1, int rgIdx=-1, int binIdx=-1, bool globalScale=false) override
 Registers an additional LHA prototype to apply before parsing LHA files.
 
void add_lha_prototypes (const std::vector< LhaPrototypeSpec > &prototypes) override
 Registers several additional LHA prototypes.
 
- Public Member Functions inherited from IDataLoader< BlockAccessor >
virtual ~IDataLoader ()=default
 Virtual destructor.
 
- Public Member Functions inherited from ILhaPrototypeRegistry
virtual ~ILhaPrototypeRegistry ()=default
 

Detailed Description

Loader class to populate a BlockAccessor from a source file.

Definition at line 24 of file ParamBlockLoader.h.

Member Function Documentation

◆ add_lha_prototype()

void ParamBlockLoader::add_lha_prototype ( BlockName  blockName,
size_t  itemCount = 2,
size_t  valueIdx = 1,
int  scaleIdx = -1,
int  rgIdx = -1,
int  binIdx = -1,
bool  globalScale = false 
)
overridevirtual

Registers an additional LHA prototype to apply before parsing LHA files.

Implements ILhaPrototypeRegistry.

Definition at line 23 of file ParamBlockLoader.cpp.

◆ add_lha_prototypes()

void ParamBlockLoader::add_lha_prototypes ( const std::vector< LhaPrototypeSpec > &  prototypes)
overridevirtual

Registers several additional LHA prototypes.

Reimplemented from ILhaPrototypeRegistry.

Definition at line 34 of file ParamBlockLoader.cpp.

◆ load()

void ParamBlockLoader::load ( std::shared_ptr< BlockAccessor dest,
fs::path  src_file,
bool  block_in_blocks = false 
)
overridevirtual

Loads parameter blocks from a file into the given BlockAccessor.

Parameters
destShared pointer to destination BlockAccessor.
src_filePath to the source file.

Implements IDataLoader< BlockAccessor >.

Definition at line 65 of file ParamBlockLoader.cpp.


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