Ignore:
Timestamp:
04/27/07 11:05:11 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
5 edited

Legend:

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

    r8445 r8452  
    6969
    7070#include "MCalibConstCam.h"
    71 #include "MCalibrationIntensityChargeCam.h"
    7271
    7372#include "MHCalibrationChargeCam.h"
     
    125124//
    126125MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title)
    127     : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), fIsMovieMode(kFALSE)
     126    : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kTRUE), fIsMovieMode(kFALSE)
    128127{
    129128    fName  = name  ? name  : "MJCalibrateSignal";
     
    250249
    251250    // Read File
    252     MCalibrationIntensityChargeCam      ichcam;
    253 
    254251    MHCalibrationChargeCam      hchacam;
    255252    MHCalibrationChargeBlindCam hbndcam;
     
    276273    if (fIsInterlaced)
    277274    {
    278         interlacedcont.Add(&ichcam);
    279275        interlacedcont.Add(&hchacam);
    280276        if (IsUseBlindPixel())
     
    531527
    532528    MCalibrationChargeCalc  chcalc;
     529    chcalc.SetContinousCalibration();
    533530    chcalc.SetExtractor(extractor3);
    534531
     
    546543
    547544    //
    548     // Intensity Calibration histogramming
     545    // Calibration histogramming
    549546    //
    550547    MFillH filpin(&hpndiod, "MExtractedSignalPINDiode",   "FillPINDiode");
     
    695692    tlist3.SetFilter(&fcalib);
    696693
    697     //MFDataPhrase filcalco("MCalibrationIntensityConstCam.IsReadyToSave>0.5", "CalibConstFilter");
     694    //MFDataPhrase filcalco("MCalibrationConstCam.IsReadyToSave>0.5", "CalibConstFilter");
    698695    if (fIsInterlaced)
    699696    {
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r8434 r8452  
    1919!   Author(s): Markus Gaug, 02/2004 <mailto:markus@ifae.es>
    2020!
    21 !   Copyright: MAGIC Software Development, 2000-2005
     21!   Copyright: MAGIC Software Development, 2000-2007
    2222!
    2323!
     
    218218  fRefConvFADC2PheInner      = 0.14;
    219219  fRefConvFADC2PheOuter      = 0.52;
    220   fRefQEInner                = 0.18;           
     220  fRefQEInner                = 0.18;
    221221  fRefQEOuter                = 0.12;
    222   fRefArrivalTimeInner       = 4.5;           
     222  fRefArrivalTimeInner       = 4.5;
    223223  fRefArrivalTimeOuter       = 5.0;
    224   fRefArrivalTimeRmsInner    = 0.5;           
     224  fRefArrivalTimeRmsInner    = 0.5;
    225225  fRefArrivalTimeRmsOuter    = 0.5;
    226   fRefTimeOffsetInner        = -0.23;   
    227   fRefTimeOffsetOuter        = 0.39;   
    228   fRefTimeResolutionInner    = 0.153;
    229   fRefTimeResolutionOuter    = 0.128;
     226  fRefTimeOffsetOuter        = 0.62;
     227  fRefTimeResolutionInner    = 0.12;
     228  fRefTimeResolutionOuter    = 0.09;
    230229
    231230}
     
    813812      // for the datacheck, fix the ranges!!
    814813      //
    815       const Double_t max = 11.;
     814      const Double_t max = 12.;
    816815      obj8->SetMinimum(0.);
    817816      obj8->SetMaximum(max);
     
    825824      const Int_t numcol = gStyle->GetNumberOfColors()-3;
    826825     
    827       TPaveText *pave = new TPaveText(0.05,0.02,0.975,0.99);
     826      TPaveText *pave = new TPaveText(0.05,0.02,0.975,0.999);
    828827      pave->SetBit(kCanDelete);
    829828      pave->ConvertNDCtoPad();
     
    866865      t17->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol)));
    867866      t17->SetTextAlign(12);
     867      TText *t18 = pave->AddText(Form("Deviating Rel. Arrival Time RMS:                %3i pixels",
     868                                       CountBadPixels(&disp24,10 )));
     869      t18->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol)));
     870      t18->SetTextAlign(12);
    868871      TText *t15= pave->AddText(Form("Too many Low-Gain Blackout Events:       %3i pixels",
    869                                        CountBadPixels(&disp24,10 )));
    870       t15->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol)));
     872                                       CountBadPixels(&disp24,11 )));
     873      t15->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol)));
    871874      t15->SetTextAlign(12);
    872875      TText *t14= pave->AddText(Form("Previously Excluded:                                   %3i pixels",
    873                                        CountBadPixels(&disp24,11)));
    874       t14->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol)));
     876                                       CountBadPixels(&disp24,12)));
     877      t14->SetTextColor(gStyle->GetColorPalette(Int_t(12./max*numcol)));
    875878      t14->SetTextAlign(12);
    876879      pave->Draw();
     
    903906      gStyle->SetPalette(1);
    904907     
    905       TPaveText *pave2 = new TPaveText(0.025,0.02,0.95,0.99);
     908      TPaveText *pave2 = new TPaveText(0.025,0.02,0.95,0.999);
    906909      pave2->SetBit(kCanDelete);
    907910      pave2->ConvertNDCtoPad();
     
    12391242      break;
    12401243    case 5:
    1241       l1 = line.DrawLine(0, fRefTimeOffsetInner, x, fRefTimeOffsetInner );
     1244      l1 = line.DrawLine(0, 0, x, 0);
    12421245      break;
    12431246    case 6:
     
    13911394//   RefArrivalTimeRmsOuter
    13921395//
    1393 //   RefTimeOffsetInner
    13941396//   RefTimeOffsetOuter
    13951397//   RefTimeResolutionInner
     
    14251427    fRefArrivalTimeRmsInner = refenv.GetValue("RefArrivalTimeRmsInner",fRefArrivalTimeRmsInner);
    14261428    fRefArrivalTimeRmsOuter = refenv.GetValue("RefArrivalTimeRmsOuter",fRefArrivalTimeRmsOuter);
    1427     fRefTimeOffsetInner     = refenv.GetValue("RefTimeOffsetInner",fRefTimeOffsetInner);
    14281429    fRefTimeOffsetOuter     = refenv.GetValue("RefTimeOffsetOuter",fRefTimeOffsetOuter);
    14291430    fRefTimeResolutionInner = refenv.GetValue("RefTimeResolutionInner",fRefTimeResolutionInner);
     
    18941895    tlist.AddToList(&cont);
    18951896
    1896     if (IsRelTimes())
    1897     {
    1898         tlist.AddToList(&filltme);
    1899         tlist.AddToList(&timecalc);
    1900     }
    1901 
    19021897    tlist.AddToList(&fillcam);
    19031898
     
    19091904    tlist.AddToList(&calcalc);
    19101905
     1906    if (IsRelTimes())
     1907    {
     1908        tlist.AddToList(&filltme);
     1909        tlist.AddToList(&timecalc);
     1910    }
    19111911
    19121912    MHCamEvent evt2(0, "Extra'd", "Extracted Calibration Signal;;S [cnts/sl]");
  • trunk/MagicSoft/Mars/mjobs/calibrationref.rc

    r7013 r8452  
    6363# Relative Time Calibration:
    6464#
    65 RefTimeOffsetInner:       -0.23
    66 RefTimeOffsetOuter:       0.39   
    67 RefTimeResolutionInner:   0.153
    68 RefTimeResolutionOuter:   0.128
     65RefTimeOffsetOuter:       0.62   
     66RefTimeResolutionInner:   0.12
     67RefTimeResolutionOuter:   0.09
    6968#
    7069# Mean Absolute Time:
  • trunk/MagicSoft/Mars/mjobs/calibrationref_Dec04.rc

    r7013 r8452  
    6363# Relative Time Calibration:
    6464#
    65 RefTimeOffsetInner:       -0.23
    66 RefTimeOffsetOuter:       0.39   
    67 RefTimeResolutionInner:   0.153
    68 RefTimeResolutionOuter:   0.128
     65RefTimeOffsetOuter:       0.62
     66RefTimeResolutionInner:   0.12
     67RefTimeResolutionOuter:   0.09
    6968#
    7069# Mean Absolute Time:
  • trunk/MagicSoft/Mars/mjobs/calibrationref_Nov04.rc

    r7013 r8452  
    6363# Relative Time Calibration:
    6464#
    65 RefTimeOffsetInner:       -0.23
    66 RefTimeOffsetOuter:       0.39   
    67 RefTimeResolutionInner:   0.153
    68 RefTimeResolutionOuter:   0.128
     65RefTimeOffsetOuter:       0.62
     66RefTimeResolutionInner:   0.12
     67RefTimeResolutionOuter:   0.09
    6968#
    7069# Mean Absolute Time:
Note: See TracChangeset for help on using the changeset viewer.