- Timestamp:
- 07/17/03 00:25:48 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r2278 r2280 1 1 -*-*- END -*-*- 2 2003/07/16 - Thomas Bretz (La Palma) 3 4 * bending_magic.txt: 5 - new bending correction. Calculated from new stars and 6 recalculated old ones (old positions where wrong due 7 to a bug in the observatory coordinates) 8 9 * catalog/Slalib.[h,cc]: 10 - fixed a bug in the Hms2Deg and Dms2Deg (negative hours, degs 11 where treated incorrect!) 12 - added many new conversion functions 13 14 * devdrv/macs.[h,cc]: 15 - commented SetHome 16 17 * gui/MGCosy.[h,cc]: 18 - implemented button to write prepos 19 - implemented star list 20 21 * gui/MGSkyPosition.cc: 22 - changed calculation of h,m,s etc to new Slalib functions 23 24 * main/MCaos.cc: 25 - changed detection limit from 4.0 to 3.0 26 27 28 2 29 2003/07/15 - Thomas Bretz (La Palma) 3 30 -
trunk/MagicSoft/Cosy/bending_magic.txt
r2278 r2280 1 MAGIC1 2003/07/1 5 13:28:46.7833261 MAGIC1 2003/07/16 16:15:09.783074 2 2 S 00 000000 000000 0000000 3 IA 141.81712-14 IE -9.07 36584-13 IA 501.79683 -1 4 IE -9.0710418 -1 5 5 CA 0 -1 6 NPAE 0.14 617499-16 NPAE 0.14889374 -1 7 7 AN 0 -1 8 AW -1.5 469003-18 AW -1.5600339 -1 9 9 NRX 0 -1 10 10 NRY 0 -1 -
trunk/MagicSoft/Cosy/catalog/Slalib.cc
r1758 r2280 16 16 Slalib::~Slalib() 17 17 { 18 } 19 20 Double_t Slalib::Trunc(Double_t val) 21 { 22 /* dint(A) - truncate to nearest whole number towards zero (double) */ 23 return val<0 ? TMath::Ceil(val) : TMath::Floor(val); 24 } 25 26 Double_t Slalib::Round(Double_t val) 27 { 28 /* dnint(A) - round to nearest whole number (double) */ 29 return val<0 ? TMath::Ceil(val-0.5) : TMath::Floor(val+0.5); 18 30 } 19 31 … … 45 57 return ZdAz(kPiDiv2-alt, az); 46 58 } 59 60 Double_t Slalib::Hms2Sec(Int_t deg, UInt_t min, Double_t sec, Char_t sgn) 61 { 62 const Double_t rc = TMath::Sign((60.0 * (60.0 * (Double_t)TMath::Abs(deg) + (Double_t)min) + sec), (Double_t)deg); 63 return sgn=='-' ? -rc : rc; 64 } 65 66 Double_t Slalib::Dms2Rad(Int_t deg, UInt_t min, Double_t sec, Char_t sgn) 67 { 68 /* pi/(180*3600): arcseconds to radians */ 69 #define DAS2R 4.8481368110953599358991410235794797595635330237270e-6 70 return Hms2Sec(deg, min, sec, sgn)*DAS2R; 71 } 72 73 Double_t Slalib::Hms2Rad(Int_t hor, UInt_t min, Double_t sec, Char_t sgn) 74 { 75 /* pi/(12*3600): seconds of time to radians */ 76 #define DS2R 7.2722052166430399038487115353692196393452995355905e-5 77 return Hms2Sec(hor, min, sec, sgn)*DS2R; 78 } 79 80 Double_t Slalib::Dms2Deg(Int_t deg, UInt_t min, Double_t sec, Char_t sgn) 81 { 82 return Hms2Sec(deg, min, sec, sgn)/3600.; 83 } 84 85 Double_t Slalib::Hms2Deg(Int_t hor, UInt_t min, Double_t sec, Char_t sgn) 86 { 87 return Hms2Sec(hor, min, sec, sgn)/240.; 88 } 89 90 Double_t Slalib::Dms2Hor(Int_t deg, UInt_t min, Double_t sec, Char_t sgn) 91 { 92 return Hms2Sec(deg, min, sec, sgn)/15.; 93 } 94 95 Double_t Slalib::Hms2Hor(Int_t hor, UInt_t min, Double_t sec, Char_t sgn) 96 { 97 return Hms2Sec(hor, min, sec, sgn)/3600.; 98 } 99 100 void Slalib::Day2Hms(Double_t day, Char_t &sgn, UShort_t &hor, UShort_t &min, UShort_t &sec) 101 { 102 /* Handle sign */ 103 sgn = day<0?'-':'+'; 104 105 /* Round interval and express in smallest units required */ 106 Double_t a = Round(86400. * TMath::Abs(day)); // Days to seconds 107 108 /* Separate into fields */ 109 const Double_t ah = Trunc(a/3600.); 110 a -= ah * 3600.; 111 const Double_t am = Trunc(a/60.); 112 a -= am * 60.; 113 const Double_t as = Trunc(a); 114 115 /* Return results */ 116 hor = (UShort_t)ah; 117 min = (UShort_t)am; 118 sec = (UShort_t)as; 119 } 120 121 void Slalib::Rad2Hms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec) 122 { 123 Day2Hms(rad/(TMath::Pi()*2), sgn, deg, min, sec); 124 } 125 126 void Slalib::Rad2Dms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec) 127 { 128 Rad2Hms(rad*15, sgn, deg, min, sec); 129 } 130 131 void Slalib::Deg2Dms(Double_t d, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec) 132 { 133 Day2Hms(d/24, sgn, deg, min, sec); 134 } 135 136 void Slalib::Deg2Hms(Double_t d, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec) 137 { 138 Rad2Hms(d/360, sgn, deg, min, sec); 139 } 140 141 void Slalib::Hor2Dms(Double_t h, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec) 142 { 143 Day2Hms(h*15/24, sgn, deg, min, sec); 144 } 145 146 void Slalib::Hor2Hms(Double_t h, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec) 147 { 148 Day2Hms(h/24, sgn, deg, min, sec); 149 } 150 151 void Slalib::Day2Hm(Double_t day, Char_t &sgn, UShort_t &hor, Double_t &min) 152 { 153 /* Handle sign */ 154 sgn = day<0?'-':'+'; 155 156 /* Round interval and express in smallest units required */ 157 Double_t a = Round(86400. * TMath::Abs(day)); // Days to seconds 158 159 /* Separate into fields */ 160 const Double_t ah = Trunc(a/3600.); 161 a -= ah * 3600.; 162 163 /* Return results */ 164 hor = (UShort_t)ah; 165 min = a/60.; 166 } 167 168 void Slalib::Rad2Hm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min) 169 { 170 Day2Hm(rad/(TMath::Pi()*2), sgn, deg, min); 171 } 172 173 void Slalib::Rad2Dm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min) 174 { 175 Rad2Hm(rad*15, sgn, deg, min); 176 } 177 178 void Slalib::Deg2Dm(Double_t d, Char_t &sgn, UShort_t °, Double_t &min) 179 { 180 Day2Hm(d/24, sgn, deg, min); 181 } 182 183 void Slalib::Deg2Hm(Double_t d, Char_t &sgn, UShort_t °, Double_t &min) 184 { 185 Rad2Hm(d/360, sgn, deg, min); 186 } 187 188 void Slalib::Hor2Dm(Double_t h, Char_t &sgn, UShort_t °, Double_t &min) 189 { 190 Day2Hm(h*15/24, sgn, deg, min); 191 } 192 193 void Slalib::Hor2Hm(Double_t h, Char_t &sgn, UShort_t °, Double_t &min) 194 { 195 Day2Hm(h/24, sgn, deg, min); 196 } 197 -
trunk/MagicSoft/Cosy/catalog/Slalib.h
r1784 r2280 13 13 double fAlpha; 14 14 15 static Double_t Round(Double_t val); 16 static Double_t Trunc(Double_t val); 17 15 18 public: 16 19 Slalib(MObservatory::LocationName_t key); 17 20 virtual ~Slalib(); 18 21 19 static Double_t Dms2Rad(Int_t deg, UInt_t min, Double_t sec) 20 { 21 /* pi/(180*3600): arcseconds to radians */ 22 #define DAS2R 4.8481368110953599358991410235794797595635330237270e-6 23 return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec); 24 } 22 static Double_t Hms2Sec(Int_t deg, UInt_t min, Double_t sec, char sgn='+'); 23 static Double_t Dms2Rad(Int_t deg, UInt_t min, Double_t sec, Char_t sgn='+'); 24 static Double_t Hms2Rad(Int_t hor, UInt_t min, Double_t sec, Char_t sgn='+'); 25 static Double_t Dms2Deg(Int_t deg, UInt_t min, Double_t sec, Char_t sgn='+'); 26 static Double_t Hms2Deg(Int_t hor, UInt_t min, Double_t sec, Char_t sgn='+'); 27 static Double_t Dms2Hor(Int_t deg, UInt_t min, Double_t sec, Char_t sgn='+'); 28 static Double_t Hms2Hor(Int_t hor, UInt_t min, Double_t sec, Char_t sgn='+'); 25 29 26 static Double_t Hms2Rad(Int_t hor, UInt_t min, Double_t sec) 27 { 28 /* pi/(12*3600): seconds of time to radians */ 29 #define DS2R 7.2722052166430399038487115353692196393452995355905e-5 30 return DS2R * (60.0 * (60.0 * (Double_t)hor + (Double_t)min) + sec); 31 } 30 static void Day2Hms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 31 static void Rad2Dms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 32 static void Rad2Hms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 33 static void Deg2Dms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 34 static void Deg2Hms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 35 static void Hor2Dms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 36 static void Hor2Hms(Double_t rad, Char_t &sgn, UShort_t °, UShort_t &min, UShort_t &sec); 37 38 static void Day2Hm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 39 static void Rad2Dm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 40 static void Rad2Hm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 41 static void Deg2Dm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 42 static void Deg2Hm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 43 static void Hor2Dm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 44 static void Hor2Hm(Double_t rad, Char_t &sgn, UShort_t °, Double_t &min); 32 45 33 46 virtual void SetMjd(double mjd); -
trunk/MagicSoft/Cosy/devdrv/macs.cc
r2278 r2280 362 362 WaitForSdo(0x2002); 363 363 } 364 364 /* 365 365 void Macs::SetHome(LWORDS_t pos, WORD_t maxtime) 366 366 { … … 384 384 StartHostGuarding(); 385 385 } 386 386 */ 387 387 void Macs::SetVelocity(LWORD_t vel) 388 388 { -
trunk/MagicSoft/Cosy/devdrv/macs.h
r2278 r2280 80 80 void ReqVelRes(); 81 81 void ReqRes(); 82 void SetHome(LWORDS_t pos=0, WORD_t maxtime=25);82 //void SetHome(LWORDS_t pos=0, WORD_t maxtime=25); 83 83 void SetAcceleration(LWORD_t acc); 84 84 void SetDeceleration(LWORD_t dec); -
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r2278 r2280 1 1 #include "MGCosy.h" 2 2 3 #include <iomanip.h> 3 4 #include <iostream.h> 4 5 5 6 #include "msgqueue.h" 6 7 #include "coord.h" 8 #include "slalib.h" 7 9 8 10 #include <TROOT.h> … … 64 66 kCB_PredefPos, 65 67 kCB_StarList, 68 kPB_SavePreDef, 69 kPB_SaveStar, 66 70 67 71 // kLog … … 323 327 while (1) 324 328 { 329 Double_t zd, az; 330 fin >> zd >> az; 331 325 332 TString str; 326 Double_t zd, az; 327 fin >> str >> zd >> az; 333 str.ReadLine(fin); 328 334 if (!fin) 329 335 break; 336 330 337 box->AddEntry(str, i++); 331 332 fStarList.Add(zd, az); 338 fPreDefList.Add(zd, az); 333 339 } 334 340 } … … 336 342 void MGCosy::CreateStarList(TGCompositeFrame *tf1) 337 343 { 338 /*339 344 TGComboBox *box = new TGComboBox(tf1, kCB_StarList); 340 box->Resize(1 20, 20);345 box->Resize(170, 20); 341 346 box->Associate(this); 342 347 343 348 TGLayoutHints *lay = new TGLayoutHints(kLHintsLeft|kLHintsTop, 344 27, 0, 200, 0);349 27, 0, 70, 0); 345 350 tf1->AddFrame(box, lay); 346 351 … … 358 363 while (1) 359 364 { 360 TString str;361 365 Int_t h, m, s, d, am, as; 362 366 fin >> h >> m >> s >> d >> am >> as; 367 368 TString str; 369 str.ReadLine(fin); 363 370 if (!fin) 364 371 break; … … 366 373 box->AddEntry(str, i++); 367 374 368 fStarList.Add(zd, az); 369 } 370 */ 375 fStarList.Add(Slalib::Hms2Hor(h, m, s), Slalib::Dms2Deg(d, am, as)); 376 } 371 377 } 372 378 … … 513 519 fList->Add(but); 514 520 521 but = new TGTextButton(tf4, "TPoint", kPB_TPOINT); 522 but->Resize(50, 25); 523 but->Move(176/*231*/, 213); 524 but->SetToolTipText("Trigger writing a tpoint coordinate pair."); 525 but->Associate(this); 526 fList->Add(but); 527 515 528 #ifdef EXPERT 529 but= new TGTextButton(tf1, "New Position", kPB_SavePreDef); 530 but->Resize(80, 25); 531 but->Move(165, 197); 532 but->SetToolTipText("Save new predefined position."); 533 but->Associate(this); 534 fList->Add(but); 535 536 but= new TGTextButton(tf4, "New", kPB_SaveStar); 537 but->Resize(60, 23); 538 but->Move(211, 69); 539 but->SetToolTipText("Save new Source position."); 540 but->Associate(this); 541 fList->Add(but); 542 516 543 but = new TGTextButton(tf5, "Display", kPB_DISPLAY1); 517 544 but->Resize(80, 25); … … 528 555 fList->Add(but); 529 556 530 /*531 but = new TGTextButton(tf4, "Calib SE", kPB_CALIBSE);532 but->Resize(80, 25);533 but->Move(160, 197);534 but->SetToolTipText("Set SE to given coordinates.");535 but->Associate(this);536 fList->Add(but);537 */538 #ifdef EXPERT539 557 but = new TGTextButton(tf4, "Load", kPB_LoadBending); 540 558 but->Resize(50, 25); … … 548 566 but->Move(206, 185); 549 567 but->SetToolTipText("Reset bending correction (coefficients=0)"); 550 but->Associate(this);551 fList->Add(but);552 #endif EXPERT553 554 but = new TGTextButton(tf4, "TPoint", kPB_TPOINT);555 but->Resize(50, 25);556 but->Move(176/*231*/, 213);557 but->SetToolTipText("Trigger writing a tpoint coordinate pair.");558 568 but->Associate(this); 559 569 fList->Add(but); … … 893 903 char text[64]; 894 904 895 rd.Ra(rd.Ra() * 24/2/TMath::Pi()); 896 rd.Dec(rd.Dec()*360/2/TMath::Pi()); 897 898 radec.Ra(radec.Ra() * 24/2/TMath::Pi()); 899 radec.Dec(radec.Dec()*360/2/TMath::Pi()); 905 UShort_t h, d; 906 Double_t hm, dm; 907 Char_t sh, sd; 908 909 // Calculate Display values 910 Slalib::Rad2Hm(rd.Ra(), sh, h, hm); 911 Slalib::Rad2Dm(rd.Dec(), sd, d, dm); 912 913 rd.Ra(rd.Ra() * 12/TMath::Pi()); 914 rd.Dec(rd.Dec()*180/TMath::Pi()); 900 915 901 916 RaDec test = rd*600; 902 903 917 if (rai!=(int)test.Ra()) 904 918 { 905 919 rai = (int)test.Ra(); 906 sprintf(text, "%c%dh %.1fm", rd.Ra()<0?'-':'+', abs((int)rd.Ra()), 0.1*(abs((int)test.Ra())%600)); 920 //sprintf(text, "%c%dh %.1fm", rd.Ra()<0?'-':'+', abs((int)rd.Ra()), 0.1*(abs((int)test.Ra())%600)); 921 sprintf(text, "%c%dh %.1fm", sh, h, hm); 907 922 fRaEst->SetText(new TGString(text)); 908 923 } … … 910 925 { 911 926 deci = (int)test.Dec(); 912 sprintf(text, "%c%dd %.1fm", rd.Dec()<0?'-':'+' , abs((int)rd.Dec()), 0.1*(abs((int)test.Dec())%600)); 927 //sprintf(text, "%c%dd %.1fm", rd.Dec()<0?'-':'+' , abs((int)rd.Dec()), 0.1*(abs((int)test.Dec())%600)); 928 sprintf(text, "%c%dh %.1fm", sd, d, dm); 913 929 fDecEst->SetText(new TGString(text)); 914 930 } 915 931 932 // Align RaDec 933 radec.Ra(radec.Ra() * 12/TMath::Pi()); 934 radec.Dec(radec.Dec()*180/TMath::Pi()); 916 935 if (radec.Dec()>90|| radec.Dec()<-90) 917 936 { … … 921 940 radec.Ra(fmod((radec.Ra()+48), 24)); 922 941 942 // Calculate display values 943 Slalib::Hor2Hm(radec.Ra(), sh, h, hm); 944 Slalib::Deg2Dm(radec.Dec(), sd, d, dm); 945 923 946 test = radec*600; 924 925 947 if (ras!=(int)test.Ra()) 926 948 { 927 949 ras = (int)test.Ra(); 928 sprintf(text, "%c%dh %.1fm", radec.Ra()<0?'-':'+', abs((int)radec.Ra()), 0.1*(abs((int)test.Ra())%600)); 950 //sprintf(text, "%c%dh %.1fm", radec.Ra()<0?'-':'+', abs((int)radec.Ra()), 0.1*(abs((int)test.Ra())%600)); 951 sprintf(text, "%c%dh %.1fm", sh, h, hm); 929 952 fRaSoll->SetText(new TGString(text)); 930 953 } … … 932 955 { 933 956 decs = (int)test.Dec(); 934 sprintf(text, "%c%dd %.1fm", radec.Dec()<0?'-':'+' , abs((int)radec.Dec()), 0.1*(abs((int)test.Dec())%600)); 957 //sprintf(text, "%c%dd %.1fm", radec.Dec()<0?'-':'+' , abs((int)radec.Dec()), 0.1*(abs((int)test.Dec())%600)); 958 sprintf(text, "%c%dh %.1fm", sd, d, dm); 935 959 fDecSoll->SetText(new TGString(text)); 936 960 } … … 1265 1289 { 1266 1290 case kCM_COMBOBOX: 1267 if (mp1==kCB_PredefPos)1291 switch (mp1) 1268 1292 { 1269 MStar *pos = fStarList[mp2]; 1270 if (!pos) 1293 case kCB_PredefPos: 1294 { 1295 MStar *pos = fPreDefList[mp2]; 1296 if (pos) 1297 fCZdAz->SetCoordinates(ZdAz(pos->GetX(), pos->GetY())); 1271 1298 return kTRUE; 1272 fCZdAz->SetCoordinates(ZdAz(pos->GetX(), pos->GetY())); 1299 } 1300 case kCB_StarList: 1301 { 1302 MStar *pos = fStarList[mp2]; 1303 if (pos) 1304 fCCalib->SetCoordinates(RaDec(pos->GetX(), pos->GetY())); 1305 return kTRUE; 1306 } 1273 1307 } 1274 1308 return kTRUE; … … 1333 1367 XY xy = fCRaDec->GetCoordinates(); 1334 1368 fQueue->Proc(WM_CALCALTAZ, &xy); 1369 } 1370 return kTRUE; 1371 1372 case kPB_SavePreDef: 1373 { 1374 ofstream fout("prepos.txt", ios::app); 1375 XY za = fCZdAz->GetCoordinates(); 1376 fout << setprecision(7) << za.X() << " \t" << za.Y(); 1377 fout << " New Position" << endl; 1378 } 1379 return kTRUE; 1380 case kPB_SaveStar: 1381 { 1382 ofstream fout("stars.txt", ios::app); 1383 XY za = fCCalib->GetCoordinates(); 1384 1385 UShort_t d, m, s; 1386 Char_t sgn; 1387 Slalib::Deg2Dms(za.X(), sgn, d, m, s); 1388 if (sgn=='-') fout << sgn; 1389 fout << d << " " << m << " " << s << " \t"; 1390 Slalib::Deg2Dms(za.Y(), sgn, d, m, s); 1391 if (sgn=='-') fout << sgn; 1392 fout << d << " " << m << " " << s << " \t"; 1393 fout << " New Star/Source" << endl; 1335 1394 } 1336 1395 return kTRUE; -
trunk/MagicSoft/Cosy/gui/MGCosy.h
r2278 r2280 65 65 TGLabel *fMjd; 66 66 67 MStarList fPreDefList; 67 68 MStarList fStarList; 68 69 -
trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
r2278 r2280 318 318 SetLin2(x+dy, y-dx, x-dy, y+dx); 319 319 320 //if (zd<80) 321 //{ 322 for(int i=0; i<3; i++) 323 SetDot(fDot[i], radec, i-3); 324 for(int i=3; i<6; i++) 325 SetDot(fDot[i], radec, i-2); 326 //} 320 for(int i=0; i<3; i++) 321 SetDot(fDot[i], radec, i-3); 322 for(int i=3; i<6; i++) 323 SetDot(fDot[i], radec, i-2); 327 324 328 325 SetModified(); … … 334 331 static int Y = ~0; 335 332 336 int xd = (int)/*floor*/(x); 337 int yd = (int)/*floor*/(y); 338 x *= 60.; 339 y *= 60.; 340 341 int fx = (int)/*floor*/(x*10.); 342 int fy = (int)/*floor*/(y*10.); 333 UShort_t xd, yd; 334 Char_t sx, sy; 335 Double_t xm, ym; 336 Slalib::Deg2Dm(x, sx, xd, xm); 337 Slalib::Deg2Dm(y, sy, yd, ym); 338 339 const int fx = (int)(x*600); 340 const int fy = (int)(y*600); 343 341 344 342 if (X==fx && Y==fy) … … 348 346 Y = fy; 349 347 350 float xm = fmod(fabs(x), 60.);351 float ym = fmod(fabs(y), 60.);352 353 348 char txt[100]; 354 sprintf(txt, "Zd=%s%d\xb0%02.1f'", x<0?"-":"", abs(xd), xm);349 sprintf(txt, "Zd=%s%d\xb0%02.1f'", sx=='-'?"-":"", xd, xm); 355 350 fText1->SetText(fText1->GetX(), fText1->GetY(), txt); 356 351 357 sprintf(txt, "Az=%s%d\xb0%02.1f'", y<0?"-":"", abs(yd), ym);352 sprintf(txt, "Az=%s%d\xb0%02.1f'", sy=='-'?"-":"", yd, ym); 358 353 fText2->SetText(fText2->GetX(), fText2->GetY(), txt); 359 354 -
trunk/MagicSoft/Cosy/main/MCaos.cc
r2278 r2280 312 312 313 313 // img width height radius sigma 314 FilterLed f(img, 768, 576, 50, 4.0);314 FilterLed f(img, 768, 576, 50, 3.0); 315 315 316 316 Int_t first=0; … … 343 343 344 344 Rings rings; 345 rings.CalcRings(leds, 2 74-10, 274+10);345 rings.CalcRings(leds, 266, 272); 346 346 347 347 const Ring ¢er = rings.GetCenter();
Note:
See TracChangeset
for help on using the changeset viewer.