7#include <unordered_set>
64 std::cout <<
"Creating CustomWilson: " << name << std::endl;
111 std::unordered_set<ParamId> sources,
135 std::shared_ptr<WilsonCoefficient>
clone()
const override {
136 return std::make_shared<CustomWilson>(*
this);
Domain objects representing Wilson coefficients and their matching metadata.
Concrete WilsonCoefficient whose matching rules are provided by the user.
CustomWilson & with_storage_block(std::string block)
Sets the storage block name (fluent API).
CustomWilson & set_order_info(QCDOrder order, std::unordered_set< ParamId > sources, std::function< scalar_t(const ParamSrc &)> compute, LhaID lhaid)
Defines sources and compute functor for a specific QCD order.
CustomWilson(const LhaID &name, const std::string &storage_block, ContributionType type=ContributionType::SM)
Constructs a custom Wilson coefficient.
CustomWilson & with_type(ContributionType t)
Sets the contribution type (fluent API).
std::shared_ptr< WilsonCoefficient > clone() const override
Polymorphic clone.
CustomWilson(WCoefId id, const std::string &storage_block, ContributionType type=ContributionType::SM)
Constructs a custom coefficient from a dynamic Wilson coefficient id.
static std::string str(const IdOf< WCoefTag > &id)
Returns the string representation of an identifier.
Lightweight view over a set of source parameters keyed by ParamId.
High-level mapper for WCoef <-> text <-> FLHA base indices.
static LhaID flha_full(WCoef e, QCDOrder q, ContributionType c)
Abstract base class representing a Wilson coefficient and its matching information.
LhaID id(QCDOrder order, ContributionType typ) const
Returns the LHA id for a given order and contribution type.
std::string coeffName
Domain name of the coefficient (may include suffixes like _THDM/_SUSY).
std::map< QCDOrder, MatchingInfo > matching_info
Matching metadata indexed by QCD order.
ContributionType type
Contribution type for this coefficient (SM by default, inferred in constructors).
std::string storage_block
Block name where this coefficient is stored in the Parameters system.
Represents an identifier of a LHA element, possibly containing several sub-ids.
Matching metadata for a Wilson coefficient at a specific QCD order.