Changeset 5275 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 10/14/04 17:56:43 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r5273 r5275 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.7 5$23 // $Revision: 1.76 $ 24 24 // $Author: moralejo $ 25 // $Date: 2004-10-14 1 2:55:02$25 // $Date: 2004-10-14 16:56:43 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 4025 4025 float C1, C2, C3, rho; 4026 4026 4027 // A. Moralejo, October 2004 4028 // Introduced the FADC jitter of 1 FADC slice. This is a time to be added to the 4029 // time of all photons in an event, before digitalization of the signal. We use 4030 // a positive value between 0 and 1 slice for technical reasons, but it is 4031 // totally equivalent to having made +- 1 FADC slice 4032 4033 float fadc_jitter = (1./fadc->GetFadcSlicesPerNanosec()) * random.Uniform(0., 1.); 4027 4034 4028 4035 //- - - - - - - - - - - - - - - - - - - - - - - - - … … 4195 4202 // store the new photoelectron 4196 4203 4197 fadc->Fill(ipixnum,(t-*tmin_ns) ,4198 trigger->FillShow(ipixnum, t-*tmin_ns),4204 fadc->Fill(ipixnum,(t-*tmin_ns) + fadc_jitter , 4205 trigger->FillShow(ipixnum, t-*tmin_ns + fadc_jitter), 4199 4206 !((*camgeom)[ipixnum].GetD()>(*camgeom)[0].GetD())); 4200 4207 … … 4597 4604 Fadc_CT[ict]->Pedestals(); 4598 4605 4599 // Set the trigger time. The 3 ns are such that the pulse appears well4600 // centered if the FADC range is the usual 50 ns.4601 // If you want to shift the pulse position, do not change th evalue here,4606 // Set the trigger time. The 3 ns are such that the calibration pulses 4607 // appear roughly at the same position as for the case of real data. 4608 // If you want to shift the pulse position, do not change this value here, 4602 4609 // use the option trigger_delay in the input card instead. 4603 4604 Fadc_CT[ict]->TriggeredFadc(13.); 4610 // The additional value 3*sigma_time makes that the pulse maximum is, in 4611 // average, in the same position no matter of the time width of the pulse 4612 // (see in produce_calib_phes(...) that in order to avoid negative times 4613 // we shift the time of the photons by this same amount!) 4614 4615 Fadc_CT[ict]->TriggeredFadc(3.+3*sigma_time); 4605 4616 4606 4617 // … … 4686 4697 random.SetSeed(seed); 4687 4698 4699 // Introduce the FADC jitter of 1 FADC slice. This is a time to be added to the 4700 // time of all photons in an event, before digitalization of the signal. We use 4701 // a positive value between 0 and 1 slice for technical reasons, but it is 4702 // totally equivalent to having made +- 1 FADC slice 4703 4704 float fadc_jitter = (1./fadc->GetFadcSlicesPerNanosec()) * random.Uniform(0., 1.); 4705 4688 4706 // 4689 4707 // Create photons and "map" them into the pixels … … 4715 4733 4716 4734 // time 4717 // time = random.Gaus(0., sigma_time); 4718 time = 10.; 4735 // We do not want negative times, so center the gaussian at 3 sigma 4736 // and reject negative values: 4737 4738 do 4739 time = random.Gaus(3*sigma_time, sigma_time); 4740 while (time < 0.); 4719 4741 4720 4742 // wavelength 4721 wl = lambda;4743 wl = random.Gaus(lambda, sigma_lambda); 4722 4744 4723 4745 if( (wl > WAVEBANDBOUND6) || (wl < WAVEBANDBOUND1)) … … 4792 4814 4793 4815 // 4794 // Apply inci ent angular correction due to Light Guides, plexiglas,4816 // Apply incident angular correction due to Light Guides, plexiglas, 4795 4817 // 1st dynode collection efficiency, double crossings... etc. 4796 4818 // This information is contained in the file Data/LightCollection.dat, … … 4837 4859 // store the new photoelectron 4838 4860 4839 fadc->Fill(ipixnum, (time),4840 trigger->FillShow(ipixnum, time ),4861 fadc->Fill(ipixnum, time + fadc_jitter, 4862 trigger->FillShow(ipixnum, time + fadc_jitter), 4841 4863 !((*camgeom)[ipixnum].GetD()>(*camgeom)[0].GetD())); 4842 4864 … … 4860 4882 // 4861 4883 // $Log: not supported by cvs2svn $ 4884 // Revision 1.75 2004/10/14 12:55:02 moralejo 4885 // *** empty log message *** 4886 // 4862 4887 // Revision 1.74 2004/10/13 17:05:05 moralejo 4863 4888 // *** empty log message ***
Note:
See TracChangeset
for help on using the changeset viewer.