Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
CorrelationAdapter.h
Go to the documentation of this file.
1#ifndef CORRELATIONCREATOR_H
2#define CORRELATIONCREATOR_H
3
4#include "Include.h"
5#include "ParameterRouter.h"
6#include "IDataLoader.h"
7#include "CorrelationRepo.h"
8#include "DBNode.h"
10
26template<typename T>
27class CorrelationLoader : public IDataLoader<CorrelationMatrixPair<T>> {
28public:
29
36 void load(std::shared_ptr<CorrelationMatrixPair<T>> dest, fs::path src_file, bool block_in_blocks=false) override;
37
38private:
45 static void emplace_correlation(std::shared_ptr<CorrelationMatrixPair<T>> corr_matrices, std::shared_ptr<DBNode> leaf);
46};
47
48#endif // CORRELATIONCREATOR_H
Factory for creating IDBNodeProvider instances from a file path.
Hierarchical key–value tree with JSON/YAML serialization.
Defines a generic interface for data loading operations.
Defines structures and classes for routing and categorizing parameter blocks.
Loader class to populate CorrelationMatrixPair from a file.
void load(std::shared_ptr< CorrelationMatrixPair< T > > dest, fs::path src_file, bool block_in_blocks=false) override
Loads correlation matrices from a source file into a destination CorrelationMatrixPair.
Abstract interface for loading data into an object.
Definition IDataLoader.h:60
Stores a pair of correlation matrices (statistical and systematic) for a given key type.