Changeset 1196 for trunk/MagicSoft/Simulation/Detector/Camera
- Timestamp:
- 01/18/02 17:43:08 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r1068 r1196 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1.1 2$21 //= $Revision: 1.13 $ 22 22 //= $Author: blanch $ 23 //= $Date: 200 1-11-13 17:05:14$23 //= $Date: 2002-01-18 17:43:08 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 76 76 static char Loop_filename[PATH_MAX_LENGTH]; //@< special data filename 77 77 static char CT_filename[PATH_MAX_LENGTH]; //@< name of the CT def. file 78 static char NSB_directory[PATH_MAX_LENGTH]; //@< database for NSB 78 static char NSB_directory[PATH_MAX_LENGTH]; //@< database for NSB 79 static int ElecNoise = TRUE; //@< Will we add ElecNoise? 80 static float FADC_Noise = 2.0; //@< Value for FADC ElecNoise 81 static float Trig_Noise = 0.3; //@< Factor for Trigger ElecNoise 79 82 static int simulateNSB = TRUE; //@< Will we simulate NSB? 80 83 static int anaPixels = -1; //@< number of pixels for the analysis 81 84 static float meanNSB; //@< NSB mean value (per pixel) 82 static int nphe2NSB=0; 85 static int nphe2NSB=0; //@< Number of phe from shower to do NSB simulation 83 86 static float qThreshold[TRIGGER_PIXELS]; //@< Threshold values 84 87 static int Individual_Thres = FALSE; … … 167 170 cin.getline(line, LINE_MAX_LENGTH); 168 171 line[strlen(SIGNATURE)] = '\0'; 169 strcpy(line, sign); 172 strcpy(sign, line); 173 cout<< '"' << sign << '"' << '\n'; 174 cout<< "should be: " << SIGNATURE << '\n'; 170 175 if (strcmp(sign, SIGNATURE) != 0) { 171 176 cerr << "ERROR: Signature of parameters file is not correct\n"; … … 252 257 break; 253 258 259 case elec_noise_off: //@< add ElecNoise? 260 261 // we will not add electronic noise for FADC and Trigger channels. 262 ElecNoise = FALSE; 263 FADC_Noise = 0.0; 264 Trig_Noise =0.0; 265 266 break; 267 268 case fadc_noise: //@< FADC ElecNoise 269 270 // value for FADC Elec Noise 271 sscanf(line, "%s %f", token, &FADC_Noise); 272 ElecNoise = TRUE; 273 274 break; 275 276 case trig_noise: //@< add ElecNoise? 277 278 // factor for Trigger Elec Noise 279 sscanf(line, "%s %f", token, &Trig_Noise); 280 ElecNoise = TRUE; 281 282 break; 283 254 284 case nsb_on: //@< simulate NSB? 255 285 … … 696 726 697 727 //!----------------------------------------------------------- 728 // @name add_elec_noise 729 // 730 // @desc are we going to add the ElecNoise? 731 // 732 // @date Mon Jan 14 19:27:56 MET DST 2002 733 //------------------------------------------------------------ 734 // @function 735 736 //!@{ 737 int 738 add_elec_noise(float *fadc, float *trig) 739 { 740 *fadc = FADC_Noise; 741 *trig = Trig_Noise; 742 return ( ElecNoise); 743 } 744 //!@} 745 746 //!----------------------------------------------------------- 698 747 // @name get_nsb 699 748 // … … 1288 1337 // 1289 1338 // $Log: not supported by cvs2svn $ 1339 // Revision 1.12 2001/11/13 17:05:14 blanch 1340 // New input items int the input card parameter list have been included to fill 1341 // the MMcRunHeader. 1342 // There has been also some change to remove warnings in the compilation. 1343 // 1290 1344 // Revision 1.11 2001/07/25 11:38:00 magicsol 1291 1345 // Minnor changes
Note:
See TracChangeset
for help on using the changeset viewer.