Changeset 19646 for trunk/Mars
- Timestamp:
- 09/15/19 22:20:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimreflector/MFresnelLens.cc
r19644 r19646 244 244 245 245 if (z<-fH) 246 gLog << warn << "Groove " << i << " deeper (" << z << ") than thickness of lens material (" << fH << ")." << endl;246 *fLog << warn << "Groove " << i << " deeper (" << z << ") than thickness of lens material (" << fH << ")." << endl; 247 247 } 248 248 … … 292 292 if (trans>1) 293 293 { 294 gLog << err << "Transmission larger than 1." << endl;294 *fLog << err << "Transmission larger than 1." << endl; 295 295 return -1; 296 296 } … … 310 310 if (trans>1) 311 311 { 312 gLog << warn << "Transmission at " << lambda << "nm (" << trans << ") after Fresnel correction larger than 1." << endl;312 *fLog << warn << "Transmission at " << lambda << "nm (" << trans << ") after Fresnel correction larger than 1." << endl; 313 313 trans = 1; 314 314 } … … 377 377 // from the entrance of the lens => FIXME: To be checked 378 378 const double rn = n1/n0; 379 const double c = (rn - 1) * (F + d/rn); // FIXME 379 const double c = (rn - 1) * (F + d/rn); // FIXME: try and error with a large d 380 380 return -atan(r/c); 381 382 // F = 50.21 383 // d= 10 d=20 384 // -: 47 43.7 385 // 0: 53.5 57.0 386 // +: 60.3 70.3 381 387 } 382 388 … … 693 699 const int step = outgoing ^ !first ? 1 : -1; 694 700 const int end = outgoing ^ !first ? fGrooves.size() : 1; 695 const int beg = j==0 ? ix : ix+(step); 701 const int beg = j==0 ? ix : ix+step; 702 703 if (step==-1 && ix==1) // can not count downwards from here 704 continue; 696 705 697 706 for (int i=beg; i!=end; i+=step) … … 1377 1386 (lambda<fAbsorptionLength.GetXmin() || lambda>fAbsorptionLength.GetXmax())) 1378 1387 { 1379 gLog << err << "Wavelength " << lambda << "nm out of absorption range [" << fAbsorptionLength.GetXmin() << "nm;" << fAbsorptionLength.GetXmax() << "nm]" << endl;1388 *fLog << err << "Wavelength " << lambda << "nm out of absorption range [" << fAbsorptionLength.GetXmin() << "nm;" << fAbsorptionLength.GetXmax() << "nm]" << endl; 1380 1389 return -1; 1381 1390 } … … 1444 1453 // from the entrance of the lens => FIXME: To be checked 1445 1454 // (Propagating to F means not propagating a distance of F-H from the exit) 1446 p.fVectorPart.SetZ(fH/2); 1455 //p.fVectorPart.SetZ(fH-fH/2/fN);//fH/2); Found by try-and-error 1456 1457 // We are already at -H, adding F and setting Z=0 means going to -(F+H) 1458 p.fVectorPart.SetZ(0);//fH/2); Found by try-and-error 1447 1459 1448 1460 return cnt>=fMinHits && (fMaxHits==0 || cnt<=fMaxHits) ? cnt : -1;; … … 1488 1500 (lambda<fAbsorptionLength.GetXmin() || lambda>fAbsorptionLength.GetXmax())) 1489 1501 { 1490 gLog << err << "Wavelength " << lambda << "nm out of absorption range [" << fAbsorptionLength.GetXmin() << "nm;" << fAbsorptionLength.GetXmax() << "nm]" << endl;1502 *fLog << err << "Wavelength " << lambda << "nm out of absorption range [" << fAbsorptionLength.GetXmin() << "nm;" << fAbsorptionLength.GetXmax() << "nm]" << endl; 1491 1503 return -1; 1492 1504 } … … 1558 1570 { 1559 1571 if (verbose) 1560 gLog << all << e.id() << ": " << e.what() << endl;1572 *fLog << all << e.id() << ": " << e.what() << endl; 1561 1573 1562 1574 // Hit point at bottom surface beyond allowed range
Note:
See TracChangeset
for help on using the changeset viewer.