Changeset 6969 for trunk


Ignore:
Timestamp:
04/21/05 16:49:41 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6968 r6969  
    2424 2005/04/21 Thomas Bretz
    2525
    26     * mjobs/MJCalibrateSignal.cc:
     26    * mhcalib/MHCalibrationRelTimeCam.cc:
     27      - fixed usage of a uninitialized pointer
     28
     29    * mjobs/MJCalibrateSignal.cc, mjobs/MJCalibration.cc:
    2730      - fixed usage of MFTriggerPattern
    2831
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc

    r6919 r6969  
    2222!
    2323\* ======================================================================== */
     24
    2425/////////////////////////////////////////////////////////////////////////////
    25 //                                                                       
    26 // MHCalibrationRelTimeCam                                               
    27 //                                                                       
    28 // Fills the extracted relative arrival times of MArrivalTimeCam into 
     26//
     27// MHCalibrationRelTimeCam
     28//
     29// Fills the extracted relative arrival times of MArrivalTimeCam into
    2930// the MHCalibrationPix-classes MHCalibrationPix for every:
    3031//
    31 // - Pixel, stored in the TObjArray's MHCalibrationCam::fHiGainArray 
    32 //   or MHCalibrationCam::fHiGainArray, respectively, depending if 
     32// - Pixel, stored in the TObjArray's MHCalibrationCam::fHiGainArray
     33//   or MHCalibrationCam::fHiGainArray, respectively, depending if
    3334//   MArrivalTimePix::IsLoGainUsed() is set.
    3435//
    35 // - Average pixel per AREA index (e.g. inner and outer for the MAGIC camera), 
    36 //   stored in the TObjArray's MHCalibrationCam::fAverageHiGainAreas and 
     36// - Average pixel per AREA index (e.g. inner and outer for the MAGIC camera),
     37//   stored in the TObjArray's MHCalibrationCam::fAverageHiGainAreas and
    3738//   MHCalibrationCam::fAverageHiGainAreas
    3839//
    39 // - Average pixel per camera SECTOR (e.g. sectors 1-6 for the MAGIC camera), 
    40 //   stored in the TObjArray's MHCalibrationCam::fAverageHiGainSectors 
    41 //   and MHCalibrationCam::fAverageHiGainSectors 
    42 //
    43 // Every relative time is calculated as the difference between the individual 
    44 // pixel arrival time and the one of pixel 1 (hardware number: 2). 
    45 // The relative times are filled into a histogram and an array, in order to perform 
    46 // a Fourier analysis (see MHGausEvents). The signals are moreover averaged on an 
     40// - Average pixel per camera SECTOR (e.g. sectors 1-6 for the MAGIC camera),
     41//   stored in the TObjArray's MHCalibrationCam::fAverageHiGainSectors
     42//   and MHCalibrationCam::fAverageHiGainSectors
     43//
     44// Every relative time is calculated as the difference between the individual
     45// pixel arrival time and the one of pixel 1 (hardware number: 2).
     46// The relative times are filled into a histogram and an array, in order to perform
     47// a Fourier analysis (see MHGausEvents). The signals are moreover averaged on an
    4748// event-by-event basis and written into the corresponding average pixels.
    4849//
    49 // The histograms are fitted to a Gaussian, mean and sigma with its errors 
    50 // and the fit probability are extracted. If none of these values are NaN's and 
    51 // if the probability is bigger than MHGausEvents::fProbLimit (default: 0.5%), 
     50// The histograms are fitted to a Gaussian, mean and sigma with its errors
     51// and the fit probability are extracted. If none of these values are NaN's and
     52// if the probability is bigger than MHGausEvents::fProbLimit (default: 0.5%),
    5253// the fit is declared valid.
    53 // Otherwise, the fit is repeated within ranges of the previous mean 
    54 // +- MHCalibrationPix::fPickupLimit (default: 5) sigma (see MHCalibrationPix::RepeatFit())
    55 // In case this does not make the fit valid, the histogram means and RMS's are
    56 // taken directly (see MHCalibrationPix::BypassFit()) and the following flags are set:
     54// Otherwise, the fit is repeated within ranges of the previous mean
     55// - MHCalibrationPix::fPickupLimit (default: 5) sigma (see MHCalibrationPix::RepeatFit())
     56//   In case this does not make the fit valid, the histogram means and RMS's are
     57//   taken directly (see MHCalibrationPix::BypassFit()) and the following flags are set:
    5758// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kRelTimeNotFitted ) and
    58 // - MBadPixelsPix::SetUnsuitable(   MBadPixelsPix::kUnreliableRun    ) 
    59 // 
    60 // Outliers of more than MHCalibrationPix::fPickupLimit (default: 5) sigmas 
    61 // from the mean are counted as Pickup events (stored in MHCalibrationPix::fPickup) 
    62 //
    63 // The class also fills arrays with the signal vs. event number, creates a fourier 
    64 // spectrum (see MHGausEvents::CreateFourierSpectrum()) and investigates if the 
    65 // projected fourier components follow an exponential distribution. 
    66 // In case that the probability of the exponential fit is less than 
     59// - MBadPixelsPix::SetUnsuitable(   MBadPixelsPix::kUnreliableRun    )
     60//
     61// Outliers of more than MHCalibrationPix::fPickupLimit (default: 5) sigmas
     62// from the mean are counted as Pickup events (stored in MHCalibrationPix::fPickup)
     63//
     64// The class also fills arrays with the signal vs. event number, creates a fourier
     65// spectrum (see MHGausEvents::CreateFourierSpectrum()) and investigates if the
     66// projected fourier components follow an exponential distribution.
     67// In case that the probability of the exponential fit is less than
    6768// MHGausEvents::fProbLimit (default: 0.5%), the following flags are set:
    6869// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kRelTimeOscillating ) and
     
    8384// the number involved pixels in order to be able to compare it to the average of
    8485// sigmas in the camera.
    85 //                                                                         
     86//
    8687/////////////////////////////////////////////////////////////////////////////
    8788#include "MHCalibrationRelTimeCam.h"
     
    136137const TString MHCalibrationRelTimeCam::gsHistYTitle = "Nr. events";
    137138const TString MHCalibrationRelTimeCam::fgReferenceFile = "mjobs/calibrationref.rc";
     139
    138140// --------------------------------------------------------------------------
    139141//
     
    808810  pix.CreateGraphEvents();
    809811  TGraph *gr = pix.GetGraphEvents();
    810 
    811   xaxe2->SetTitle(gr->GetXaxis()->GetTitle());
    812   yaxe2->SetTitle(gr->GetYaxis()->GetTitle()); 
     812  if (gr)
     813  {
     814      xaxe2->SetTitle(gr->GetXaxis()->GetTitle());
     815      yaxe2->SetTitle(gr->GetYaxis()->GetTitle());
     816  }
    813817
    814818  null2->Draw();
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r6963 r6969  
    18491849    MTriggerPatternDecode     trgpat;
    18501850    MFTriggerPattern          fcalib("CalibFilter");
     1851    fcalib.SetDefault(kFALSE);
    18511852    fcalib.DenyCalibration(MFTriggerPattern::kPrescaled);
    18521853
Note: See TracChangeset for help on using the changeset viewer.