Changeset 3769 in Sophya for trunk/Cosmo/RadioBeam/mdish.h
- Timestamp:
- May 7, 2010, 6:44:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/mdish.h
r3756 r3769 60 60 // Circular dish 61 61 Dish(int id, double x, double y, double diam) 62 : id_(id), X(x), Y(y), D(diam), Dx( 0.), Dy(0.), fgcirc_(true) { }62 : id_(id), X(x), Y(y), D(diam), Dx(D), Dy(D), fgcirc_(true) { } 63 63 // Receiver with rectangular type answer in kx,ky plane 64 64 Dish(int id, double x, double y, double dx, double dy) 65 : id_(id), X(x), Y(y), D( 0.), Dx(dx), Dy(dy), fgcirc_(false) { }65 : id_(id), X(x), Y(y), D(sqrt(dx*dy)), Dx(dx), Dy(dy), fgcirc_(false) { } 66 66 Dish(Dish const& a) 67 67 : id_(a.id_), X(a.X), Y(a.Y), D(a.D), Dx(a.Dx), Dy(a.Dy), fgcirc_(a.fgcirc_) { } 68 68 inline bool isCircular() { return fgcirc_; } 69 69 inline int ReflectorId() { return id_; } 70 inline double Diameter() { return D; } 71 inline double DiameterX() { return Dx; } 72 inline double DiameterY() { return Dx; } 70 73 71 74 int id_; // numero de reflecteur … … 83 86 void Define(r_8 xMin,r_8 xMax,int_4 nxBin,r_8 yMin,r_8 yMax,int_4 nyBin); 84 87 double Add(r_8 x, r_8 y, r_8 w, bool fgfh); 88 void SetZeroBin(r_8 x=0, r_8 y=0); 85 89 inline double WBinX() { return dxb; } 86 90 inline double WBinY() { return dyb; } … … 90 94 r_8 dxb,dyb; 91 95 sa_size_t nx,ny; 96 sa_size_t ixb0, jyb0; 92 97 TArray<r_8> aw; 93 98 double sumw0; … … 109 114 double CumulResp(Four2DResponse& rd, double theta=0., double phi=0.); 110 115 inline size_t NbDishes() { return dishes_.size(); } 116 inline Dish& operator[](size_t k) { return dishes_[k]; } 111 117 118 virtual Histo2D PosDist(int nx=30, int ny=30, double dmax=0.); 119 120 protected: 112 121 double AddToHisto(double kx0, double ky0, double x, double y, double w, bool fgfh); 113 122
Note:
See TracChangeset
for help on using the changeset viewer.