Changeset 3905 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/30/04 13:49:02 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

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

    r3871 r3905  
    5555//
    5656/////////////////////////////////////////////////////////////////////////////
    57 static const TString inpath = "/home/rootdata/Calib/2004_04_16/";
     57//static const TString inpath = "/home/rootdata/Calib/2004_04_16/";
     58static const TString inpath = "/mnt/Data/rootdata/CrabNebula/2003_12_01/";
     59static const Int_t pedrun  = 3340;
     60static const Int_t calrun1 = 3341;
     61static const Int_t calrun2 = 0;
     62/*
    5863static const Int_t pedrun  = 22265;
    5964static const Int_t calrun1 = 22300;
    6065static const Int_t calrun2 = 0;
    61 
     66*/
    6267void calibration(const Int_t prun=pedrun, const Int_t crun1=calrun1, const Int_t crun2=calrun2)
    6368{
    6469
    6570  MExtractFixedWindowPeakSearch extractor;
    66  
     71  extractor.SetRange(0,14,0,14);
     72
     73  /*
     74  MExtractTimeSpline timeext;
     75  timeext.SetRange(0,14,6,14);
     76  */
     77
    6778  MRunIter pruns;
    6879  MRunIter cruns;
     
    7485  else
    7586    cruns.AddRuns(crun1,crun2,inpath);
    76 
    77   MCalibrationQECam qecam;
    78   MBadPixelsCam     badcam;
    79   MGeomCamMagic     geomcam;
    80   MGeomApply        geomapl;
    81   //
    82   // If you want to exclude pixels from the beginning, read
    83   // an ascii-file with the corr. pixel numbers (see MBadPixelsCam)
    84   //
    85   //  badcam.AsciiRead("badpixels.dat");
    8687
    8788  gStyle->SetOptStat(1);
     
    9697  /************************************/
    9798
     99  MCalibrationQECam qecam;
     100  MBadPixelsCam     badcam;
     101  MGeomCamMagic     geomcam;
     102  MGeomApply        geomapl;
     103  //
     104  // If you want to exclude pixels from the beginning, read
     105  // an ascii-file with the corr. pixel numbers (see MBadPixelsCam)
     106  //
     107  //  badcam.AsciiRead("badpixels.dat");
     108
    98109  MJPedestal pedloop;
     110  pedloop.SetExtractor(&extractor);
    99111  pedloop.SetInput(&pruns);
    100112  pedloop.SetDisplay(display);
     
    117129  // calloop.SetDataCheckDisplay();
    118130  //
    119   // For everything, you ever dreamed of, choose:
    120   // calloop.SetFullDisplay();
     131  // For everything, you have ever dreamed of, choose:
     132  //  calloop.SetFullDisplay();
    121133
    122134  //
    123135  // If you want to calibrate the times as well, choose:
    124136  //
    125   //  calloop.SetRelTimeCalibration();
     137  calloop.SetRelTimeCalibration();
    126138  calloop.SetExtractor(&extractor);
     139  //  calloop.SetArrivalTimeLevel(1);
     140  //  calloop.SetTimeExtractor(&timeext);
    127141  calloop.SetInput(&cruns);
    128142  calloop.SetDisplay(display);
     
    132146    return;
    133147
     148  MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam();
     149  MLog juanlog;
     150  juanlog.SetOutputFile("test.txt",1);
     151  chargecam.SetLogStream(&juanlog);
     152  chargecam.Print();
     153  chargecam.SetLogStream(&gLog);
    134154
    135155  /********************************************************************/
     
    146166    return;
    147167
    148 
    149168}
    150169
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3875 r3905  
    361361        disp34.SetCamContent(fBadPixels,21);
    362362   
    363         disp30.SetYTitle("Time Offset [ns]");
    364         disp31.SetYTitle("Timing resolution [ns]");
     363        disp30.SetYTitle("Time Offset [FADC units]");
     364        disp31.SetYTitle("Timing resolution [FADC units]");
    365365        disp32.SetYTitle("P_{Time} [1]");
    366366        disp33.SetYTitle("[1]");
Note: See TracChangeset for help on using the changeset viewer.