Changeset 923 for trunk/MagicSoft/Simulation/Detector/ReflectorII/atm.c
- Timestamp:
- 09/05/01 19:09:29 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/ReflectorII/atm.c
r725 r923 28 28 29 29 Log(ATM__SET___LOG, AtmModelNames[atmModel]); 30 31 /* 'erfc' must be inited, so keep the following line. */ 32 Debug("Initing 'erfc': ret=%g\n", erfc(M_PI)); 30 33 } /* end of SetAtmModel */ 31 34 … … 51 54 52 55 int absorption(float wlen, float height, float theta) 53 { int 54 55 if ( RandomNumber > atm(wlen, height, theta)) return1;56 { int ret = 0; /* 0: passed, 1: absorbed */ 57 58 if (RandomNumber > atm(wlen, height, theta)) ret=1; 56 59 57 60 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.