Changeset 3932 in Sophya for trunk/Cosmo/RadioBeam/mdish.cc


Ignore:
Timestamp:
Dec 23, 2010, 7:33:37 PM (15 years ago)
Author:
ansari
Message:

amelioration repicon.cc (decodage arguments) , Reza 23/12/2010

File:
1 edited

Legend:

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

    r3931 r3932  
    183183  SetThetaPhiRange();
    184184  SetRespHisNBins();
     185  SetPrtLevel();
    185186  mcnt_=0;
    186187}
     
    207208
    208209  double dtet = thetamax_/(double)ntet_;
    209   double dphi = phimax_/(double)ntet_;
     210  double dphi = phimax_/(double)nphi_;
     211  cout << " MultiDish::GetResponse() - ThetaMax=" << thetamax_ << " NTheta=" << ntet_
     212       << " PhiMax=" <<  phimax_ << " NPhi=" << nphi_ << endl;
    210213
    211214  double sumw = 0.;
    212   for(int kt=0; kt<ntet_; kt++)
     215  for(int kt=0; kt<ntet_; kt++) {
     216    double theta=(double)kt*dtet;
    213217    for(int jp=0; jp<nphi_; jp++) {
    214       sumw += CumulResp(rd, (double)kt*dtet, (double)jp*dphi);
    215       sumw += CumulResp(rd, (double)kt*dtet, -(double)jp*dphi);
    216       sumw += CumulResp(rd, (double)kt*dtet, (double)jp*dphi+M_PI);
    217       sumw += CumulResp(rd, (double)kt*dtet, -(double)jp*dphi-M_PI);
     218      double phi=(double)jp*dphi;
     219      sumw += CumulResp(rd, theta, phi);
     220      if (theta<1.e-9) continue;
     221      sumw += CumulResp(rd, theta, -phi);
     222      sumw += CumulResp(rd, theta, phi+M_PI);
     223      sumw += CumulResp(rd, theta, -(phi+M_PI));
    218224    }
     225    if (prtlev_>0) cout << "  MultiDish::GetResponse() done ktheta=" << kt << " / MaxNTheta= " << ntet_ << endl;
     226  }
    219227  double kx1 = DeuxPI*(dishes_[0].DiameterX())/lambda_;
    220228  double ky1 = DeuxPI*(dishes_[0].DiameterY())/lambda_;
Note: See TracChangeset for help on using the changeset viewer.