Changeset 3114 for trunk/MagicSoft/Mars
- Timestamp:
- 02/12/04 11:45:59 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/pointspreadfunction.C
r3113 r3114 51 51 //______________________________________________________________________________ 52 52 // 53 // Function use forMinuit to do the fit53 // Function used by Minuit to do the fit 54 54 // 55 55 void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag) … … 80 80 //______________________________________________________________________________ 81 81 // 82 // The 2D gaussian fucntion use to fit the spot of the star82 // The 2D gaussian fucntion used to fit the spot of the star 83 83 // 84 84 Double_t func(float x,float y,Double_t *par) … … 136 136 137 137 const Float_t conv4mm2deg = geomcam.GetConvMm2Deg(); 138 138 139 139 140 if (clname != "NULL") … … 288 289 289 290 // 290 // Using the first dc mea usrement we search the star and we define the area to be fitted291 // a round3 rings of neightbords around the peak of the star.291 // Using the first dc measurement we search the pixels which contains the star and define 292 // an area to be fitted by Minuit which is 3 rings of neightbords around the peak of the star. 292 293 // 293 294 … … 362 363 363 364 for(Int_t swpixel=1; swpixel<numPixels; swpixel++) 364 {365 // cout << "isPixelsFitted[" << swpixel << "] ";366 // cout << (Int_t)isPixelsFitted[swpixel] << endl;367 365 curr[swpixel] = (Float_t)isPixelsFitted[swpixel]; 368 }369 366 370 367 /* MHCamera display0(geomcam); … … 411 408 step[i] = TMath::Abs(vstart[i]/sqrt(2)); 412 409 else 413 step[i] = 1; 414 415 cout << "DGB vstat[" << i << "] " << vstart[i] << " step[" << i << "] " << step[i] <<endl; 410 step[i] = uplimit[i]/2; 416 411 } 417 // cout << endl;418 412 419 413 gMinuit->mnparm(0, "max", vstart[0], step[0], lowlimit[0], uplimit[0],ierflg); … … 424 418 425 419 while (tlist.Process() && numLines < maxNumLines) 426 { 427 // curr.Print(); 420 { 428 421 429 422 for (Int_t swpixel=1; swpixel<577; swpixel++) 430 423 { 431 // cout << swpixel << '\t' << curr[swpixel] << '\t' << geomcam[swpixel].GetX() << '\t' << geomcam[swpixel].GetY() << endl;432 424 433 425 x[swpixel] = geomcam[swpixel].GetX()*conv4mm2deg; … … 480 472 display.SetCamContent(curr); 481 473 gPad->cd(1); 482 // ellipse.DrawEllipse(xmean,ymean,TMath::Abs(xsigma),TMath::Abs(ysigma),0,360,0);483 474 ellipse.SetX1(xmean/conv4mm2deg); 484 475 ellipse.SetY1(ymean/conv4mm2deg); … … 489 480 gPad->Update(); 490 481 491 /* if (numLines%10==0)492 {493 char imagepath[60];494 sprintf(&imagepath,"/home/Javi/mnt_users/Data/CaCo/img/ZetaTau_%04d.gif",numLines/10);495 cout << imagepath << endl;496 gPad->SaveAs(imagepath);497 }498 */499 482 // Remove the comments if you want to go through the file 500 483 //event-by-event: … … 673 656 674 657 c1->cd(5); 675 676 // TCanvas *sigmacanvas = new TCanvas("sigmacanvas","Point Spread Funtion RMS",100,10,800,600);677 658 678 659 TMath math;
Note:
See TracChangeset
for help on using the changeset viewer.