Changeset 682 for trunk/MagicSoft/Simulation/Detector/StarResponse
- Timestamp:
- 03/05/01 11:01:44 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/srreadparam.cxx
r628 r682 19 19 //= 20 20 //= $RCSfile: srreadparam.cxx,v $ 21 //= $Revision: 1. 1$22 //= $Author: magicsol$23 //= $Date: 2001-0 2-23 10:13:44 $21 //= $Revision: 1.2 $ 22 //= $Author: blanch $ 23 //= $Date: 2001-03-05 11:01:44 $ 24 24 //= 25 25 //=////////////////////////////////////////////////////////////////////// … … 72 72 static float Simulated_Phe_u = 50.0; //@< higher limit for phe loop 73 73 static float Simulated_Phe_p = 0.1; //@< precision for phe loop 74 static float FADC_Shape=0.0; 75 static float FADC_Ampl=MFADC_RESPONSE_AMPLITUDE; 76 static float FADC_FWHM=MFADC_RESPONSE_FWHM; 77 static float Trig_Shape=0.0; 78 static float Trig_Ampl=1.0; 79 static float Trig_FWHM=2.0; 80 static int Write_Root=0; 74 81 //!@} 75 82 … … 141 148 case simulated_phe: //@< limits for the phe loop 142 149 143 // get energy range144 150 sscanf(line, "%s %f %f %f", token, &Simulated_Phe_l, &Simulated_Phe_u, 145 151 &Simulated_Phe_p); 146 152 147 153 break; 154 155 case trig_properties: //@< shape of trigger response 156 157 sscanf(line, "%s %f %f %f", token, &Trig_Shape, &Trig_Ampl, 158 &Trig_FWHM); 159 160 break; 161 162 case fadc_properties: //@< shape of fadc response 163 164 sscanf(line, "%s %f %f %f", token, &FADC_Shape, &FADC_Ampl, 165 &FADC_FWHM); 166 167 break; 168 169 case write_root: //@< Write histogram 170 171 Write_Root = 1; 148 172 149 173 case end_file: //@< end of the parameters file … … 207 231 //!@} 208 232 233 //!----------------------------------------------------------- 234 // @name get_trig_properties 235 // 236 // @desc return shape of the single phe trigger response 237 // 238 // @var *shape number to indentify the shape (0 ->gaussian) 239 // @var *ampl Amplitud of the gaussian response 240 // @var *fwhm FWHM of the gaussian response 241 // @return void 242 // 243 // @date Wed Feb 21 18:04:03 CET 2001 244 //------------------------------------------------------------ 245 // @function 246 247 //!@{ 248 void 249 get_trig_properties(float *shape, float *ampl, float *fwhm) 250 { 251 *shape = Trig_Shape; 252 *ampl = Trig_Ampl; 253 *fwhm = Trig_FWHM; 254 } 255 //!@} 256 257 //!----------------------------------------------------------- 258 // @name get_fadc_properties 259 // 260 // @desc return shape of the single phe FADC response 261 // 262 // @var *shape number to indentify the shape (0 ->gaussian) 263 // @var *ampl Amplitud of the gaussian response 264 // @var *fwhm FWHM of the gaussian response 265 // @return void 266 // 267 // @date Wed Feb 21 18:04:03 CET 2001 268 //------------------------------------------------------------ 269 // @function 270 271 //!@{ 272 void 273 get_fadc_properties(float *shape, float *ampl, float *fwhm) 274 { 275 *shape = FADC_Shape; 276 *ampl = FADC_Ampl; 277 *fwhm = FADC_FWHM; 278 } 279 //!@} 280 281 //!----------------------------------------------------------- 282 // @name get_write_root 283 // 284 // @desc get boolean to write root files 285 // 286 // @return 0 (false) or 1 (true) 287 // 288 // @date Fri Mar 2 16:17:26 CET 2001 289 //------------------------------------------------------------ 290 // @function 291 292 //!@{ 293 int 294 get_write_root(void) 295 { 296 return (Write_Root); 297 } 298 //!@} 209 299 210 300 //=------------------------------------------------------------ … … 214 304 // 215 305 // $Log: not supported by cvs2svn $ 306 // Revision 1.1 2001/02/23 10:13:44 magicsol 307 // It read form an input card (defeult=starresponse.par) the parameters that 308 // are needed for the starresponse program. 309 // 216 310 //!@} 217 311
Note:
See TracChangeset
for help on using the changeset viewer.