Skip to content

Commit

Permalink
Allow extra parameters to be used in SLHA output blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Harries committed Dec 12, 2016
1 parent 9987466 commit 5e68759
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta/WriteOut.m
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@
IsOutputParameter[par], Global`MODELPARAMETER,
IsPhase[par] , Global`MODELPARAMETER,
IsInputParameter[par] , Global`INPUTPARAMETER,
IsExtraParameter[par] , Global`EXTRAPARAMETER,
True , Identity
];

Expand All @@ -382,7 +383,7 @@
Module[{allPars, replacements, protectionRules, exprWithoutProtectedSymbols},
allPars = Flatten[{FSModelParameters, FSInputParameters,
FSOutputParameters, FSPhysicalOutputParameters,
FSPhases, FSDerivedParameters} /. FindAllParametersClassified[expr]];
FSPhases, FSDerivedParameters, FSExtraParameters} /. FindAllParametersClassified[expr]];
replacements = Join[
RuleDelayed[# , FindMacro[#][#] ]& /@ allPars,
RuleDelayed[#[i__], FindMacro[#][#][i]]& /@ allPars,
Expand Down
1 change: 1 addition & 0 deletions templates/slha_io.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#define LOCALPHYSICAL(p) physical.p
#define MODELPARAMETER(p) model.get_##p()
#define INPUTPARAMETER(p) input.p
#define EXTRAPARAMETER(p) model.get_##p()
#define DEFINE_PHYSICAL_PARAMETER(p) decltype(LOCALPHYSICAL(p)) p;
#define LowEnergyConstant(p) Electroweak_constants::p

Expand Down
2 changes: 2 additions & 0 deletions templates/slha_io.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define LOCALPHYSICAL(p) physical.p
#define MODEL model
#define MODELPARAMETER(p) model.get_##p()
#define EXTRAPARAMETER(p) model.get_##p()
#define OBSERVABLES observables
#define LowEnergyConstant(p) Electroweak_constants::p
#define SCALES(p) scales.p
Expand Down Expand Up @@ -255,6 +256,7 @@ void @ModelName@_slha_io::set_spectrum(const @ModelName@_slha<Model>& model)
#undef LOCALPHYSICAL
#undef MODEL
#undef MODELPARAMETER
#undef EXTRAPARAMETER
#undef OBSERVABLES
#undef LowEnergyConstant
#undef SCALES
Expand Down

0 comments on commit 5e68759

Please sign in to comment.