Changeset 3930 in Sophya for trunk/Cosmo/RadioBeam/interfconfigs.cc
- Timestamp:
- Dec 23, 2010, 12:49:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/interfconfigs.cc
r3792 r3930 234 234 } 235 235 236 cout << "CreateConfig B/Debug: -checkSize/lesx=" << lesx.size() << " -Check/lesy=" << lesy.size() << endl;236 cout << "CreateConfigD/Debug: -checkSize/lesx=" << lesx.size() << " -Check/lesy=" << lesy.size() << endl; 237 237 238 238 vector<Dish> vd; … … 265 265 return vd; 266 266 } 267 268 /* --Fonction -- */ 269 vector<Dish> CreateDoubleHexagonConfig(double Ddish, double radius1, double radius2, double Eta) 270 { 271 vector<Dish> vd; 272 int cnt=0; 273 double ang=0.; 274 for(int i=0; i<6; i++) { 275 double x=cos(ang)*radius1; 276 double y=sin(ang)*radius1; 277 cnt++; 278 vd.push_back(Dish(cnt, x, y, Eta*Ddish)); 279 ang += M_PI/3.; 280 } 281 ang=M_PI/6.; 282 for(int i=0; i<6; i++) { 283 double x=cos(ang)*radius2; 284 double y=sin(ang)*radius2; 285 cnt++; 286 vd.push_back(Dish(cnt, x, y, Eta*Ddish)); 287 ang += M_PI/3.; 288 } 289 cout << ">>>CreateDoubleHexagonConfig(" << Ddish << "," << Eta << ") ---> NDishes=" << vd.size() << endl; 290 return vd; 291 }
Note:
See TracChangeset
for help on using the changeset viewer.