From 888b95d947519b70a3a2ca2fa7d89224a5d88a71 Mon Sep 17 00:00:00 2001 From: Penny Slocum Date: Sun, 5 Mar 2023 15:14:10 -0500 Subject: [PATCH 1/2] Add Kass terminator at cavity radius in xml file, in compiled examples. --- Config/LocustKass_Cavity_1GHz.xml.in | 2 ++ Config/LocustKass_Cavity_CCA.xml.in | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Config/LocustKass_Cavity_1GHz.xml.in b/Config/LocustKass_Cavity_1GHz.xml.in index c1ca9c22..1572adc5 100644 --- a/Config/LocustKass_Cavity_1GHz.xml.in +++ b/Config/LocustKass_Cavity_1GHz.xml.in @@ -340,6 +340,7 @@ + @@ -421,6 +422,7 @@ + diff --git a/Config/LocustKass_Cavity_CCA.xml.in b/Config/LocustKass_Cavity_CCA.xml.in index f7565e7e..57baca8c 100644 --- a/Config/LocustKass_Cavity_CCA.xml.in +++ b/Config/LocustKass_Cavity_CCA.xml.in @@ -340,8 +340,9 @@ + - + @@ -421,6 +422,7 @@ + From a21191f859210b42f62827f5a0dad7c176d186fc Mon Sep 17 00:00:00 2001 From: Penny Slocum Date: Sun, 5 Mar 2023 15:16:28 -0500 Subject: [PATCH 2/2] Small change to prevent false peaks being found in unit test when Q is low or loosely defined. --- Source/Utilities/LMCCavityUtility.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Utilities/LMCCavityUtility.cc b/Source/Utilities/LMCCavityUtility.cc index 9d9044b6..2e76f3b8 100644 --- a/Source/Utilities/LMCCavityUtility.cc +++ b/Source/Utilities/LMCCavityUtility.cc @@ -139,12 +139,13 @@ namespace locust if (convolutionMag*convolutionMag > maxGain) { maxGain = convolutionMag*convolutionMag; + qInferred = 0.; } else if ((convolutionMag*convolutionMag < 0.5*maxGain) && (qInferred == 0.)) { qInferred = dhoCavityFrequency / (2.* rfStepSize * (rfStep-1)); } - LPROG( testlog, "Cavity GF gain at frequency " << fRF_frequency << " is " << convolutionMag ); + LPROG( testlog, "Cavity GF gain at frequency " << fRF_frequency << " is " << convolutionMag ); } // rfStep delete aSignal;