Ignore:
Timestamp:
02/25/05 18:08:21 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6676 r6680  
    5555#include "MPedestalCam.h"
    5656#include "MBadPixelsCam.h"
     57#include "MArrivalTimeCam.h"
    5758
    5859#include "MCalibrationQECam.h"
     
    7980#include "MHCalibrationRelTimeCam.h"
    8081#include "MHCalibrationPulseTimeCam.h"
     82#include "MHCalibrationHiLoCam.h"
    8183#include "MHCamera.h"
    8284
     
    287289        interlacedcont.Add(&hpndiod);
    288290        if (fIsRelTimesUpdate)
    289             interlacedcont.Add(&hrelcam);
    290         if (fIsHiLoCalibration)
    291             interlacedcont.Add(&hilcam);
     291          interlacedcont.Add(&hrelcam);
    292292    }
    293293
     
    395395    plist.AddToList(&pedcambias);
    396396    plist.AddToList(&pedcamab);
     397
     398    MArrivalTimeCam timecam;
     399    plist.AddToList(&timecam);
    397400
    398401    // Check for interleaved events
     
    551554    MHCamEvent evt6(2, "Unsuitable", "Fraction of unsuitable events per Pixel;;[1]");
    552555    MHCamEvent evt7(0, "Times",      "Calibrated Arrival Time;;T [fadc sl]");
    553     MHCamEvent evt8(2, "Conv",       "Calibration Conv. Factors;;[phe/fadc cnts]");
    554     MHCamEvent evt9(0, "TimeTest",   "Tested Arrival Time of Cherenkov Events;;[fadc sl]");
     556    MHCamEvent evt8(0, "Conv",       "Calibration Conv. Factors;;[phe/fadc cnts]");
    555557
    556558    evt0.EnableSqrtVariance();
     
    562564    evt7.EnableSqrtVariance();
    563565    evt8.EnableSqrtVariance();
    564     evt9.EnableSqrtVariance();
    565566
    566567    MFillH fill0(&evt0, "MPedestalFundamental",    "FillPedFLG");
     
    573574    MFillH fill7(&evt7, "MArrivalTime",            "FillTimes");
    574575    MFillH fill8(&evt8, "MCalibConstCam",          "FillConv");
    575     MFillH fill9(&evt9, "MCalibrationPulseTimeCam","FillPulseTime");
    576576
    577577    MTaskEnv fillflorian("FinalFantasy");
     
    695695    if (extractor2 || extractor1->InheritsFrom("MExtractTimeAndCharge"))
    696696      tlist2.AddToList(&fill7);
    697     tlist2.AddToList(&fill9);
    698697
    699698    tlist2.AddToList(&fillflorian);
     
    750749    DisplayResult(plist);
    751750
     751    if (fPixelCheck)
     752      {
     753        MHCalibrationPulseTimeCam *pcam = (MHCalibrationPulseTimeCam*)plist.FindObject("MHCalibrationPulseCam");
     754        MHCalibrationPix &pix1 = (*pcam)[fCheckedPixId];
     755        pix1.DrawClone("");
     756       
     757        if (fIsHiLoCalibration)
     758          {
     759            MHCalibrationHiLoCam *hcam = (MHCalibrationHiLoCam*)plist.FindObject("MHCalibrationPulseCam");
     760            MHCalibrationPix &pix2 = (*hcam)[fCheckedPixId];
     761            pix2.DrawClone("");
     762          }
     763}
     764
     765
    752766    if (!WriteResult(interlacedcont))
    753         return kFALSE;
     767      return kFALSE;
     768
     769    TObjArray addcont;
     770    addcont.Add(&pulcam);
     771
     772    if (fIsHiLoCalibration)
     773      addcont.Add(&hilcam);
     774
     775    if (!WriteResult(addcont))
     776      return kFALSE;
    754777
    755778    // return if job went ok
Note: See TracChangeset for help on using the changeset viewer.