Changeset 5940


Ignore:
Timestamp:
01/22/05 14:33:58 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5939 r5940  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2005/01/22 Markus Gaug
     24
     25   * mhcalib/MHCalibrationRelTimeCam.cc
     26     - display in the averaged times display the event-by-event averaged
     27       absolute arrival times instead of the rel. ones which do not make
     28       much sense.
     29
     30   * mjobs/MJCalibration.cc
     31     - replace title of that times-averageing Tab from "RelTimes" by
     32       "Times".
     33
    2234
    2335 2005/01/21 Markus Gaug
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc

    r5864 r5940  
    126126const Float_t MHCalibrationRelTimeCam::fgNumHiGainSaturationLimit = 0.25;
    127127const UInt_t  MHCalibrationRelTimeCam::fgReferencePixel = 1;
    128 const Int_t   MHCalibrationRelTimeCam::fgNbins      = 200;
     128const Int_t   MHCalibrationRelTimeCam::fgNbins      = 210;
    129129const Axis_t  MHCalibrationRelTimeCam::fgFirst      = -5.;
    130 const Axis_t  MHCalibrationRelTimeCam::fgLast       =  5.;
     130const Axis_t  MHCalibrationRelTimeCam::fgLast       = 10.;
    131131const Float_t MHCalibrationRelTimeCam::fgProbLimit  = 0.;
    132132const TString MHCalibrationRelTimeCam::gsHistName   = "RelTime";
    133 const TString MHCalibrationRelTimeCam::gsHistTitle  = "Rel. Arr. Times";
    134 const TString MHCalibrationRelTimeCam::gsHistXTitle = "Rel. Arr. Time [FADC slices]";
     133const TString MHCalibrationRelTimeCam::gsHistTitle  = "Arr. Times";
     134const TString MHCalibrationRelTimeCam::gsHistXTitle = "Arr. Time [FADC slices]";
    135135const TString MHCalibrationRelTimeCam::gsHistYTitle = "Nr. events";
    136136// --------------------------------------------------------------------------
     
    337337      if (pix.IsLoGainUsed() && IsLoGain())
    338338        {
    339           const Float_t reltime = pix.GetArrivalTimeLoGain() - reftime;
     339          const Float_t time = pix.GetArrivalTimeLoGain();
    340340          histhi.AddSaturated(1);
    341341
    342342          MHCalibrationPix &histlo = (*this)(i);
    343           histlo.FillHistAndArray(reltime);
    344 
    345           fSumarealo  [aidx]   += reltime;
     343          histlo.FillHistAndArray(time-reftime);
     344
     345          fSumarealo  [aidx]   += time;
    346346          fNumarealo  [aidx]   ++;
    347           fSumsectorlo[sector] += reltime;
     347          fSumsectorlo[sector] += time;
    348348          fNumsectorlo[sector] ++;
    349349        }
    350350      else
    351351        {
    352           const Float_t reltime = pix.GetArrivalTimeHiGain() - reftime;
    353 
    354           histhi.FillHistAndArray(reltime) ;
    355           fSumareahi  [aidx]   += reltime;
     352          const Float_t time = pix.GetArrivalTimeHiGain();
     353
     354          histhi.FillHistAndArray(time-reftime) ;
     355          fSumareahi  [aidx]   += time;
    356356          fNumareahi  [aidx]   ++;
    357           fSumsectorhi[sector] += reltime;
     357          fSumsectorhi[sector] += time;
    358358          fNumsectorhi[sector] ++;
    359359        }
     
    700700  TH1F *hist = pix.GetHGausHist();
    701701 
    702   TH1F *null = new TH1F("Null",hist->GetTitle(),100,pix.GetFirst() < -3.0 ? -3.0 : pix.GetFirst(),
    703                         pix.GetLast() > 3.0 ? 3.0 : pix.GetLast());
     702  TH1F *null = new TH1F("Null",hist->GetTitle(),100,0.,pix.GetLast());
    704703
    705704  null->SetMaximum(1.1*hist->GetMaximum());
     
    716715  xaxe->SetTitleSize(0.07);
    717716  yaxe->SetTitleSize(0.07);   
    718   xaxe->SetTitleOffset(0.7);
     717  xaxe->SetTitleOffset(0.65);
    719718  yaxe->SetTitleOffset(0.55);   
    720719  xaxe->SetLabelSize(0.06);
    721720  yaxe->SetLabelSize(0.06);   
    722 
    723721  xaxe->SetTitle(hist->GetXaxis()->GetTitle());
    724722  yaxe->SetTitle(hist->GetYaxis()->GetTitle()); 
     
    777775  xaxe2->SetTitleSize(0.07);
    778776  yaxe2->SetTitleSize(0.07);   
    779   xaxe2->SetTitleOffset(0.7);
     777  xaxe2->SetTitleOffset(0.65);
    780778  yaxe2->SetTitleOffset(0.55);   
    781779  xaxe2->SetLabelSize(0.06);
    782780  yaxe2->SetLabelSize(0.06);   
    783 
     781 
    784782  pix.CreateGraphEvents();
    785783  TGraph *gr = pix.GetGraphEvents();
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r5841 r5940  
    289289        DrawTab(plist, "MHCalibrationChargeBlindCam", "BlindPix",  drawoption);
    290290    if (IsRelTimes())
    291         DrawTab(plist, "MHCalibrationRelTimeCam",     "RelTime",   drawoption);
     291        DrawTab(plist, "MHCalibrationRelTimeCam",     "Time",      drawoption);
    292292    DrawTab(plist, "MHCalibrationChargeCam",          "Charge",    drawoption);
    293293
Note: See TracChangeset for help on using the changeset viewer.