Changeset 5273 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 10/14/04 13:55:02 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
r5269 r5273 21 21 // 22 22 // $RCSfile: camera.cxx,v $ 23 // $Revision: 1.7 4$23 // $Revision: 1.75 $ 24 24 // $Author: moralejo $ 25 // $Date: 2004-10-1 3 17:05:05$25 // $Date: 2004-10-14 12:55:02 $ 26 26 // 27 27 //////////////////////////////////////////////////////////////////////// … … 4005 4005 static char flag[SIZE_OF_FLAGS + 1]; 4006 4006 static float radius_mm; 4007 static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1)); 4007 4008 4008 4009 Float_t t; … … 4020 4021 4021 4022 TRandom random; 4022 random.SetSeed( (Int_t)(get_seeds(0)*get_seeds(1)));4023 random.SetSeed(seed); 4023 4024 4024 4025 float C1, C2, C3, rho; … … 4200 4201 *itotnphe += 1; 4201 4202 } 4203 4204 seed = random.GetSeed(); // Get seed for next call 4202 4205 4203 4206 return(0); … … 4599 4602 // use the option trigger_delay in the input card instead. 4600 4603 4601 Fadc_CT[ict]->TriggeredFadc( 3.);4604 Fadc_CT[ict]->TriggeredFadc(13.); 4602 4605 4603 4606 // … … 4670 4673 float radius_mm, focal_dist_mm; 4671 4674 int total_photons; 4675 static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1)); 4672 4676 4673 4677 // reset variables … … 4680 4684 4681 4685 TRandom random; 4682 random.SetSeed( (Int_t)(get_seeds(0)*get_seeds(1)));4686 random.SetSeed(seed); 4683 4687 4684 4688 // … … 4711 4715 4712 4716 // time 4713 time = random.Gaus(4.*sigma_time, sigma_time); 4714 4715 cout << "### " << time << endl << endl; 4717 // time = random.Gaus(0., sigma_time); 4718 time = 10.; 4716 4719 4717 4720 // wavelength … … 4840 4843 *itotnphe += 1; 4841 4844 } 4842 cout << "$$" << endl; 4845 4846 seed = random.GetSeed(); // Get seed for next call 4847 4843 4848 return(0); 4844 4849 … … 4855 4860 // 4856 4861 // $Log: not supported by cvs2svn $ 4862 // Revision 1.74 2004/10/13 17:05:05 moralejo 4863 // *** empty log message *** 4864 // 4857 4865 // Revision 1.72 2004/10/12 13:39:34 moralejo 4858 4866 //
Note:
See TracChangeset
for help on using the changeset viewer.