Changeset 19586
- Timestamp:
- 09/02/19 17:32:07 (5 years ago)
- Location:
- trunk/Mars/msimreflector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msimreflector/MReflector.h
r19543 r19586 50 50 virtual Bool_t CanHit(const MQuaternion &p) const; 51 51 52 Int_t ExecuteOptics(MQuaternion &p, MQuaternion &u ) const;52 Int_t ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &wavelength) const; 53 53 54 54 void SetSigmaPSF(Double_t psf); -
trunk/Mars/msimreflector/MSimReflector.cc
r19544 r19586 370 370 // calling the ExecuteMirror function of the mirrors. 371 371 // 372 // If a mirror was hit its index is retu ened, -1 otherwise.372 // If a mirror was hit its index is returned, -1 otherwise. 373 373 // 374 374 // FIXME: Do to lopping over all mirrors for all photons this is the … … 377 377 // this could be accelerated a lot. 378 378 // 379 Int_t MReflector::ExecuteOptics(MQuaternion &p, MQuaternion &u ) const379 Int_t MReflector::ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &) const 380 380 { 381 381 //static const TObjArray *arr = &((MMirror*)fMirrors[0])->fNeighbors; … … 497 497 // w.fVectorPart.SetXYZ(0.2/17, 0.2/17, -(1-TMath::Hypot(0.3, 0.2)/17)); 498 498 499 // FIXME: Take refractive index into account! 500 499 501 // Now propagate the photon to the z-plane in the new coordinate system 500 502 p.PropagateZ0(w); … … 522 524 //*static_cast<MPhotonData*>(cpy2.UncheckedAt(cnt[2]++)) = *dat; 523 525 526 // FIXME: Set refractive index to air at 2200m! 527 524 528 // Now execute the reflection of the photon on the mirrors' surfaces 525 const Int_t num = fReflector->ExecuteOptics(p, w );529 const Int_t num = fReflector->ExecuteOptics(p, w, dat->GetWavelength()); 526 530 if (num<0) 527 531 continue;
Note:
See TracChangeset
for help on using the changeset viewer.