Last change
on this file since 352 was 341, checked in by petry, 25 years ago |
First version of the Starfield Generator in this repository.
Fully functional version using the SKY2000 star catalog.
|
File size:
709 bytes
|
Line | |
---|
1 | ////////////////////////////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // Here we define the functions which will give a random coordinate pair (x,y) in the ground
|
---|
4 | // for every photon and another function which will give a random arrival time inside a time
|
---|
5 | // window for each arriving photon.
|
---|
6 | //
|
---|
7 | // Mireia Dosil 24-II-99 IFAE
|
---|
8 | ////////////////////////////////////////////////////////////////////////////////////////////////
|
---|
9 |
|
---|
10 | #include "photon.hxx"
|
---|
11 |
|
---|
12 |
|
---|
13 | // Constructor function.
|
---|
14 |
|
---|
15 | photon::photon(){
|
---|
16 |
|
---|
17 | u=-999.;
|
---|
18 | v=-999.;
|
---|
19 | lambda_nm=-999.;
|
---|
20 | starnum=-999;
|
---|
21 | arrtime_sec=0.0;
|
---|
22 | x_m=0.0;
|
---|
23 | y_m=0.0;
|
---|
24 | }
|
---|
25 |
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|
33 |
|
---|
34 |
|
---|
35 |
|
---|
36 |
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.