GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
causticdata.h
1//
2// causticdata.h
3// SLsimLib
4//
5// Created by bmetcalf on 5/6/13.
6//
7//
8
9#ifndef __SLsimLib__causticdata__
10#define __SLsimLib__causticdata__
11
12#include <iostream>
13#include "standard.h"
14#include "utilities_slsim.h"
15#include "simpleTree.h"
16#include "simpleTreeVec.h"
17#include "grid_maintenance.h"
18
19/*
20struct CausticSummary{
21 CausticSummary(){}
22 CausticSummary(const CausticSummary &tmp){
23 redshift = tmp.redshift;
24 crit_center = tmp.crit_center;
25 crit_radius[0] = tmp.crit_radius[0];
26 crit_radius[1] = tmp.crit_radius[1];
27 crit_radius[2] = tmp.crit_radius[2];
28 crit_area = tmp.crit_area;
29 crit_type = tmp.crit_type;
30
31 caustic_center = tmp.caustic_center;
32 caustic_radius[0] = tmp.caustic_radius[0];
33 caustic_radius[1] = tmp.caustic_radius[1];
34 caustic_radius[2] = tmp.caustic_radius[2];
35 caustic_area = tmp.caustic_area;
36
37 };
38
39 CausticSummary &operator=(const CausticSummary &tmp){
40 if(&tmp==this) return *this;
41
42 redshift = tmp.redshift;
43 crit_center = tmp.crit_center;
44 crit_radius[0] = tmp.crit_radius[0];
45 crit_radius[1] = tmp.crit_radius[1];
46 crit_radius[2] = tmp.crit_radius[2];
47 crit_area = tmp.crit_area;
48 crit_type = tmp.crit_type;
49
50 caustic_center = tmp.caustic_center;
51 caustic_radius[0] = tmp.caustic_radius[0];
52 caustic_radius[1] = tmp.caustic_radius[1];
53 caustic_radius[2] = tmp.caustic_radius[2];
54 caustic_area = tmp.caustic_area;
55
56 return *this;
57 }
59 double redshift;
61 Point_2d crit_center;
63 double crit_radius[3];
65 double crit_area;
67 CritType crit_type;
69 Point_2d caustic_center;
71 double caustic_radius[3];
73 double caustic_area;
74};
75
76
85
89
95
101
104
109
112
114
116
119
121
123
127
129
131
134
179//std::ostream &operator<<(std::ostream &os, CausticSummary const &caust);
180
181#endif /* defined(__SLsimLib__causticdata__) */