Changeset 2978 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 01/30/04 10:36:03 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/starresponse.cxx
r2374 r2978 40 40 data.SetFwhmTrig ( trigger->GetFwhm() ) ; 41 41 42 // Get inf roamtion from FADC instance !!!!!42 // Get information from FADC instance !!!!! 43 43 44 44 Float_t fadcresp[45] ; 45 45 fadc->GetResponse (fadcresp ) ; 46 46 data.SetFadcResponse( fadcresp ) ; 47 48 data.Set AmplFadc ( fadc->GetAmplitude() ) ;47 48 data.SetIntegFadc ( fadc->GetIntegral() ) ; 49 49 data.SetFwhmFadc ( fadc->GetFwhm() ) ; 50 50 … … 58 58 59 59 a = trigger->FillStar( 500, 10.) ; // random the amplitude 60 time=Zufall.Rndm() * TIMERANGE ; // random the time60 time=Zufall.Rndm() * TIMERANGE ; // random the time 61 61 62 data.FillResponse(a, time ) ; // fill the response function62 data.FillResponse(a, time ) ; // fill the response function 63 63 64 64 } 65 65 66 if(brightness< 1.0)66 if(brightness<=1.0) 67 67 sprintf(filename, "%sBrightness%.2f.slt", path, brightness) ; 68 68 else … … 75 75 data.ReadBinary( filename ) ; 76 76 77 sprintf(filename, "%sBrightness%.1f.root", path, brightness) ; 77 if(brightness<1.0) 78 sprintf(filename, "%sBrightness%.2f.root", path, brightness) ; 79 else 80 sprintf(filename, "%sBrightness%.1f.root", path, brightness) ; 81 sprintf(filename, "%sBrightness%.2f.root", path, brightness) ; 78 82 cout << " the file will be written in " << filename 79 83 << endl ; … … 104 108 105 109 float trig_fwhm,trig_ampl,trig_shape; 106 float fadc_fwhm,fadc_ ampl,fadc_shape;110 float fadc_fwhm,fadc_integral,fadc_shape; 107 111 108 112 // … … 112 116 113 117 // Instance of MFadc and MTrigger needed inside BuildStarLight 114 MTrigger *trigger = new MTrigger(1);115 MFadc *fadc = new MFadc;118 MTrigger *trigger;//= new MTrigger(1); 119 MFadc *fadc;//= new MFadc; 116 120 117 121 if(argc == 1){ … … 132 136 133 137 get_trig_properties(&trig_shape, &trig_ampl, &trig_fwhm); 134 trigger->SetAmpl(trig_ampl); 135 trigger->SetFwhm(trig_fwhm); 138 trigger = new MTrigger(1,0.,0.,trig_ampl,trig_fwhm); 136 139 137 get_fadc_properties(&fadc_shape, &fadc_ampl, &fadc_fwhm); 138 fadc->SetAmpl(fadc_ampl); 139 fadc->SetFwhm(fadc_fwhm); 140 get_fadc_properties(&fadc_shape, &fadc_integral, &fadc_fwhm); 141 fadc = new MFadc(1,fadc_integral,fadc_fwhm,fadc_integral,fadc_fwhm); 140 142 141 143 for (Float_t b=nphe_min; b<=nphe_max; b=b+nphe_pre ) // loop over Brightness
Note:
See TracChangeset
for help on using the changeset viewer.