Skip to content

Commit

Permalink
Adding Config Files for ModeMapTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jkgaison65 committed May 30, 2024
1 parent e3aaf8b commit c1370a1
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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
Expand Down
54 changes: 54 additions & 0 deletions Config/LocustCavityCCA_ModeMapTest.json.in
Original file line number Diff line number Diff line change
@@ -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
}

}

2 changes: 1 addition & 1 deletion Source/Fields/LMCModeMapCavity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
//
Expand Down

0 comments on commit c1370a1

Please sign in to comment.