From c1370a18c7b0c1bbd1b6e607062fe61c71bd01da Mon Sep 17 00:00:00 2001 From: jkgaison65 Date: Wed, 29 May 2024 17:33:24 -0700 Subject: [PATCH] Adding Config Files for ModeMapTest --- Config/CMakeLists.txt | 2 + Config/LocustCavityCCA_ModeMapTest.json.in | 54 ++++++++++++++++++++++ Source/Fields/LMCModeMapCavity.cc | 2 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 Config/LocustCavityCCA_ModeMapTest.json.in diff --git a/Config/CMakeLists.txt b/Config/CMakeLists.txt index 97e8ea5f..29b8cd6c 100644 --- a/Config/CMakeLists.txt +++ b/Config/CMakeLists.txt @@ -8,6 +8,7 @@ configure_file( LocustKass_Cavity_CCA.xml.in LocustKass_Cavity_CCA.xml ) configure_file( LocustKass_Cavity_1GHz.xml.in LocustKass_Cavity_1GHz.xml ) configure_file( LocustWaveguideTemplate.json.in LocustWaveguideTemplate.json ) configure_file( LocustCavityCCA.json.in LocustCavityCCA.json ) +configure_file( LocustCavityCCA_ModeMapTest.json.in LocustCavityCCA_ModeMapTest.json ) configure_file( LocustCavityRectangular.json.in LocustCavityRectangular.json ) configure_file( LocustCavity1GHz.json.in LocustCavity1GHz.json ) configure_file( LocustSignalPlusNoise.json.in LocustSignalPlusNoise.json ) @@ -32,6 +33,7 @@ set (EXAMPLE_CONFIGFILES CavityGeometry_V00_00_00.xml ${CMAKE_CURRENT_BINARY_DIR}/LocustWaveguideTemplate.json ${CMAKE_CURRENT_BINARY_DIR}/LocustCavityCCA.json + ${CMAKE_CURRENT_BINARY_DIR}/LocustCavityCCA_ModeMapTest.json ${CMAKE_CURRENT_BINARY_DIR}/LocustCavityRectangular.json ${CMAKE_CURRENT_BINARY_DIR}/LocustCavity1GHz.json ${CMAKE_CURRENT_BINARY_DIR}/LocustFreeSpaceTemplate.json diff --git a/Config/LocustCavityCCA_ModeMapTest.json.in b/Config/LocustCavityCCA_ModeMapTest.json.in new file mode 100644 index 00000000..411eeaa5 --- /dev/null +++ b/Config/LocustCavityCCA_ModeMapTest.json.in @@ -0,0 +1,54 @@ +{ + "generators": + [ + "cavity-signal", + "lpf-fft", + "decimate-signal", + "digitizer" + ], + + "cavity-signal": + { + "transmitter": "kass-current", + "cavity-radius": 0.077, + "cavity-length": 0.1524, + "back-reaction": "true", + "nPixel1": 7, + "nPixel2": 13, + "nPixel3": 13, + "dho-cavity-frequency": 25.9e9, + "dho-time-resolution": 9.0e-11, + "dho-threshold-factor": 0.01, + "plot-mode-maps": true, + "upload-modemap-filename": "fieldsExportTest.fld", + "event-spacing-samples": 10, + "track-length": 0.5e-4, + "rectangular-waveguide": false, + "voltage-check": "false", + "lo-frequency": 25.9602e9, + "xml-filename": "${CMAKE_INSTALL_PREFIX}/config/LocustKass_Cavity_CCA.xml" + }, + + "simulation": + { + "egg-filename": "${CMAKE_INSTALL_PREFIX}/output/locust_mc.egg", + "n-records": 1, + "record-size": 81920, + "acquisition-rate": 301, + "n-channels": 1 + }, + + "gaussian-noise": + { + "noise-floor-psd": 2.76e-22, + "domain": "time" + }, + + "digitizer": + { + "v-range": 0.08, + "v-offset": -0.04 + } + +} + diff --git a/Source/Fields/LMCModeMapCavity.cc b/Source/Fields/LMCModeMapCavity.cc index bcd9a4d2..7a90267f 100644 --- a/Source/Fields/LMCModeMapCavity.cc +++ b/Source/Fields/LMCModeMapCavity.cc @@ -154,7 +154,7 @@ namespace locust // For testing, import the test mode map and inspect the output of this function like this: // // Cylindrical coordinates: - // bin/LocustSim -c config/LocustCavityCCA.json "cavity-signal.upload-modemap-filename"="PozarExport_Etheta_CylindricalTE011.txt" "cavity-signal.plot-mode-maps"=true + // bin/LocustSim -c config/LocustCavityCCA_ModeMapTest.json "cavity-signal.upload-modemap-filename"="fieldsExportTest.fld" "cavity-signal.plot-mode-maps"=true // root -l output/ModemapOutput.root // TE011_Etheta_z0mm->DrawCopy() //