Changeset 5408 for trunk/MagicSoft/Simulation/Detector/StarResponse
- Timestamp:
- 11/16/04 11:41:22 (20 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/StarResponse
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx
r5326 r5408 29 29 fFwhmFadc = 0.; 30 30 31 fGainFluctuations = 1; 31 32 32 33 fTrig = new Float_t[fBinsTrig]; … … 60 61 fFwhmFadc = 0.; 61 62 63 fGainFluctuations = 1; 62 64 63 65 for (Int_t i= 0; i < fBinsTrig ; i++) … … 347 349 fwrite ( &fIntegFadc , sizeof(Float_t), 1, datei ); 348 350 fwrite ( &fFwhmFadc , sizeof(Float_t), 1, datei ); 351 352 fwrite ( &fGainFluctuations, sizeof(Int_t), 1, datei ); 349 353 350 354 fwrite (fTrig, sizeof(Float_t), fBinsTrig, datei); … … 425 429 fread ( &fFwhmFadc , sizeof(Float_t), 1, datei ); 426 430 431 fread ( &fGainFluctuations, sizeof(Int_t), 1, datei ); 432 427 433 if (fTrig) 428 434 delete [] fTrig; -
trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.hxx
r5248 r5408 16 16 #include "TRandom2.h" 17 17 18 #define VERSIONSR 1003.0 18 // 19 // Version 1004: 20 // Added data member fGainFluctuations, which indicates whether PMT 21 // gain fluctuations have been simulated or not in producing the noise 22 // database. A.M. 16/11/2004 23 24 #define VERSIONSR 1004.0 25 19 26 #define TIMERANGE 10000 // ns 20 27 … … 52 59 Int_t fResponseSlicesFadc; 53 60 61 Int_t fGainFluctuations; // Is 0 if PMT gain fluctuations have been 62 // disabled in the input card. By default it is 1 63 54 64 public: 55 65 … … 66 76 void SetFwhmFadc(Float_t in); 67 77 void SetFadcSlicesPerNanosec(Float_t in); 68 78 void SetGainFluctuations(Int_t in) { fGainFluctuations = in; } 69 79 70 80 Float_t GetBrightness(); … … 78 88 Float_t GetTimeRange() {return fTimeRange;} 79 89 Float_t GetFadcSlicesPerNanosec() {return fFadcSlicesPerNanosec;} 90 Int_t GetGainFluctuations() const {return fGainFluctuations;} 80 91 81 92 void SetTrigResponse(Float_t *in); -
trunk/MagicSoft/Simulation/Detector/StarResponse/starresponse.cxx
r5254 r5408 133 133 readparam(parfilename); 134 134 135 // Setting the parameters read from t ehinput card135 // Setting the parameters read from the input card 136 136 strcpy( path,get_database_path()); 137 137 … … 140 140 get_trig_properties(&trig_shape, &trig_ampl, &trig_fwhm); 141 141 trigger = new MTrigger(1,0.,0.,trig_ampl,trig_fwhm); 142 143 if ( ! apply_gain_fluctuations()) 144 trigger->SetGainFluctuations(kFALSE); 142 145 143 146 get_fadc_properties(&fadc_shape, &fadc_integral, &fadc_fwhm, &fadc_slices_per_ns);
Note:
See TracChangeset
for help on using the changeset viewer.