Changeset 3932 in Sophya for trunk/Cosmo/RadioBeam/mdish.cc
- Timestamp:
- Dec 23, 2010, 7:33:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/mdish.cc
r3931 r3932 183 183 SetThetaPhiRange(); 184 184 SetRespHisNBins(); 185 SetPrtLevel(); 185 186 mcnt_=0; 186 187 } … … 207 208 208 209 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; 210 213 211 214 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; 213 217 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)); 218 224 } 225 if (prtlev_>0) cout << " MultiDish::GetResponse() done ktheta=" << kt << " / MaxNTheta= " << ntet_ << endl; 226 } 219 227 double kx1 = DeuxPI*(dishes_[0].DiameterX())/lambda_; 220 228 double ky1 = DeuxPI*(dishes_[0].DiameterY())/lambda_;
Note:
See TracChangeset
for help on using the changeset viewer.