- Timestamp:
- 02/18/05 12:19:32 (20 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r6584 r6588 5061 5061 // 5062 5062 // $Log: not supported by cvs2svn $ 5063 // Revision 1.91 2005/02/18 10:24:51 moralejo 5064 // 5065 // Added switch to low gain (see MFadc.cxx). Before, in all events all 5066 // pixels had low gain branch, no matter how small the signal in the high 5067 // gain was. Now we require a minimum signal in the high gain to fill the 5068 // low gain slices with the scaled-down signal. In case the switch does 5069 // not occur, the low gain slices are simply the continuation of the 5070 // high gain ones, with the noise the same as in the high gain. 5071 // 5063 5072 // Revision 1.90 2005/02/17 15:37:12 moralejo 5064 5073 // -
trunk/MagicSoft/Simulation/Detector/Camera/input.card
r5274 r6588 5 5 ct_geom 1 6 6 # Quantum efficiency file: 7 qe_file 0 / home/pcmagic00/moralejo/MagicSoft/Simulation/Detector/Data/qe-emi-coat.RFL.dat7 qe_file 0 /users/emc/moralejo/MagicSoft/Simulation/Detector/Data/qe-emi-coat.RFL.dat 8 8 # Input file (one per telescope): 9 9 # input_file 0 /data1/magic/reflex/Gamma_zbin0_0_7_1000to1009_w0.rfl 10 10 # Perform calibration run: lambda sigma_lambda phot_per_pixel time_fwhm n_events [selected_pixel] 11 calibration_run 375. 12. 200. 2.5 5 11 # The values below correspond roughly to 10 LED UV 12 #calibration_run 375. 12. 120. 2.5 3000 13 calibration_run 375. 12. 120. 2.5 10 14 # line below shows how to create a pedestal run (= cal. with 0-photon pulses): 15 #calibration_run 0. 0. 0. 0. 1000 12 16 # Ascii output file name: 13 17 #data_file ./Gamma_zbin0_0_7_1000to1009_w0.dat … … 15 19 # root output file name: 16 20 #root_file ./Gamma_zbin0_0_7_1000to1009_w0.root 17 root_file ./prueba.root 21 #root_file ./19990101_00001_P_MonteCarlo_E.root 22 root_file ./19990101_00002_C_MonteCarlo_E.root 18 23 # Trigger characteristics: gate length (ns), min. overlapping time (ns), 19 24 # amplitude and FWHM of (gaussian) single phe response for trigger: … … 21 26 # L1 Trigger condition: CT number, threshold (mV), multiplicity and topology: 22 27 trigger_single 0 4 4 2 28 # Correction to overall light collection efficiency: CT# fraction 29 mirror_fraction 0 0.73 23 30 # Switch on NSB: 24 #nsb_on25 nsb_off31 nsb_on 32 #nsb_off 26 33 # Number of photons from the diffuse NSB (nphe / ns 0.1*0.1 deg^2 239 m^2) and 27 34 # minimum number of phe from shower required to simulate NSB: 28 nsb_mean 0.1 3 1035 nsb_mean 0.183 10 29 36 # Starfield (see Starfieldadder program) 30 # starfield_file / home/pcmagic00/moralejo/MagicSoft/Simulation/Detector/Starfield/starfield.rfl31 # Electronic noise in FADC (sigma in ADC counts): Inner pixels, outer pixels, digital noise: 32 #fadc_noise 1.48 2.1 0.33 elec_noise_off37 # starfield_file /users/emc/moralejo/MagicSoft/Simulation/Detector/Starfield/starfield.rfl 38 # Electronic noise in FADC (sigma in ADC counts): Inner pixels, outer pixels, digital noise: 39 fadc_noise 1.3 2.4 1. 40 #elec_noise_off 34 41 # Mean pedestal per slice (ADC counts): 35 42 fadc_pedestal 10. 36 43 # Additional sigma of mirror spot (cm): 37 sigma_xy_cm_spot 1. 38 # Fraction of currently active mirror: 39 mirror_fraction 0 1. 44 sigma_xy_cm_spot 1.4 40 45 # Seeds for random number generation: 41 46 seeds 66767 45069 42 47 # Directory where NSB database can be found for inner and outer pixels: 43 nsb_directory / home/pcmagic00/moralejo/MagicSoft/Simulation/Detector/StarLight/inner/44 nsb_dir_outer / home/pcmagic00/moralejo/MagicSoft/Simulation/Detector/StarLight/outer/48 nsb_directory /users/emc/moralejo/MagicSoft/Simulation/Detector/StarLight/inner/ 49 nsb_dir_outer /users/emc/moralejo/MagicSoft/Simulation/Detector/StarLight/outer/ 45 50 # 46 51 # FADC properties: shape of single phe response (1 means realistic one, from -
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx
r6584 r6588 24 24 Float_t trigger_delay, Float_t fadc_slices_per_ns, 25 25 Int_t fadc_slices_written, Int_t gainswitchamp, 26 Int_t shiftfromswitch2lowgain ) {26 Int_t shiftfromswitch2lowgain, Int_t hi2logainpeak) { 27 27 // 28 28 // Constructor overloaded II … … 55 55 fGainSwitchAmp = gainswitchamp; 56 56 fShiftFromSwitch2LowGain = shiftfromswitch2lowgain; 57 fHi2LoGainPeak = hi2logainpeak; 57 58 58 59 fSlices_mFadc = (Int_t)(TOTAL_TRIGGER_TIME*fFadcSlicesPerNanosec); … … 988 989 989 990 // Now put the low gain: 991 // FIXME: for now, the shift between the high and low gain peaks has to be an integer number 992 // of FADC slices. But in the data the shift is ~16.5 slices. This has to be implemented. 990 993 i=0; 991 994 for ( Int_t is = iFirstSlice; is < (iFirstSlice+fFadcSlices); is++ ) … … 995 998 if (switch_i > 0 && (i+fFadcSlices) >= switch_i) 996 999 output_lowgain[ip][i] = pedestal[ip] + 997 (sig[ip][is ]-pedestal[ip])/high2low_gain;1000 (sig[ip][is-(fHi2LoGainPeak-fFadcSlices)]-pedestal[ip])/high2low_gain; 998 1001 // Once the shift occurs, low gain is filled with the high 999 1002 // gain signal scaled down by the factor high2low_gain -
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
r6584 r6588 110 110 // to fill the low gain with a scaled down version of the pulse in the 111 111 // high gain. Else we put in the continuation of the high gain. 112 // By default it is now 120 ADC counts (see constructor). 112 113 113 114 Int_t fShiftFromSwitch2LowGain; 114 115 // Distance in FADC slices from the slice in which the amplitude 115 116 // fGainSwitchAmp is reached to were the switch to low gain will happen. 117 // By default it is now 13 slices (see constructor) 118 119 Int_t fHi2LoGainPeak; 120 // Distance in FADC slices from the signal peak in the high gain to the signal peak in 121 // the low gain. By default we set now 16 slices (see constructor). 116 122 117 123 // … … 138 144 Int_t fadc_slices_written = FADC_SLICES, 139 145 Int_t gainswitchamp = 120, 140 Int_t shiftfromswitch2lowgain = 13); 146 Int_t shiftfromswitch2lowgain = 13, 147 Int_t hi2logainpeak = 16); 141 148 142 149 void SetSeed(UInt_t seed) {GenElec->SetSeed(seed);}
Note:
See TracChangeset
for help on using the changeset viewer.