Ignore:
Timestamp:
07/14/05 16:03:32 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
3 edited

Legend:

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

    r7127 r7189  
    7474#include "MCalibrationIntensityRelTimeCam.h"
    7575#include "MCalibrationIntensityQECam.h"
     76#include "MCalibrationIntensityConstCam.h"
    7677#include "MBadPixelsIntensityCam.h"
    7778
     
    268269    MCalibrationIntensityBlindCam       iblcam;
    269270    MCalibrationIntensityRelTimeCam     itmcam;
     271    MCalibrationIntensityConstCam       icncam;
    270272    MBadPixelsIntensityCam              ibdcam;
    271273
     
    299301        interlacedcont.Add(&itmcam);
    300302        interlacedcont.Add(&ibdcam);
     303        interlacedcont.Add(&icncam);
    301304        interlacedcont.Add(&hchacam);
    302305        if (IsUseBlindPixel())
     
    317320    calibcont.Add(&qecam);
    318321    calibcont.Add(&bndcam);
    319     calibcont.Add(&pind);
    320322    calibcont.Add(&tmcam);
     323    if (IsUseBlindPixel())
     324        calibcont.Add(&bndcam);
    321325
    322326    if (!ReadCalibration(calibcont, badpix, extractor2, extractor3, geom))
     
    362366    // This is necessary for the case in which it is not in the files
    363367    MBadPixelsCam badcam;
     368    icncam.SetBadPixels(&badpix);
    364369
    365370    // Setup Parlist
     
    524529
    525530    MCalibrationChargeCalc  chcalc;
     531    chcalc.SetExtractor(extractor3);
     532
    526533    MCalibrationRelTimeCalc recalc;
    527534    MCalibCalcFromPast      pacalc;
     
    570577    // MHCamEvent evt3(4, "PedPhot",    "Calibrated Pedestal;;P [phe]");
    571578    MHCamEvent evt4(  5, "PedRMS",     "Calibrated RMS from Extractor applied to ped.;;\\sigma_{p} [phe]");
    572     MHCamEvent evt5(  0, "Interp'd",   "Interpolated Signal per area scale A/A_{0};;S [phe]");
     579    MHCamEvent evt5(  0, "Interp'd",   "Interpolated Signal scaled with A/A_{0};;S [phe]");
    573580    MHCamEvent evt6(102, "Unsuitable", "Fraction of unsuitable events per Pixel;;[1]");
    574581    MHCamEvent evt7(  6, "Times",      "Calibrated Arrival Time;;T [fadc sl]");
     
    577584    evt6.SetThreshold();
    578585
    579     MFillH fill0(&evt0, "MPedestalFundamental",       "FillPedFLG");
    580     MFillH fill1(&evt1, "MPedestalFromExtractorRndm", "FillPedRmsFLG");
    581     MFillH fill2(&evt2, "MExtractedSignalCam",        "FillExtracted");
     586    MFillH fill0(&evt0, "MPedestalFundamental",          "FillPedFLG");
     587    MFillH fill1(&evt1, "MPedestalFromExtractorRndm",    "FillPedRmsFLG");
     588    MFillH fill2(&evt2, "MExtractedSignalCam",           "FillExtracted");
    582589    // MFillH fill3(&evt3, "MPedPhotFundamental",  "FillPedPhot");
    583     MFillH fill4(&evt4, "MPedPhotFromExtractorRndm",  "FillPedRMS");
    584     MFillH fill5(&evt5, "MSignalCam",                 "FillInterpolated");
    585     MFillH fill6(&evt6, "MBadPixelsCam",              "FillUnsuitable");
    586     MFillH fill7(&evt7, "MSignalCam",                 "FillTimes");
    587     MFillH fill8(&evt8, "MCalibConstCam",            "FillConv");
    588     MFillH fill9(&evt9, "MSignalCam",                 "FillPulse");
     590    MFillH fill4(&evt4, "MPedPhotFromExtractorRndm",     "FillPedRMS");
     591    MFillH fill5(&evt5, "MSignalCam",                    "FillInterpolated");
     592    MFillH fill6(&evt6, "MBadPixelsCam",                 "FillUnsuitable");
     593    MFillH fill7(&evt7, "MSignalCam",                    "FillTimes");
     594    MFillH fill8(&evt8, "MCalibrationIntensityConstCam", "FillConv");
     595    MFillH fill9(&evt9, "MSignalCam",                    "FillPulse");
    589596
    590597    MTaskEnv fillflorian("FinalFantasy");
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r7188 r7189  
    18381838    MCalibrationChargeCalc   calcalc;
    18391839    MCalibrationRelTimeCalc  timecalc;
     1840    calcalc.SetExtractor(fExtractor);
    18401841    calcalc.SetOutputFile("");
    18411842    timecalc.SetOutputFile("");
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r7188 r7189  
    174174    }
    175175
    176     TObject *o = file.Get("ExtractSignal");
    177     if (o && !o->InheritsFrom(MExtractor::Class()))
    178     {
    179         *fLog << err << dbginf << "ERROR - ExtractSignal read from " << fname << " doesn't inherit from MExtractor!" << endl;
    180         return NULL;
    181     }
    182 
    183176    if (file.FindKey("MBadPixelsCam"))
    184177    {
     
    190183    }
    191184
     185    if (fExtractor)
     186        return fExtractor;
     187
     188    TObject *o=0;
     189    o = file.Get("ExtractSignal");
     190    if (o && !o->InheritsFrom(MExtractor::Class()))
     191    {
     192        *fLog << err << dbginf << "ERROR - ExtractSignal read from " << fname << " doesn't inherit from MExtractor!" << endl;
     193        return NULL;
     194    }
    192195    return o ? (MExtractor*)o->Clone("ExtractSignal") : NULL;
    193196}
Note: See TracChangeset for help on using the changeset viewer.