Changeset 10054
- Timestamp:
- 11/22/10 16:10:06 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r10053 r10054 23 23 * Makefile.rules: 24 24 - use -C option of make instead of cd 25 26 * msimreflector/MSimRays.cc: 27 - added some comments 28 - fixed timing for a point source 25 29 26 30 -
trunk/Mars/msimreflector/MSimRays.cc
r9922 r10054 164 164 MPhotonData &dat = *static_cast<MPhotonData*>(arr.UncheckedAt(idx)); 165 165 166 // Get radom incident point on the mirror plane. 166 167 const Double_t x = gRandom->Uniform(-maxr, maxr); 167 168 const Double_t y = gRandom->Uniform(-maxr, maxr); … … 170 171 continue; 171 172 173 // The is the incident direction of the photon 172 174 // h==0 means infinitiy 173 175 const TVector3 u = fHeight>0 ? TVector3(x, y, -h).Unit() : TVector3(0, 0, -1); … … 176 178 // CORSIKA-orig: x(north), y(west), z(up), t(time) 177 179 // NOW: x(east), y(north), z(up), t(time) 178 MQuaternion p(TVector3(x, y, 0) );180 MQuaternion p(TVector3(x, y, 0), fHeight>0 ? TMath::Sqrt(x*x + y*y + h*h): 0); 179 181 MQuaternion w(u, conv); 180 182
Note:
See TracChangeset
for help on using the changeset viewer.