Changeset 7313 for trunk/MagicSoft/Cosy
- Timestamp:
- 08/25/05 13:57:36 (19 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r7297 r7313 1 1 -*-*- END -*-*- 2 3 2005/08/22 - Thomas Bretz 4 5 * candrv/nodedrv.cc, main/MTracking.cc: 6 - fixed usage of MTime (MTime(-1) instead of MTime()) 7 8 2 9 3 10 2005/08/22 - Thomas Bretz -
trunk/MagicSoft/Cosy/candrv/nodedrv.cc
r6923 r7313 422 422 return true; 423 423 424 lout << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " --> ZOMBIE! " << MTime( ) << endl;424 lout << " + " << GetNodeName() << ": NodeDrv::WaitForSdo: 0x" << hex << idx << "/" << dec << (int)subidx << " --> ZOMBIE! " << MTime(-1) << endl; 425 425 if (zombie) 426 426 SetZombie(); -
trunk/MagicSoft/Cosy/main/MTracking.cc
r7297 r7313 548 548 return (void*)3; 549 549 550 lout << "- Tracking Thread started (" << MTime( ) << ")" << endl;550 lout << "- Tracking Thread started (" << MTime(-1) << ")" << endl; 551 551 552 552 //const XY re2se = fCosy->kGearTot/fCosy->kResSE; //[re/se] … … 635 635 } 636 636 637 lout << "- Tracking Thread done. (" << MTime( ) << ")" << endl;637 lout << "- Tracking Thread done. (" << MTime(-1) << ")" << endl; 638 638 return 0; 639 639 } -
trunk/MagicSoft/Cosy/tpoint/gui.C
r7295 r7313 65 65 const Double_t del = fRawEl-fStarEl; 66 66 const Double_t daz = fRawAz-fStarAz; 67 67 68 /* 68 69 const Double_t dphi2 = daz/2.; … … 71 72 const Double_t d = cos(del)*cos2 - cos(fRawEl+fStarEl)*sin2; 72 73 */ 73 74 74 const Double_t d = cos(del) - cos(fRawEl)*cos(fStarEl)*(1.-cos(daz)); 75 75 … … 208 208 bend.SetParameters(par); // Set Parameters [deg] to MPointing 209 209 210 Int_t n=0; 210 211 for (int i=0; i<fCoordinates.GetSize(); i++) 211 212 { … … 214 215 set.Adjust(bend); 215 216 216 Double_t err ;// = 0.005; // [deg] = 0.25SE217 Double_t res = set.GetResidual( &err);217 Double_t err = 0.01; // [deg] = 0.25SE 218 Double_t res = set.GetResidual(); //(&err); 218 219 res /= err; 219 220 … … 221 222 } 222 223 223 //f /= (fCoordinates.GetSize()-7)*(fCoordinates.GetSize()-7);224 //f /= fCoordinates.GetSize()*fCoordinates.GetSize();225 //cout << f << ": " << fCoordinates.GetSize() << endl;226 224 f /= fCoordinates.GetSize(); 227 225 } … … 256 254 //Double_t x1[3] = { r1*cos(phi1), r1*sin(phi1), 0}; 257 255 258 Double_t y0[3] , y1[3];256 Double_t y0[3];//, y1[3]; 259 257 260 258 view->WCtoNDC(x0, y0); … … 412 410 TGraph gaz; 413 411 TGraph gzd; 414 TGraph graz;415 TGraph grzd;416 TGraph grmag;412 TGraphErrors graz; 413 TGraphErrors grzd; 414 TGraphErrors grmag; 417 415 TGraph gmaz; 418 416 TGraph gmzd; … … 513 511 if (dz>180) 514 512 dz -= 360; 513 514 Double_t err; 515 515 516 516 gdzd.SetPoint(i, za.Az(), set0.GetDZd()); 517 517 gdaz.SetPoint(i, za.Zd(), dz); 518 graz.SetPoint(i, za.Az(), set0.GetResidual()); 519 grzd.SetPoint(i, za.Zd(), set0.GetResidual()); 518 graz.SetPoint(i, za.Az(), set0.GetResidual(&err)); 519 graz.SetPointError(i, 0, err); 520 grzd.SetPoint(i, za.Zd(), set0.GetResidual(&err)); 521 grzd.SetPointError(i, 0, err); 520 522 gaz.SetPoint( i, za.Az(), dz); 521 523 gzd.SetPoint( i, za.Zd(), set0.GetDZd()); 522 524 if (set0.GetMag()>=-20) 523 525 { 524 grmag.SetPoint(i, set0.GetMag(), set0.GetResidual()); 526 grmag.SetPoint(i, set0.GetMag(), set0.GetResidual(&err)); 527 grmag.SetPointError(i, 0, err); 525 528 gmaz.SetPoint( i, set0.GetMag(), dz); 526 529 gmzd.SetPoint( i, set0.GetMag(), set0.GetDZd()); … … 575 578 cout << "OK." << endl; 576 579 cout << endl; 577 578 579 TCanvas *c1;580 581 if ((c1 = (TCanvas*)gROOT->FindObject("CanvGraphs")))582 delete c1;583 if ((c1 = (TCanvas*)gROOT->FindObject("CanvResiduals")))584 delete c1;585 586 580 587 581 const Double_t max1 = TMath::Max(gaz.GetHistogram()->GetMaximum(), gdaz.GetHistogram()->GetMaximum()); … … 616 610 grmag.SetMinimum(0); 617 611 618 c1=new TCanvas("CanvGraphs", "Graphs"); 612 TCanvas *c1; 613 614 if (gROOT->FindObject("CanvGraphs")) 615 c1 = dynamic_cast<TCanvas*>(gROOT->FindObject("CanvGraphs")); 616 else 617 c1=new TCanvas("CanvGraphs", "Graphs"); 618 619 gROOT->SetSelectedPad(0); 620 c1->SetSelectedPad(0); 621 c1->Clear(); 622 619 623 c1->SetFillColor(kWhite); 620 624 c1->Divide(3,3,1e-10,1e-10); … … 698 702 gPad->SetGridx(); 699 703 gPad->SetGridy(); 700 g=(TGraph*)graz.DrawClone("A *");704 g=(TGraph*)graz.DrawClone("AP"); 701 705 g->SetBit(kCanDelete); 702 706 g->GetHistogram()->SetXTitle("Az [\\circ]"); … … 708 712 gPad->SetGridx(); 709 713 gPad->SetGridy(); 710 g=(TGraph*)grzd.DrawClone("A *");714 g=(TGraph*)grzd.DrawClone("AP"); 711 715 g->SetBit(kCanDelete); 712 716 g->GetHistogram()->SetXTitle("Zd [\\circ]"); … … 718 722 gPad->SetGridx(); 719 723 gPad->SetGridy(); 720 g=(TGraph*)grmag.DrawClone("A *");724 g=(TGraph*)grmag.DrawClone("AP"); 721 725 g->SetBit(kCanDelete); 722 726 g->GetHistogram()->SetXTitle("Mag"); … … 757 761 gStyle->SetStatFormat("6.2g"); 758 762 759 760 c1=new TCanvas("CanvResiduals", "Residuals", 800, 800); 763 if (gROOT->FindObject("CanvResiduals")) 764 c1 = dynamic_cast<TCanvas*>(gROOT->FindObject("CanvResiduals")); 765 else 766 c1=new TCanvas("CanvResiduals", "Residuals", 800, 800); 767 768 gROOT->SetSelectedPad(0); 769 c1->SetSelectedPad(0); 770 c1->Clear(); 771 761 772 c1->Divide(2, 2, 1e-10, 1e-10); 762 773 … … 866 877 }; 867 878 868 static TString dir(" .");879 static TString dir("tpoint/"); 869 880 870 881 TGFileInfo fi; // fFileName and fIniDir deleted in ~TGFileInfo
Note:
See TracChangeset
for help on using the changeset viewer.