Changeset 2853


Ignore:
Timestamp:
01/19/04 23:04:26 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2852 r2853  
    3030
    3131  * mcalib/MCalibrationCalc.[h,cc]
     32    - Modified way to change the fit function
     33    - incorporate option to exclude pixels from configuration file
     34
     35  * macros/calibration.C
    3236    - Modified way to change the fit function
    3337    - incorporate option to exclude pixels from configuration file
  • trunk/MagicSoft/Mars/macros/calibration.C

    r2823 r2853  
    8989    plist2.AddToList(&tlist2);
    9090
     91    MExtractedSignalCam   sigcam;
     92    MCalibrationCam       calcam;
    9193    //
    9294    // Get the previously created MPedestalCam into the new Parameter List
    9395    //
    94     plist2.AddToList((MPedestalCam*)plist.FindObject("MPedestalCam"));
     96    plist2.AddToList(&pedcam);
     97    plist2.AddToList(&sigcam);
     98    plist2.AddToList(&calcam);
    9599
    96100    //
     
    108112    read2.DisableAutoScheme();
    109113
    110     MExtractSignal        sigsig;
     114    MExtractSignal       sigsig;
    111115    MCalibrationCalc     calcalc;
     116
     117    //
     118    // In case, we want to exclude a pre-defined list of bad pixels:
     119    // (This is a preliminary feature)
     120    //
     121    //    calcalc.ExcludePixelsFromAsciiFile("badpixels.dat");
     122   
    112123    //
    113124    // As long, as we don't have digital modules,
     
    115126    //
    116127    calcalc.SetPulserColor(MCalibrationCalc::kECT1);
     128
     129    //
     130    // In case, we want to apply another fit function to the
     131    // blind pixel
     132    //
     133    MCalibrationBlindPix *bp = calcam.GetBlindPixel();
     134    bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson5);
    117135
    118136    tlist2.AddToList(&read2);
    119137    tlist2.AddToList(&sigsig);
    120138    tlist2.AddToList(&calcalc);
    121 
    122     MExtractedSignalCam   sigcam;
    123     plist2.AddToList(&sigcam);
    124139
    125140    //
     
    219234
    220235    CamDraw(c1,disp1,cam,1,2,1);
    221     CamDraw(c1,disp3,cam,2,2,3);
     236    CamDraw(c1,disp3,cam,2,2,2);
    222237
    223238    // Fit Probability
Note: See TracChangeset for help on using the changeset viewer.