camera 0.7
# Number of telescopes:
ct_num 1
# Telescope geometry type:
ct_geom 1
# Quantum efficiency file:
qe_file 0  /users/emc/moralejo/MagicSoft/Simulation/Detector/Data/qe-emi-coat.RFL.dat
# Input file (one per telescope):
# input_file 0 /data1/magic/reflex/Gamma_zbin0_0_7_1000to1009_w0.rfl
# Perform calibration run: lambda sigma_lambda phot_per_pixel time_fwhm n_events [selected_pixel]
# The values below correspond roughly to 10 LED UV 
#calibration_run 375. 12. 120. 2.5 3000
calibration_run 375. 12. 120. 2.5 10
# line below shows how to create a pedestal run (= cal. with 0-photon pulses):
#calibration_run 0. 0. 0. 0. 1000
# Ascii output file name:
#data_file ./Gamma_zbin0_0_7_1000to1009_w0.dat
data_file ./prueba.dat
# root output file name:
#root_file ./Gamma_zbin0_0_7_1000to1009_w0.root
#root_file ./19990101_00001_P_MonteCarlo_E.root
root_file ./19990101_00002_C_MonteCarlo_E.root
# Trigger characteristics: gate length (ns), min. overlapping time (ns),
# amplitude and FWHM of (gaussian) single phe response for trigger:
trigger_prop 3.0 0.25 1.0 2.0
# L1 Trigger condition: CT number, threshold (mV), multiplicity and topology:
trigger_single 0 4 4 2
# Correction to overall light collection efficiency:  CT#  fraction
mirror_fraction 0 0.73
# Switch on NSB:
nsb_on
#nsb_off
# Number of photons from the diffuse NSB (nphe / ns 0.1*0.1 deg^2 239 m^2) and
# minimum number of phe from shower required to simulate NSB:
nsb_mean 0.183 10
# Starfield (see Starfieldadder program)
# starfield_file /users/emc/moralejo/MagicSoft/Simulation/Detector/Starfield/starfield.rfl
# Electronic noise in FADC (sigma in ADC counts): Inner pixels, outer pixels, digital noise:
fadc_noise 1.3 2.4 1.
#elec_noise_off
# Mean pedestal per slice (ADC counts):
fadc_pedestal 10.
# Additional sigma of mirror spot (cm):
sigma_xy_cm_spot 1.4
# Seeds for random number generation:
seeds 66767 45069
# Directory where NSB database can be found for inner and outer pixels:
nsb_directory  /users/emc/moralejo/MagicSoft/Simulation/Detector/StarLight/inner/
nsb_dir_outer  /users/emc/moralejo/MagicSoft/Simulation/Detector/StarLight/outer/
#
# FADC properties: shape of single phe response (1 means realistic one, from
# Pulpo setup), integral in FADC counts for 1 phe. (3rd argument is ignored 
# unless gaussian shape - 1st argument=0 - was chosen) :
fadc_prop 1 7.8 5.0
# Same as above for outer pixels:
fadc_outer 1 3.2 5.0
#
# tentative values for future fast (2 GHz) FADC:
#
#fadc_prop  0 40. 3.
#fadc_outer 0  15. 3.
# FADC sampling frequency and number of FADC slices:
#fadc_GHz 2. 100
#
# Write to output trigger information:
write_McTrig
# Write to output FADC information:
write_McFadc
end_file
