Hyperiso
1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
ILhaPrototypeRegistry.h
Go to the documentation of this file.
1
#ifndef ILHA_PROTOTYPE_REGISTRY_H
2
#define ILHA_PROTOTYPE_REGISTRY_H
3
4
#include <cstddef>
5
#include <vector>
6
7
#include "
Include.h
"
8
12
struct
LhaPrototypeSpec
{
13
BlockName
blockName
;
14
size_t
itemCount
= 2;
15
size_t
valueIdx
= 1;
16
int
scaleIdx
= -1;
17
int
rgIdx
= -1;
18
int
binIdx
= -1;
19
bool
globalScale
=
false
;
20
};
21
29
class
ILhaPrototypeRegistry
{
30
public
:
31
virtual
~ILhaPrototypeRegistry
() =
default
;
32
33
virtual
void
add_lha_prototype
(
BlockName
blockName,
34
size_t
itemCount = 2,
35
size_t
valueIdx = 1,
36
int
scaleIdx = -1,
37
int
rgIdx = -1,
38
int
binIdx = -1,
39
bool
globalScale =
false
) = 0;
40
41
virtual
void
add_lha_prototypes
(
const
std::vector<LhaPrototypeSpec>& prototypes)
42
{
43
for
(
const
auto
& prototype : prototypes) {
44
add_lha_prototype
(prototype.blockName,
45
prototype.itemCount,
46
prototype.valueIdx,
47
prototype.scaleIdx,
48
prototype.rgIdx,
49
prototype.binIdx,
50
prototype.globalScale);
51
}
52
}
53
};
54
55
#endif
// ILHA_PROTOTYPE_REGISTRY_H
Include.h
BlockName
Block identifier with alias support.
Definition
BlockName.h:59
ILhaPrototypeRegistry
Port used by the domain to register LHA parser prototypes.
Definition
ILhaPrototypeRegistry.h:29
ILhaPrototypeRegistry::add_lha_prototype
virtual 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)=0
ILhaPrototypeRegistry::add_lha_prototypes
virtual void add_lha_prototypes(const std::vector< LhaPrototypeSpec > &prototypes)
Definition
ILhaPrototypeRegistry.h:41
ILhaPrototypeRegistry::~ILhaPrototypeRegistry
virtual ~ILhaPrototypeRegistry()=default
LhaPrototypeSpec
Value object describing an additional LHA block prototype.
Definition
ILhaPrototypeRegistry.h:12
LhaPrototypeSpec::rgIdx
int rgIdx
Definition
ILhaPrototypeRegistry.h:17
LhaPrototypeSpec::itemCount
size_t itemCount
Definition
ILhaPrototypeRegistry.h:14
LhaPrototypeSpec::binIdx
int binIdx
Definition
ILhaPrototypeRegistry.h:18
LhaPrototypeSpec::blockName
BlockName blockName
Definition
ILhaPrototypeRegistry.h:13
LhaPrototypeSpec::globalScale
bool globalScale
Definition
ILhaPrototypeRegistry.h:19
LhaPrototypeSpec::valueIdx
size_t valueIdx
Definition
ILhaPrototypeRegistry.h:15
LhaPrototypeSpec::scaleIdx
int scaleIdx
Definition
ILhaPrototypeRegistry.h:16
Hyperiso
core
src
Core
ports
ILhaPrototypeRegistry.h
Generated by
1.9.8