Changeset 3164 in Sophya for trunk/Cosmo/RadioBeam/treccyl.cc


Ignore:
Timestamp:
Jan 31, 2007, 7:17:31 PM (19 years ago)
Author:
ansari
Message:

modifs et corrections diverses ds treccyl.cc et recbeam.pic, Reza 31/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/treccyl.cc

    r3163 r3164  
    3333static double freq0 = 2.;  // frequence de base
    3434static double da = 0.25;     // pas des antennes le long du cylindre
    35 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
     35static double snoise = 1.0;  // sigma du bruit
     36static double tjit = 0.05;   // sigma du jitter en temps
     37static double tos = 0.02;    // sigma des offsets en temps
    3838static double gmean = 1.;    // gain moyen
    3939static double gsig = 0.;     // sigma des gains
     
    149149
    150150  // BRSourceGen sg;
    151   int nsf = 7;
     151  int nsf = 6;
    152152  vector<double> frq;
    153153  frq.push_back(0.1);
     
    157157 
    158158  cout << "treccy/testmulticyl: BRSourceGen sg([frq=0.1,0.27,0.38], " << nsf << ")" << endl;
    159   BRSourceGen sg(frq, nsf, M_PI/3, M_PI/150);
     159  BRSourceGen sg(frq, nsf, M_PI/3, M_PI/60);
     160  /*
    160161  int is;
    161162  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.;
     163  for(is=nsf; is<2*nsf; is++)     sg.angY(is) = M_PI/30.;
     164  for(is=2*nsf; is<3*nsf; is++)     sg.angY(is) = -M_PI/30.;
     165  */
    164166  // sg.WritePPF(string("brsrcm.ppf"));
    165167  // BRSourceGen  sg(string("brsrcm.ppf"));
     
    177179  mcyl.SetGains(gmean, gsig, nantgz);
    178180
     181  /*
     182  for(int kkc=0; kkc<12; kkc++)
     183    mcyl.AddCylinder(5.*kkc);
     184  */
     185 
    179186  mcyl.AddCylinder(0.);
    180187  mcyl.AddCylinder(5.);
    181   mcyl.AddCylinder(10.);
    182   mcyl.AddCylinder(18.);
    183   mcyl.AddCylinder(30.);
    184   mcyl.AddCylinder(46.);
    185   mcyl.AddCylinder(64.);
    186 
     188  mcyl.AddCylinder(15.);
     189  mcyl.AddCylinder(35.);
     190  mcyl.AddCylinder(65.);
     191 
    187192  mcyl.SetSources(sg);
    188193 
     
    190195
    191196  //  mcyl.ReconstructCylinderPlaneS(true);
    192   mcyl.ReconstructSourceBox(15, M_PI/500.);
     197  mcyl.ReconstructSourceBox(10, M_PI/600.);
    193198
    194199  POutPersist po(ppfname);
     
    219224  int kfmin, kfmax;
    220225  po << PPFNameTag("recsrcbox") << mcyl.getRecSrcBox();
    221   kfmin = mcyl.getRecSrcBox().SizeZ()*frq[0] - 1;  kfmax = kfmin+2;
     226  kfmin = mcyl.getRecSrcBox().SizeZ()/0.5*frq[0] - 2;  kfmax = kfmin+2;
     227  cout << "testmulticyl/Info: slice0 kfmin=" << kfmin << " kfmax=" << kfmax << endl;
    222228  {
    223229  TMatrix<r_4> slice0 = mcyl.getRecXYSlice(kfmin, kfmax);
    224230  po << PPFNameTag("recXYf0") << slice0;
    225231  }
    226   kfmin = mcyl.getRecSrcBox().SizeZ()*frq[1] - 1;  kfmax = kfmin+2;
     232  kfmin = mcyl.getRecSrcBox().SizeZ()/0.5*frq[1] - 2;  kfmax = kfmin+2;
     233  cout << "testmulticyl/Info: slice1 kfmin=" << kfmin << " kfmax=" << kfmax << endl;
    227234  {
    228235  TMatrix<r_4> slice1 = mcyl.getRecXYSlice(kfmin, kfmax);
    229236  po << PPFNameTag("recXYf1") << slice1;
    230237  }
    231   kfmin = mcyl.getRecSrcBox().SizeZ()*frq[2] - 1;  kfmax = kfmin+2;
     238  kfmin = mcyl.getRecSrcBox().SizeZ()/0.5*frq[2] - 2;  kfmax = kfmin+2;
     239  cout << "testmulticyl/Info: slice2 kfmin=" << kfmin << " kfmax=" << kfmax << endl;
    232240  {
    233241  TMatrix<r_4> slice2 = mcyl.getRecXYSlice(kfmin, kfmax);
Note: See TracChangeset for help on using the changeset viewer.