Changeset 3855


Ignore:
Timestamp:
04/27/04 19:24:37 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3854 r3855  
    6363       was not correct
    6464
     65   * macros/calibration.C
     66     - added the test class MJExtractCalibTest
    6567
    6668 2004/04/27: Abelardo Moralejo
  • trunk/MagicSoft/Mars/macros/calibration.C

    r3832 r3855  
    5151//  uncommented as well.
    5252//
     53//  Last, a third loop is performed over the calibration file again in order to
     54//  "calibrate" it and test the resulting outcome.
     55//
    5356/////////////////////////////////////////////////////////////////////////////
    54 const TString inpath = "/home/rootdata/Calib/2004_04_16/";
    55 const Int_t pedrun  = 22265;
    56 const Int_t calrun1 = 22299;
    57 const Int_t calrun2 = 22300;
     57static const TString inpath = "/home/rootdata/Calib/2004_04_16/";
     58static const Int_t pedrun  = 22265;
     59static const Int_t calrun1 = 22300;
     60static const Int_t calrun2 = 0;
    5861
    5962void calibration(const Int_t prun=pedrun, const Int_t crun1=calrun1, const Int_t crun2=calrun2)
    6063{
     64
    6165 
    6266  MRunIter pruns;
     
    7276  MCalibrationQECam qecam;
    7377  MBadPixelsCam     badcam;
    74 
     78  MGeomCamMagic     geomcam;
     79  MGeomApply        geomapl;
    7580  //
    7681  // If you want to exclude pixels from the beginning, read
     
    95100    return;
    96101
    97   //
    98   // Now setup the tasks and for the calibration:
    99   // ---------------------------------------------------
    100   //
     102  /****************************************/
     103  /* SECOND LOOP: CALIBRATION COMPUTATION */
     104  /****************************************/
     105
    101106  MJCalibration calloop;
    102   //  calloop.SetColor(color);
    103107
    104108  //
    105109  // If you want to run the data-check on RAW DATA!!!, choose:
    106110  // calloop.SetDataCheck();
     111  //
     112  // If you want to see the data-check plots only, choose:
     113  // calloop.SetDataCheckDisplay();
    107114  //
    108115  // For everything, you ever dreamed of, choose:
     
    119126  if (!calloop.Process(pedloop.GetPedestalCam()))
    120127    return;
    121  
     128
     129
     130  /********************************************************************/
     131  /* THIRD LOOP: APPLY CALIBRATION TO THE CALIBRATION FILES FOR TESTS */
     132  /********************************************************************/
     133
     134  MJExtractCalibTest testloop;
     135
     136  testloop.SetInput(&cruns);
     137  testloop.SetDisplay(display);
     138  testloop.SetBadPixels(calloop.GetBadPixels());
     139  if (!testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam()))
     140    return;
     141
     142
    122143}
    123144
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationTestCam.cc

    r3849 r3855  
    453453// 6: Fourier spectrum not OK                       (calls: MHGausEvents::IsFourierSpectrumOK())
    454454//
     455// Converted values:
     456// =================
     457//
     458// 7: Fitted Mean Test Calibration (MHGausEvents::GetMean()) by MGeomPix::GetA()
     459// 8: Fitted Mean Error Calibration (MHGausEvents::GetSigma()) by MGeomPix::GetA()
     460// 9: Fitted Sigma Test Calibration (MHGausEvents::GetMean()) by MGeomPix::GetA()
     461// 8: Fitted Sigma Error Calibration (MHGausEvents::GetSigma()) by MGeomPix::GetA()
     462//
    455463Bool_t MHCalibrationTestCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    456464{
     
    488496      if (!pix.IsFourierSpectrumOK())
    489497        val = 1.;
     498      break;
     499    case 7:
     500      val = pix.GetMean()/cam[idx].GetA();
     501      break;
     502    case 8:
     503      val = pix.GetMeanErr()/cam[idx].GetA();
     504      break;
     505    case 9:
     506      val = pix.GetSigma()/cam[idx].GetA();
     507      break;
     508    case 10:
     509      val = pix.GetSigmaErr()/cam[idx].GetA();
    490510      break;
    491511    default:
  • trunk/MagicSoft/Mars/mjobs/JobsLinkDef.h

    r3853 r3855  
    88#pragma link C++ class MJCalibration+;
    99#pragma link C++ class MJExtractSignal+;
     10#pragma link C++ class MJExtractCalibTest+;
    1011
    1112#pragma link C++ class MGCamDisplays+;
Note: See TracChangeset for help on using the changeset viewer.