From a14e39bbb4c667a6f6614769625dbd784268301f Mon Sep 17 00:00:00 2001 From: Lawrence Ng Date: Tue, 1 Aug 2023 14:27:23 -0400 Subject: [PATCH 1/2] adding a zlm config file --- script/zlm.cfg | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 script/zlm.cfg diff --git a/script/zlm.cfg b/script/zlm.cfg new file mode 100644 index 0000000..b11e5e5 --- /dev/null +++ b/script/zlm.cfg @@ -0,0 +1,93 @@ +# +##################################### +#### THIS IS A CONFIG FILE #### +##################################### +## +## Blank lines or lines beginning with a "#" are ignored. +## +## Double colons (::) are treated like a space. +## This is sometimes useful for grouping (for example, +## grouping strings like "reaction::sum::amplitudeName") +## +## All non-comment lines must begin with one of the following keywords. +## +## (note: means necessary +## (word) means optional) +## +## include +## define (defn1) (defn2) (defn3) ... +## fit +## keyword +## reaction (particle3) ... +## data (arg1) (arg2) (arg3) ... +## genmc (arg1) (arg2) (arg3) ... +## accmc (arg1) (arg2) (arg3) ... +## normintfile +## sum (sum2) (sum3) ... +## amplitude (arg1) (arg2) ([par]) ... +## initialize <"events"/"polar"/"cartesian"> +## ("fixed"/"real") +## scale +## constrain ... +## permute ... +## parameter ("fixed"/"bounded"/"gaussian") +## (lower/central) (upper/error) +## DEPRECATED: +## datafile (file2) (file3) ... +## genmcfile (file2) (file3) ... +## accmcfile (file2) (file3) ... +## +##################################### + +#define beamConfig beamconfig.cfg +define polVal 1.0 +define polAngle 0.0 + +reaction EtaPi0_000 gamma Proton Pi0 Eta + +sum EtaPi0_000 PositiveRe +sum EtaPi0_000 PositiveIm + +# ------------------------------------------------ +# Define the amplitudes, both positive and negative reflectivity +# ------------------------------------------------ +# Zlm as suggested in GlueX doc-4094 (M. Shepherd) +# argument 1 : j +# argument 2 : m +# argument 3 : real (+1) or imaginary (-1) part +# argument 4 : 1 + (+1/-1) * P_gamma +# argument 5 : polarization angle +# argument 6 : beam properties config file or fixed polarization +#parameter polAngle 1.77 fixed + +# S-waves +amplitude EtaPi0_000::PositiveIm::S0+ Zlm 0 0 -1 -1 polAngle polVal +amplitude EtaPi0_000::PositiveRe::S0+ Zlm 0 0 +1 +1 polAngle polVal +constrain EtaPi0_000::PositiveIm::S0+ EtaPi0_000::PositiveRe::S0+ +initialize EtaPi0_000::PositiveIm::S0+ cartesian 1.0 0.0 real + +## Some D-waves +#amplitude EtaPi0_000::PositiveIm::D0+ Zlm 2 0 -1 -1 polAngle polVal +#amplitude EtaPi0_000::PositiveRe::D0+ Zlm 2 0 +1 +1 polAngle polVal +#amplitude EtaPi0_000::PositiveIm::D1+ Zlm 2 1 -1 -1 polAngle polVal +#amplitude EtaPi0_000::PositiveRe::D1+ Zlm 2 1 +1 +1 polAngle polVal +#amplitude EtaPi0_000::PositiveIm::D2+ Zlm 2 2 -1 -1 polAngle polVal +#amplitude EtaPi0_000::PositiveRe::D2+ Zlm 2 2 +1 +1 polAngle polVal +#initialize EtaPi0_000::PositiveIm::D0+ cartesian 1.0 0.0 +#initialize EtaPi0_000::PositiveIm::D1+ cartesian 1.0 0.0 +#initialize EtaPi0_000::PositiveIm::D2+ cartesian 1.0 0.0 +#constrain EtaPi0_000::PositiveIm::D0+ EtaPi0_000::PositiveRe::D0+ +#constrain EtaPi0_000::PositiveIm::D1+ EtaPi0_000::PositiveRe::D1+ +#constrain EtaPi0_000::PositiveIm::D2+ EtaPi0_000::PositiveRe::D2+ +# +## P-waves +#amplitude EtaPi0_000::PositiveIm::P0+ Zlm 1 0 -1 -1 polAngle polVal +#amplitude EtaPi0_000::PositiveRe::P0+ Zlm 1 0 +1 +1 polAngle polVal +#amplitude EtaPi0_000::PositiveIm::P1+ Zlm 1 1 -1 -1 polAngle polVal +#amplitude EtaPi0_000::PositiveRe::P1+ Zlm 1 1 +1 +1 polAngle polVal +#initialize EtaPi0_000::PositiveIm::P0+ cartesian 1.0 0.0 +#initialize EtaPi0_000::PositiveIm::P1+ cartesian 1.0 0.0 +#constrain EtaPi0_000::PositiveIm::P0+ EtaPi0_000::PositiveRe::P0+ +#constrain EtaPi0_000::PositiveIm::P1+ EtaPi0_000::PositiveRe::P1+ + + From 33bd4267f93abcdcdc1f0e43e260bed3a46351c0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 19:12:13 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- script/zlm.cfg | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/script/zlm.cfg b/script/zlm.cfg index b11e5e5..86c7189 100644 --- a/script/zlm.cfg +++ b/script/zlm.cfg @@ -11,7 +11,7 @@ ## ## All non-comment lines must begin with one of the following keywords. ## -## (note: means necessary +## (note: means necessary ## (word) means optional) ## ## include @@ -24,13 +24,13 @@ ## accmc (arg1) (arg2) (arg3) ... ## normintfile ## sum (sum2) (sum3) ... -## amplitude (arg1) (arg2) ([par]) ... +## amplitude (arg1) (arg2) ([par]) ... ## initialize <"events"/"polar"/"cartesian"> ## ("fixed"/"real") ## scale ## constrain ... ## permute ... -## parameter ("fixed"/"bounded"/"gaussian") +## parameter ("fixed"/"bounded"/"gaussian") ## (lower/central) (upper/error) ## DEPRECATED: ## datafile (file2) (file3) ... @@ -49,7 +49,7 @@ sum EtaPi0_000 PositiveRe sum EtaPi0_000 PositiveIm # ------------------------------------------------ -# Define the amplitudes, both positive and negative reflectivity +# Define the amplitudes, both positive and negative reflectivity # ------------------------------------------------ # Zlm as suggested in GlueX doc-4094 (M. Shepherd) # argument 1 : j @@ -85,9 +85,7 @@ initialize EtaPi0_000::PositiveIm::S0+ cartesian 1.0 0.0 real #amplitude EtaPi0_000::PositiveRe::P0+ Zlm 1 0 +1 +1 polAngle polVal #amplitude EtaPi0_000::PositiveIm::P1+ Zlm 1 1 -1 -1 polAngle polVal #amplitude EtaPi0_000::PositiveRe::P1+ Zlm 1 1 +1 +1 polAngle polVal -#initialize EtaPi0_000::PositiveIm::P0+ cartesian 1.0 0.0 +#initialize EtaPi0_000::PositiveIm::P0+ cartesian 1.0 0.0 #initialize EtaPi0_000::PositiveIm::P1+ cartesian 1.0 0.0 #constrain EtaPi0_000::PositiveIm::P0+ EtaPi0_000::PositiveRe::P0+ #constrain EtaPi0_000::PositiveIm::P1+ EtaPi0_000::PositiveRe::P1+ - -