From 2d4af84f8aede816bade9a0338ace18935441cd4 Mon Sep 17 00:00:00 2001 From: Gernot Maier Date: Thu, 11 Jul 2024 13:02:54 +0200 Subject: [PATCH 1/3] corsika DB parameter schema --- ...ika_cherenkov_photon_bunch_size.schema.yml | 27 ++++++++++ ...erenkov_photon_wavelength_range.schema.yml | 38 ++++++++++++++ ...orsika_first_interaction_height.schema.yml | 28 ++++++++++ .../corsika_iact_io_buffer.schema.yml | 23 ++++++++ .../corsika_iact_max_bunches.schema.yml | 27 ++++++++++ .../corsika_iact_split_auto.schema.yml | 28 ++++++++++ ...longitudinal_shower_development.schema.yml | 27 ++++++++++ ..._particle_kinetic_energy_cutoff.schema.yml | 52 +++++++++++++++++++ .../corsika_starting_grammage.schema.yml | 27 ++++++++++ 9 files changed, 277 insertions(+) create mode 100644 simtools/schemas/model_parameters/corsika_cherenkov_photon_bunch_size.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_cherenkov_photon_wavelength_range.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_iact_io_buffer.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_iact_max_bunches.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_iact_split_auto.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_longitudinal_shower_development.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml create mode 100644 simtools/schemas/model_parameters/corsika_starting_grammage.schema.yml diff --git a/simtools/schemas/model_parameters/corsika_cherenkov_photon_bunch_size.schema.yml b/simtools/schemas/model_parameters/corsika_cherenkov_photon_bunch_size.schema.yml new file mode 100644 index 000000000..606db8fd4 --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_cherenkov_photon_bunch_size.schema.yml @@ -0,0 +1,27 @@ +%YAML 1.2 +--- +title: Schema for corsika_cherenkov_photon_bunch_size model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +developer_note: |- + Different default than sim_telarray. No use of having HEGRA defaults. +name: corsika_cherenkov_photon_bunch_size +description: |- + Cherenkov bunch size definition. +data: + - type: float64 + unit: dimensionless + default: 1. + allowed_range: + min: 0. +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_cherenkov_photon_wavelength_range.schema.yml b/simtools/schemas/model_parameters/corsika_cherenkov_photon_wavelength_range.schema.yml new file mode 100644 index 000000000..6403c65ec --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_cherenkov_photon_wavelength_range.schema.yml @@ -0,0 +1,38 @@ +%YAML 1.2 +--- +title: Schema for corsika_cherenkov_photon_wavelength_range model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_cherenkov_photon_wavelength_range +description: |- + Cherenkov photon wavelength band. +data: + - name: wavlgl + type: float64 + description: Lower limit of the Cherenkov photon wavelength band. + unit: nm + default: 240. + allowed_range: + min: 100. + max: 700. + required: true + - name: wavlgu + type: float64 + description: Upper limit of the Cherenkov photon wavelength band. + unit: nm + default: 700. + allowed_range: + min: 100. + max: 700. + required: true +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml b/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml new file mode 100644 index 000000000..e2a6f3caa --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml @@ -0,0 +1,28 @@ +%YAML 1.2 +--- +title: Schema for corsika_first_interaction_height model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_first_interaction_height +description: |- + Starting altitude of primary particles in altitude above observation level. + This parameter should be set to values other than '0.' for specialized studies + only. See CORSIKA manual for details. +data: + - type: float64 + unit: cm + default: 0. + allowed_range: + min: 0. + max: 112.8e5 +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_iact_io_buffer.schema.yml b/simtools/schemas/model_parameters/corsika_iact_io_buffer.schema.yml new file mode 100644 index 000000000..e10ca02d4 --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_iact_io_buffer.schema.yml @@ -0,0 +1,23 @@ +%YAML 1.2 +--- +title: Schema for corsika_iact_io_buffer model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_iact_io_buffer +description: |- + Maximum size of data blocks written by the CORSIKA IACT module. +data: + - type: int + unit: byte + default: 100000000 +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_iact_max_bunches.schema.yml b/simtools/schemas/model_parameters/corsika_iact_max_bunches.schema.yml new file mode 100644 index 000000000..ac2fb1eb1 --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_iact_max_bunches.schema.yml @@ -0,0 +1,27 @@ +%YAML 1.2 +--- +title: Schema for corsika_iact_max_bunches model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_iact_max_bunches +short_description: |- + Maximum number of bunches that can be kept per telescope, including in temporary files. +description: |- + Maximum number of bunches that can be kept per telescope, including in temporary files. + Telescopes for which this limit is exceeded will have the number of bunches reduced in + increasing powers of two (by discarding every second bunch and adding its bunch size to the bunch kept). +data: + - type: int + unit: dimensionless + default: 1000000 +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_iact_split_auto.schema.yml b/simtools/schemas/model_parameters/corsika_iact_split_auto.schema.yml new file mode 100644 index 000000000..48576c0a4 --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_iact_split_auto.schema.yml @@ -0,0 +1,28 @@ +%YAML 1.2 +--- +title: Schema for corsika_iact_split_auto model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_iact_split_auto +short_description: |- + Maximum number of bunches before splitting into several blocks (per telescope). +description: |- + Maximum number of bunches before splitting into several blocks (per telescope). + If the full data block for the entire array would exceed the given number of bunches, + it gets split up into separate blocks per individual telescope, in order to avoid + exceeding the hard I/O buffer size limit. +data: + - type: int + unit: dimensionless + default: 15000000 +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_longitudinal_shower_development.schema.yml b/simtools/schemas/model_parameters/corsika_longitudinal_shower_development.schema.yml new file mode 100644 index 000000000..e19f53806 --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_longitudinal_shower_development.schema.yml @@ -0,0 +1,27 @@ +%YAML 1.2 +--- +title: Schema for corsika_longitudinal_shower_development model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_longitudinal_shower_development +description: |- + Step size for recording of longitudinal shower development. + Any value >=1. for the step size enables the recording of the shower development. +data: + type: float64 + unit: g/cm2 + default: 20.0 + allowed_range: + min: 0. + max: 14998. +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml b/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml new file mode 100644 index 000000000..d3a5d9293 --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml @@ -0,0 +1,52 @@ +%YAML 1.2 +--- +title: Schema for corsika_particle_kinetic_energy_cutoff model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_particle_kinetic_energy_cutoff +description: |- + Kinetic energy cutoffs for different particle types. +data: + - name: hadrons + type: float64 + description: Kinetic energy cutoffs for hadrons. + unit: GeV + default: 0.3 + allowed_range: + min: 0.05 + required: true + - name: muons + type: float64 + description: Kinetic energy cutoffs for muons. + unit: GeV + default: 0.1 + allowed_range: + min: 0.05 + required: true + - name: electrons + type: float64 + description: Kinetic energy cutoffs for electrons. + unit: GeV + default: 0.020 + allowed_range: + min: 0.05 + required: true + - name: gammas + type: float64 + description: Kinetic energy cutoffs for gammas. + unit: GeV + default: 0.020 + allowed_range: + min: 0.05 + required: true +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika diff --git a/simtools/schemas/model_parameters/corsika_starting_grammage.schema.yml b/simtools/schemas/model_parameters/corsika_starting_grammage.schema.yml new file mode 100644 index 000000000..c5812842a --- /dev/null +++ b/simtools/schemas/model_parameters/corsika_starting_grammage.schema.yml @@ -0,0 +1,27 @@ +%YAML 1.2 +--- +title: Schema for corsika_starting_grammage model parameter +version: 0.1.0 +meta_schema: simpipe-schema +meta_schema_url: https://raw.githubusercontent.com/gammasim/simtools/main/simtools/schemas/model_parameter_and_data_schema.metaschema.yml +meta_schema_version: 0.1.0 +name: corsika_starting_grammage +description: |- + Starting altitude of the primary particle in mass overburden for all showers. + This parameter should be set to values other than '0.' for specialized studies + only. See CORSIKA manual for details. +data: + - type: float64 + unit: g/cm2 + default: 0. + allowed_range: + min: 0. +activity: + setting: + - SetParameterFromExternal + validation: + - ValidateParameterByExpert +source: + - Configuration +simulation_software: + - name: corsika From 2d50bd8715bf9aaf957f6d349ffc8259e7363880 Mon Sep 17 00:00:00 2001 From: Gernot Maier Date: Thu, 11 Jul 2024 13:07:17 +0200 Subject: [PATCH 2/3] fix interaction height max --- .../corsika_first_interaction_height.schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml b/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml index e2a6f3caa..7066b1f73 100644 --- a/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml +++ b/simtools/schemas/model_parameters/corsika_first_interaction_height.schema.yml @@ -16,7 +16,7 @@ data: default: 0. allowed_range: min: 0. - max: 112.8e5 + max: 11280000.0 activity: setting: - SetParameterFromExternal From e80939824204b1ad2e18c4e38fc81f64c5a7fef8 Mon Sep 17 00:00:00 2001 From: Gernot Maier Date: Thu, 11 Jul 2024 13:50:38 +0200 Subject: [PATCH 3/3] fix minima --- .../corsika_particle_kinetic_energy_cutoff.schema.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml b/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml index d3a5d9293..314f79e3b 100644 --- a/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml +++ b/simtools/schemas/model_parameters/corsika_particle_kinetic_energy_cutoff.schema.yml @@ -23,7 +23,7 @@ data: unit: GeV default: 0.1 allowed_range: - min: 0.05 + min: 0.01 required: true - name: electrons type: float64 @@ -31,7 +31,7 @@ data: unit: GeV default: 0.020 allowed_range: - min: 0.05 + min: 0.00005 required: true - name: gammas type: float64 @@ -39,7 +39,7 @@ data: unit: GeV default: 0.020 allowed_range: - min: 0.05 + min: 0.00005 required: true activity: setting: