Changeset 3114 for trunk


Ignore:
Timestamp:
02/12/04 11:45:59 (21 years ago)
Author:
jlopez
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/pointspreadfunction.C

    r3113 r3114  
    5151//______________________________________________________________________________
    5252//
    53 // Function use for Minuit to do the fit
     53// Function used by Minuit to do the fit
    5454//
    5555void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
     
    8080//______________________________________________________________________________
    8181//
    82 // The 2D gaussian fucntion use to fit the spot of the star
     82// The 2D gaussian fucntion used to fit the spot of the star
    8383//
    8484Double_t func(float x,float y,Double_t *par)
     
    136136   
    137137    const Float_t conv4mm2deg = geomcam.GetConvMm2Deg();
     138
    138139         
    139140    if (clname != "NULL")
     
    288289
    289290    //
    290     // Using the first dc meausrement we search the star and we define the area to be fitted
    291     // around 3 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.
    292293    //
    293294
     
    362363   
    363364    for(Int_t swpixel=1; swpixel<numPixels; swpixel++)
    364     {
    365 //              cout << "isPixelsFitted[" << swpixel << "] ";
    366 //              cout << (Int_t)isPixelsFitted[swpixel] << endl;
    367365        curr[swpixel] = (Float_t)isPixelsFitted[swpixel];
    368     }
    369366   
    370367/*    MHCamera display0(geomcam);
     
    411408            step[i] = TMath::Abs(vstart[i]/sqrt(2));
    412409        else
    413             step[i] = 1;
    414 
    415         cout << "DGB vstat[" << i << "] " << vstart[i] << " step[" << i << "] " << step[i] <<endl;
     410            step[i] = uplimit[i]/2;
    416411    }
    417 //    cout << endl;
    418412 
    419413    gMinuit->mnparm(0, "max", vstart[0], step[0], lowlimit[0], uplimit[0],ierflg);
     
    424418
    425419    while (tlist.Process() && numLines < maxNumLines)
    426         {
    427 //        curr.Print();
     420    {
    428421
    429422        for (Int_t swpixel=1; swpixel<577; swpixel++)
    430423        {
    431 //          cout << swpixel << '\t' << curr[swpixel] << '\t' << geomcam[swpixel].GetX() << '\t' << geomcam[swpixel].GetY() << endl;
    432424           
    433425            x[swpixel] = geomcam[swpixel].GetX()*conv4mm2deg;
     
    480472            display.SetCamContent(curr);
    481473            gPad->cd(1);
    482 //      ellipse.DrawEllipse(xmean,ymean,TMath::Abs(xsigma),TMath::Abs(ysigma),0,360,0);
    483474            ellipse.SetX1(xmean/conv4mm2deg);
    484475            ellipse.SetY1(ymean/conv4mm2deg);
     
    489480            gPad->Update();
    490481
    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 */
    499482            // Remove the comments if you want to go through the file
    500483            //event-by-event:
     
    673656
    674657    c1->cd(5);
    675 
    676 //    TCanvas *sigmacanvas = new TCanvas("sigmacanvas","Point Spread Funtion RMS",100,10,800,600);
    677658
    678659    TMath math;
Note: See TracChangeset for help on using the changeset viewer.