Commit dd6709a51686d6ff09c4803afccc75dfe387fe1d
1 parent
f59f73ff
Adapt generate_prod3_irf example script to test data.
Showing
2 changed files
with
9 additions
and
2 deletions
.gitignore
examples/generate_prod3_irfs.py
| ... | ... | @@ -27,7 +27,12 @@ import cscripts |
| 27 | 27 | # ======================= # |
| 28 | 28 | def set_prod3_desy(): |
| 29 | 29 | """ |
| 30 | - Set Prod3 DESY database. | |
| 30 | + Set Prod3 DESY database | |
| 31 | + | |
| 32 | + This function sets the calibration database. By adding dictionaries to | |
| 33 | + the db list a number of calibrations can be defined for which IRFs | |
| 34 | + should be generated. All calibrations will be added to the calibration | |
| 35 | + database. | |
| 31 | 36 | """ |
| 32 | 37 | # Set database attributes |
| 33 | 38 | #path = '/project-data/cta/performance/prod3' |
| ... | ... | @@ -36,7 +41,8 @@ def set_prod3_desy(): |
| 36 | 41 | file = 'irf.root' |
| 37 | 42 | psftype = 'Gauss' |
| 38 | 43 | oversample = 3 |
| 39 | - norm1d = True | |
| 44 | + #norm1d = True # Will normalise the on-axis 2D IRFs on the 1D IRFs | |
| 45 | + norm1d = False | |
| 40 | 46 | bgdinfill = False |
| 41 | 47 | bgdethres = 10.0 |
| 42 | 48 | ... | ... |