Changeset 4069


Ignore:
Timestamp:
05/13/04 17:58:40 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3925 r4069  
    5555//
    5656/////////////////////////////////////////////////////////////////////////////
    57 static const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2004_03_03/";
    58 static const Int_t pedrun  = 20123;
    59 static const Int_t calrun1 = 20125;
     57static const TString outpath = "./";
     58static const TString inpath = "./";
     59//static const TString inpath = "/home/rootdata/Calib/";
     60//
     61// Tell if you want to calibrate times:
     62//
     63static const  Bool_t useTimes = kTRUE;
     64//
     65// the default pedestal run for the calibration
     66//
     67static const Int_t   pedrun  = 13426;
     68//
     69// the default start calibration run
     70//
     71static const Int_t   calrun1 = 16744;
     72//
     73// the default last calibration run (if 0, only one run is taken, otherwise consecutive runs
     74// between calrun1 and calrun2)
     75//
    6076static const Int_t calrun2 = 0;
    6177
     
    6783  // Choose the signal Extractor:
    6884  //
    69   MExtractFixedWindowPeakSearch extractor;
     85  //  MExtractFixedWindowPeakSearch extractor;
    7086  //  MExtractSlidingWindow  extractor;   
    71   // MExtractFixedWindow    extractor;   
     87  MExtractFixedWindow    extractor;   
    7288
    7389  //
    7490  // Set Ranges or Windows
    7591  //
    76   //  extractor.SetRange(2,14,5,14);
     92   extractor.SetRange(3,14,3,14);
    7793  //  extractor.SetWindows(8,8);
    7894
     
    8096  // Choose the arrival time Extractor:
    8197  //
    82   MExtractTimeHighestIntegral timeext;
    83   // MExtractTimeSpline timeext;
     98  //  MExtractTimeHighestIntegral timeext;
     99  MExtractTimeFastSpline timeext;
    84100  //
    85101  // Set Ranges or Windows
    86102  //
    87   // timeext.SetRange(0,14,6,14);
    88 
    89   //
    90   // Tell if you want to calibrate times:
    91   //
    92   Bool_t useTimes = kTRUE;
    93   //  Bool_t calibrateTimes = kFALSE; 
     103  timeext.SetRange(2,12,4,14);
    94104
    95105  MRunIter pruns;
     
    122132  // an ascii-file with the corr. pixel numbers (see MBadPixelsCam)
    123133  //
    124   badcam.AsciiRead("badpixels.dat");
     134//  badcam.AsciiRead("badpixels.dat");
    125135
    126136  MJPedestal pedloop;
    127137  pedloop.SetExtractor(&extractor);
    128138  pedloop.SetInput(&pruns);
     139  pedloop.SetOutputPath(outpath.Data());
    129140  pedloop.SetDisplay(display);
    130141  pedloop.SetBadPixels(badcam);
     
    156167  calloop.SetTimeExtractor(&timeext);
    157168  calloop.SetInput(&cruns);
     169  calloop.SetOutputPath(outpath.Data());
    158170  calloop.SetDisplay(display);
    159171  calloop.SetQECam(qecam);
    160172  calloop.SetBadPixels(pedloop.GetBadPixels());
    161   if (!calloop.Process(pedloop.GetPedestalCam()))
    162     return;
    163 
    164   /*
    165   MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam();
    166   MLog juanlog;
    167   juanlog.SetOutputFile("test.txt",1);
    168   chargecam.SetLogStream(&juanlog);
    169   chargecam.Print();
    170   chargecam.SetLogStream(&gLog);
    171   */
     173
     174//  TObject::SetObjectStat(kTRUE);
     175
     176  calloop.Process(pedloop.GetPedestalCam());
     177
     178//  gObjectTable->Print();
    172179
    173180  /********************************************************************/
     
    178185
    179186  testloop.SetExtractor(&extractor);
     187  testloop.SetTimeExtractor(&timeext);
    180188  testloop.SetInput(&cruns);
     189  testloop.SetOutputPath(outpath);
    181190  testloop.SetDisplay(display);
    182191  testloop.SetBadPixels(calloop.GetBadPixels());
    183192  testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam());
     193  if (useTimes)
     194      testloop.ProcessT(pedloop.GetPedestalCam(),calloop.GetRelTimeCam());
    184195 
     196  //
     197  // List of useful containers:
     198  //
     199/*
     200  MPedestalCam          &pedcam      = pedloop.GetPedestalCam();
     201  MCalibrationChargeCam &chargecam   = calloop.GetCalibrationCam();
     202  MCalibrationQECam     &qecam       = calloop.GetCalibrationCam();
     203  MBadPixelsCam         &badcam      = calloop.GetBadPixels();
     204  MHCalibrationTestCam  &testcam     = testloop.GetTestCam();
     205  MHCalibrationTestTimeCam &testtime = testloop.GetTestTimeCam();
     206*/
    185207}
    186208
     209
Note: See TracChangeset for help on using the changeset viewer.