- Timestamp:
- 11/17/04 11:38:28 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MLons/MLons.cxx
r5306 r5418 19 19 fFwhmFadc = 2.0; 20 20 21 fGainFluctuations = 1; 22 21 23 RandomNumber = new TRandom(); 22 24 RandomNumber -> SetSeed(0); … … 26 28 MLons::MLons(Int_t in_shapeT, Float_t in_amplT, Float_t in_FwhmT, 27 29 Int_t in_shapeF, Float_t in_integF, Float_t in_FwhmF, 28 Float_t in_Fadc_Slices_per_ns )30 Float_t in_Fadc_Slices_per_ns, Int_t in_Gain_Fluctuations) 29 31 { 30 32 //-------------------------------------------------------------------- … … 43 45 fFadcSlicesPerNanosec = in_Fadc_Slices_per_ns; 44 46 47 fGainFluctuations = in_Gain_Fluctuations; 48 45 49 MSLStored = new MStarLight; 46 50 … … 63 67 fIntegFadc = 0.; 64 68 fFwhmFadc = 0.; 69 70 fGainFluctuations = 1; 65 71 66 72 MSLStored->Reset(); … … 221 227 strcat(filename_slt, ".slt"); 222 228 223 // If brightness is different it check if the new file has the229 // If brightness is different it checks if the new file has the 224 230 // required parameters. 225 231 // Note: I could be faster to store the whole trigger and fadc … … 236 242 return 0; 237 243 } 244 245 if ( !MSLStored->GetGainFluctuations() && fGainFluctuations) 246 { 247 cout << endl << "ERROR! The read NSB database in " << filename_slt << endl; 248 cout << "has been produced without PMT gain fluctuations. This is incompatible" << endl; 249 cout << "with the camera input card you are using. Please change the camera" << endl; 250 cout << "input card (adding the noise_gain_fluctuations_off command) or" << endl; 251 cout << "produce a new NSB database (using program StarResponse) without" << endl; 252 cout << "gain fluctuations. Exiting..." << endl << endl; 253 return 0; 254 } 255 256 else if ( MSLStored->GetGainFluctuations() && !fGainFluctuations) 257 { 258 cout << endl << "ERROR! The read NSB database in " << filename_slt << endl; 259 cout << "has been produced with PMT gain fluctuations. This is incompatible" << endl; 260 cout << "with the camera input card command noise_gain_fluctuations_off" << endl; 261 cout << "that you are using. Please change the camera input card or produce a" << endl; 262 cout << "new NSB database (using program StarResponse) without gain fluctuations." << endl; 263 cout << "Exiting..." << endl << endl; 264 return 0; 265 } 266 238 267 MSLStored->SetBrightness(in_br); 239 268
Note:
See TracChangeset
for help on using the changeset viewer.