Changeset 3163 in Sophya for trunk/Cosmo/RadioBeam/treccyl.cc
- Timestamp:
- Jan 30, 2007, 7:05:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/treccyl.cc
r3160 r3163 33 33 static double freq0 = 2.; // frequence de base 34 34 static double da = 0.25; // pas des antennes le long du cylindre 35 static double snoise = 1.0; //sigma du bruit36 static double tjit = 0. 05; //sigma du jitter en temps37 static double tos = 0. 02; //sigma des offsets en temps35 static double snoise = 0.; //1.0; sigma du bruit 36 static double tjit = 0.; //0.05; sigma du jitter en temps 37 static double tos = 0.; //0.02; sigma des offsets en temps 38 38 static double gmean = 1.; // gain moyen 39 39 static double gsig = 0.; // sigma des gains … … 149 149 150 150 // BRSourceGen sg; 151 int nsf = 10;151 int nsf = 7; 152 152 vector<double> frq; 153 153 frq.push_back(0.1); … … 157 157 158 158 cout << "treccy/testmulticyl: BRSourceGen sg([frq=0.1,0.27,0.38], " << nsf << ")" << endl; 159 BRSourceGen sg(frq, nsf, M_PI/3, M_PI/1000); 159 BRSourceGen sg(frq, nsf, M_PI/3, M_PI/150); 160 int is; 161 for(is=0; is<nsf; is++) sg.angY(is) = 0.; 162 for(is=nsf; is<2*nsf; is++) sg.angY(is) = M_PI/150.; 163 for(is=2*nsf; is<3*nsf; is++) sg.angY(is) = -M_PI/150.; 160 164 // sg.WritePPF(string("brsrcm.ppf")); 161 165 // BRSourceGen sg(string("brsrcm.ppf")); … … 174 178 175 179 mcyl.AddCylinder(0.); 176 mcyl.AddCylinder(100.); 177 mcyl.AddCylinder(300.); 178 mcyl.AddCylinder(700.); 179 mcyl.AddCylinder(1500.); 180 mcyl.AddCylinder(5.); 181 mcyl.AddCylinder(10.); 182 mcyl.AddCylinder(18.); 183 mcyl.AddCylinder(30.); 184 mcyl.AddCylinder(46.); 185 mcyl.AddCylinder(64.); 180 186 181 187 mcyl.SetSources(sg); … … 184 190 185 191 // mcyl.ReconstructCylinderPlaneS(true); 186 mcyl.ReconstructSourceBox( );192 mcyl.ReconstructSourceBox(15, M_PI/500.); 187 193 188 194 POutPersist po(ppfname); … … 192 198 193 199 { 194 TMatrix<r_4> srcplane0 = module(mcyl.GetCylinder(0).getRecSrcPlane()); 200 // TMatrix<r_4> srcplane0 = module(mcyl.GetCylinder(0).getRecSrcPlane()); 201 TMatrix< complex<r_4> > srcplane0 = mcyl.GetCylinder(0).getRecSrcPlane(); 195 202 po << PPFNameTag("recsrcplane0") << srcplane0; 196 203 } 197 204 198 205 { 199 TMatrix<r_4> srcplane3 = module(mcyl.GetCylinder(3).getRecSrcPlane()); 206 // TMatrix<r_4> srcplane2 = module(mcyl.GetCylinder(3).getRecSrcPlane()); 207 TMatrix< complex<r_4> > srcplane2 = mcyl.GetCylinder(2).getRecSrcPlane(); 208 po << PPFNameTag("recsrcplane2") << srcplane2; 209 } 210 211 { 212 // TMatrix<r_4> srcplane3 = module(mcyl.GetCylinder(3).getRecSrcPlane()); 213 TMatrix< complex<r_4> > srcplane3 = mcyl.GetCylinder(0).getRecSrcPlane(); 200 214 po << PPFNameTag("recsrcplane3") << srcplane3; 201 215 } … … 205 219 int kfmin, kfmax; 206 220 po << PPFNameTag("recsrcbox") << mcyl.getRecSrcBox(); 207 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[0] - 3; kfmax = kfmin+6;221 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[0] - 1; kfmax = kfmin+2; 208 222 { 209 223 TMatrix<r_4> slice0 = mcyl.getRecXYSlice(kfmin, kfmax); 210 224 po << PPFNameTag("recXYf0") << slice0; 211 225 } 212 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[1] - 3; kfmax = kfmin+6;226 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[1] - 1; kfmax = kfmin+2; 213 227 { 214 228 TMatrix<r_4> slice1 = mcyl.getRecXYSlice(kfmin, kfmax); 215 229 po << PPFNameTag("recXYf1") << slice1; 216 230 } 217 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[2] - 3; kfmax = kfmin+6;231 kfmin = mcyl.getRecSrcBox().SizeZ()*frq[2] - 1; kfmax = kfmin+2; 218 232 { 219 233 TMatrix<r_4> slice2 = mcyl.getRecXYSlice(kfmin, kfmax);
Note:
See TracChangeset
for help on using the changeset viewer.