Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Producing source dependent MC production for zenith 20 deg #188

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
267 changes: 267 additions & 0 deletions production_configs/srcdep_zen20/lstchain_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
{
"source_config" : {
"EventSource": {
"allowed_tels": [1],
"max_events": null
},
"LSTEventSource": {
"default_trigger_type": "ucts",
"allowed_tels": [1],
"min_flatfield_adc": 3000,
"min_flatfield_pixel_fraction": 0.8,
"calibrate_flatfields_and_pedestals": false,
"EventTimeCalculator": {
"dragon_reference_counter": null,
"dragon_reference_time": null
},
"PointingSource":{
"drive_report_path": null
},
"LSTR0Corrections":{
"calib_scale_high_gain":1.088,
"calib_scale_low_gain":1.004,
"drs4_pedestal_path": null,
"calibration_path": null,
"drs4_time_calibration_path": null
}
}
},

"events_filters": {
"intensity": [0, Infinity],
"width": [0, Infinity],
"length": [0, Infinity],
"wl": [0, Infinity],
"r": [0, Infinity],
"leakage_intensity_width_2": [0, Infinity]
},

"tailcuts_clean_with_pedestal_threshold": {
"picture_thresh":8,
"boundary_thresh":4,
"sigma":2.5,
"keep_isolated_pixels":false,
"min_number_picture_neighbors":2,
"use_only_main_island":false,
"delta_time": 2
},

"dynamic_cleaning": {
"apply": true,
"threshold": 267,
"fraction_cleaning_intensity": 0.03
},

"random_forest_energy_regressor_args": {
"max_depth": 50,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 150,
"bootstrap": true,
"criterion": "squared_error",
"max_features": "auto",
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"min_samples_split": 2,
"min_weight_fraction_leaf": 0.0,
"oob_score": false,
"random_state": 42,
"verbose": 0,
"warm_start": false
},

"random_forest_disp_regressor_args": {
"max_depth": 50,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 150,
"bootstrap": true,
"criterion": "squared_error",
"max_features": "auto",
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"min_samples_split": 2,
"min_weight_fraction_leaf": 0.0,
"oob_score": false,
"random_state": 42,
"verbose": 0,
"warm_start": false
},

"random_forest_particle_classifier_args": {
"max_depth": 100,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 100,
"criterion": "gini",
"min_samples_split": 2,
"min_weight_fraction_leaf": 0.0,
"max_features": "auto",
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"bootstrap": true,
"oob_score": false,
"random_state": 42,
"verbose": 0.0,
"warm_start": false,
"class_weight": null
},

"random_forest_disp_classifier_args": {
"max_depth": 100,
"min_samples_leaf": 2,
"n_jobs": 4,
"n_estimators": 100,
"criterion": "gini",
"min_samples_split": 2,
"min_weight_fraction_leaf": 0.0,
"max_features": "auto",
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"bootstrap": true,
"oob_score": false,
"random_state": 42,
"verbose": 0.0,
"warm_start": false,
"class_weight": null
},

"energy_regression_features": [
"log_intensity",
"width",
"length",
"wl",
"skewness_from_source",
"kurtosis",
"time_gradient_from_source",
"leakage_intensity_width_2",
"dist"
],

"disp_method": "disp_norm_sign",

"disp_regression_features": [
"log_intensity",
"width",
"length",
"wl",
"skewness_from_source",
"kurtosis",
"time_gradient_from_source",
"leakage_intensity_width_2",
"dist"
],

"disp_classification_features": [
"log_intensity",
"width",
"length",
"wl",
"skewness_from_source",
"kurtosis",
"time_gradient_from_source",
"leakage_intensity_width_2",
"dist"
],

"particle_classification_features": [
"log_intensity",
"width",
"length",
"wl",
"skewness_from_source",
"kurtosis",
"time_gradient_from_source",
"leakage_intensity_width_2",
"log_reco_energy",
"dist"
],


"allowed_tels": [1],
"max_events": null,
"write_pe_image": false,
"mc_image_scaling_factor": 1,
"CameraCalibrator": {
"apply_waveform_time_shift": false
},
"time_sampling_correction_path": "default",
"image_extractor": "LocalPeakWindowSum",
"image_extractor_for_muons": "GlobalPeakWindowSum",
"LocalPeakWindowSum":{
"window_shift": 4,
"window_width":8,
"apply_integration_correction": true
},
"GlobalPeakWindowSum":{
"window_shift": 4,
"window_width":8,
"apply_integration_correction": false
},
"timestamps_pointing":"ucts",

"train_gamma_src_r_deg": [0, Infinity],

"source_dependent": true,
"mc_nominal_source_x_deg": 0.4,
"mc_nominal_source_y_deg": 0.0,

"volume_reducer":{
"algorithm": null,
"parameters": {
}
},
"calibration_product": "LSTCalibrationCalculator",

"LSTCalibrationCalculator":{
"systematic_correction_path": null,
"squared_excess_noise_factor": 1.222,
"flatfield_product": "FlasherFlatFieldCalculator",
"pedestal_product": "PedestalIntegrator",
"PedestalIntegrator":{
"sample_size": 10000,
"sample_duration":100000,
"tel_id":1,
"time_sampling_correction_path": null,
"charge_median_cut_outliers": [-10,10],
"charge_std_cut_outliers": [-10,10],
"charge_product":"FixedWindowSum",
"FixedWindowSum":{
"window_shift": 6,
"window_width":12,
"peak_index": 18,
"apply_integration_correction": false
}
},
"FlasherFlatFieldCalculator":{
"sample_size": 10000,
"sample_duration":100000,
"tel_id":1,
"time_sampling_correction_path": null,
"charge_product":"LocalPeakWindowSum",
"charge_median_cut_outliers": [-0.5,0.5],
"charge_std_cut_outliers": [-10,10],
"time_cut_outliers": [2,38],
"LocalPeakWindowSum":{
"window_shift": 5,
"window_width":12,
"apply_integration_correction": false
}
}
},
"waveform_nsb_tuning":{
"nsb_tuning": false,
"nsb_tuning_ratio": 0.52,
"spe_location": "lstchain/data/SinglePhE_ResponseInPhE_expo2Gaus.dat"
},
"image_modifier": {
"increase_nsb": false,
"extra_noise_in_dim_pixels": 0,
"extra_bias_in_dim_pixels": 0,
"transition_charge": 0,
"extra_noise_in_bright_pixels": 0,
"increase_psf": false,
chaimain marked this conversation as resolved.
Show resolved Hide resolved
"smeared_light_fraction": 0
}

}
44 changes: 44 additions & 0 deletions production_configs/srcdep_zen20/lstmcpipe_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## MC PRODUCTION FULL PIPELINE CONFIGURATION ##
#
# Template example to request a MC prod.


workflow_kind: lstchain # Not expected to be changed by the user
prod_id: zen20az180_src_dep # ex: local_no_n_islands. Default; v00 (if key left empty or None)

base_path: /fefs/aswg/data/mc # Path for centralised LST MC prods

# Only for dl1 reprocessing - you will also need to change:
# `r0_to_dl1` for `dl1ab` in "stages_to_be_run"
#dl1_reference_id: 20220215_v0.9.1_prod5_trans_80_local_tailcut_8_4

prod_type: prod5
# Choose between {prod5, prod3}
obs_date: 20200629_prod5_trans_80
# prod5 : `20200629_prod5` or `20200629_prod5_trans_80`
# pro3 : `20190415`
zenith: zenith_20deg # Taken into account only when `prod_type: prod5` [ thus `obs_date` : 20200629_prod5(_trans_80) ]
pointing: south_pointing
particles:
- electron
- gamma
# - gamma-diffuse
- proton
offset_gammas: # Taken into account only when `prod_type: prod5` [ thus `obs_date`: 20200629_prod5(_trans_80) ]
- off0.0deg
- off0.4deg

source_environment:
source_file: /fefs/aswg/software/conda/etc/profile.d/conda.sh
conda_env: lstchain-v0.9.3

stages_to_be_run:
- r0_to_dl1
- merge_and_copy_dl1
- train_pipe
- dl1_to_dl2
- dl2_to_irfs
# - dl2_to_sensitivity

merging_options:
no_image: True
11 changes: 11 additions & 0 deletions production_configs/srcdep_zen20/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# New Prod Config

## zen20az180_src_dep

## Short description of the config

Modified standard config for processing for zenith 20 deg, south pointing, source-dependent MC

## Why this config is needed

For aiding in the source-dependent analysis.