Changeset 672
- Timestamp:
- 03/05/01 10:43:18 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
r641 r672 19 19 //= 20 20 //= $RCSfile: creadparam.cxx,v $ 21 //= $Revision: 1. 8$22 //= $Author: magicsol$23 //= $Date: 2001-0 2-23 10:55:43$21 //= $Revision: 1.9 $ 22 //= $Author: blanch $ 23 //= $Date: 2001-03-05 10:43:18 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 77 77 static int anaPixels = -1; //@< number of pixels for the analysis 78 78 static float meanNSB; //@< NSB mean value (per pixel) 79 static int nphe2NSB=0; //@< Number of phe from shower to do NSB simulation 79 80 static float qThreshold; //@< Threshold value 80 81 static char NSB_directory[PATH_MAX_LENGTH]; //@< database for NSB … … 91 92 static int Write_McEvt = TRUE; 92 93 static int Write_McTrig = FALSE; 94 static int Write_McFadc = FALSE; 93 95 static int Write_RawEvt = FALSE; 94 96 static int Write_All_Data = FALSE; … … 116 118 static int Trigger_loop_ltop = 0; 117 119 static int Trigger_loop_utop = 2; 120 static float FADC_response_ampl = MFADC_RESPONSE_AMPLITUDE; 121 static float FADC_response_fwhm = MFADC_RESPONSE_FWHM; 118 122 //!@} 119 123 … … 246 250 247 251 // get value of <NSB> (in photons) 248 sscanf(line, "%s %f ", token, &meanNSB);252 sscanf(line, "%s %f %d", token, &meanNSB, &nphe2NSB); 249 253 250 254 break; … … 361 365 break; 362 366 367 case write_McFadc: //@< to write the McFadc info 368 369 // change boolean value 370 Write_McFadc = TRUE; 371 372 break; 373 363 374 case write_all_data: //@< to write single pixel data 364 375 … … 399 410 break; 400 411 412 case fadc_prop: 413 414 // Get parameters for the fadc response for one phe 415 sscanf(line, "%s %f %f", token, &FADC_response_ampl,&FADC_response_fwhm); 416 417 break; 418 401 419 case trigger_scan: 402 420 … … 614 632 //!@{ 615 633 int 616 get_nsb(float *n )634 get_nsb(float *n, int *m) 617 635 { 618 636 *n = meanNSB; 637 *m = nphe2NSB; 619 638 return ( simulateNSB ); 620 639 } … … 903 922 904 923 //!----------------------------------------------------------- 924 // @name write_McFadc 925 // 926 // @desc write the McFadc class for each event to the .root file 927 // 928 // @return TRUE: we'll write it; FALSE: we won't 929 // 930 //------------------------------------------------------------ 931 // @function 932 933 //!@{ 934 int 935 get_write_McFadc(void) 936 { 937 return ( Write_McFadc ); 938 } 939 //!@} 940 941 //!----------------------------------------------------------- 905 942 // @name write_RawEvt 906 943 // … … 1018 1055 { 1019 1056 return ( Trigger_Scan ); 1057 } 1058 //!@} 1059 1060 //!----------------------------------------------------------- 1061 // @name Fadc_Propeties 1062 // 1063 // @desc fix properties of the FADC response 1064 // 1065 //------------------------------------------------------------ 1066 // @function 1067 1068 //!@{ 1069 void 1070 get_FADC_properties(float *ra, float *rf) 1071 { 1072 *ra=FADC_response_ampl; 1073 *rf=FADC_response_fwhm; 1074 1020 1075 } 1021 1076 //!@} … … 1090 1145 // 1091 1146 // $Log: not supported by cvs2svn $ 1147 // Revision 1.8 2001/02/23 10:55:43 magicsol 1148 // An input commmand that talls the path for the NSB database has been added. 1149 // 1092 1150 // Revision 1.7 2001/01/15 12:37:48 magicsol 1093 1151 // It has been introduced the option to read from the input card the overlaping
Note:
See TracChangeset
for help on using the changeset viewer.