Changeset 4904


Ignore:
Timestamp:
09/09/04 17:39:17 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4903 r4904  
    6060   * mcalib/MHCalibrationTestPix.[h,cc]
    6161   * mcalib/MHCalibrationTestTimePix.[h,cc]
     62   * manalysis/MHPedestalPix.[h,cc]
    6263     - derive from MHCalibrationPix
    6364     - new functions Reset()
  • trunk/MagicSoft/Mars/manalysis/MHPedestalPix.h

    r3651 r4904  
    22#define MARS_MHPedestalPix
    33
    4 #ifndef MARS_MHGausEvents
    5 #include "MHGausEvents.h"
     4#ifndef MARS_MHCalibrationPix
     5#include "MHCalibrationPix.h"
    66#endif
    77
    8 class MHPedestalPix : public MHGausEvents
     8class MHPedestalPix : public MHCalibrationPix
    99{
    1010
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationTestTimeCam.cc

    r4808 r4904  
    4949// the fit is declared valid.
    5050// Otherwise, the fit is repeated within ranges of the previous mean
    51 // +- MHGausEvents::fPickupLimit (default: 5) sigma (see MHGausEvents::RepeatFit())
     51// +- MHCalibrationPix::fPickupLimit (default: 5) sigma (see MHCalibrationPix::RepeatFit())
    5252// In case this does not make the fit valid, the histogram means and RMS's are
    53 // taken directly (see MHGausEvents::BypassFit()) and the following flags are set:
     53// taken directly (see MHCalibrationPix::BypassFit()) and the following flags are set:
    5454// - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainNotFitted ) and
    5555// - MBadPixelsPix::SetUnsuitable(   MBadPixelsPix::kUnreliableRun    )
    5656//
    57 // Outliers of more than MHGausEvents::fPickupLimit (default: 5) sigmas
    58 // from the mean are counted as Pickup events (stored in MHGausEvents::fPickup)
     57// Outliers of more than MHCalibrationPix::fPickupLimit (default: 5) sigmas
     58// from the mean are counted as Pickup events (stored in MHCalibrationPix::fPickup)
    5959//
    6060// The class also fills arrays with the signal vs. event number, creates a fourier
     
    8585#include "MHCalibrationTestTimePix.h"
    8686
     87#include "MHCalibrationPix.h"
     88
    8789#include "MLog.h"
    8890#include "MLogManip.h"
     
    125127//
    126128// Initializes, if empty to MGeomCam::GetNumAreas() for:
    127 // - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas
     129// - MHCalibrationCam::fAverageHiGainAreas
    128130//
    129131// Initializes, if empty to MGeomCam::GetNumSectors() for:
    130 // - MHCalibrationCam::fAverageHiGainSectors, MHCalibrationCam::fAverageLoGainSectors
     132// - MHCalibrationCam::fAverageHiGainSectors
    131133//
    132134// Calls MHCalibrationCam::InitHists() for every entry in:
     
    168170  }
    169171
    170   if (fLoGainArray->GetEntries()==0)
    171   {
    172       fLoGainArray->Expand(npixels);
    173       for (Int_t i=0; i<npixels; i++)
    174       {
    175           (*fLoGainArray)[i] = new MHCalibrationTestTimePix("Calibrated Events Time",
    176                                                 "TestTime Calibration Pixel");
    177           InitHists((*this)(i),(*fBadPixels)[i],i);
    178       }
    179   }
    180 
    181 
    182172  if (fAverageHiGainAreas->GetEntries()==0)
    183173  {
     
    203193  }
    204194
    205   if (fAverageLoGainAreas->GetEntries()==0)
    206   {
    207     fAverageLoGainAreas->Expand(nareas);
    208    
    209     for (Int_t j=0; j<nareas; j++)
    210       {
    211         (*fAverageLoGainAreas)[j] =
    212           new MHCalibrationTestTimePix("MHCalibrationTestTimeAverageArea",
    213                            "Average TestTime Calibrations Area Idx ");
    214 
    215         GetAverageLoGainArea(j).GetHGausHist()->SetTitle("TestTime Calibrations Area Idx ");
    216         GetAverageLoGainArea(j).SetNbins(fAverageNbins);
    217         GetAverageLoGainArea(j).InitBins();
    218         GetAverageLoGainArea(j).ChangeHistId(j);
    219         GetAverageLoGainArea(j).SetEventFrequency(fPulserFrequency);
    220 
    221       }
    222   }
    223 
    224195
    225196  if (fAverageHiGainSectors->GetEntries()==0)
     
    245216  }
    246217
    247 
    248   if (fAverageLoGainSectors->GetEntries()==0)
    249   {
    250       fAverageLoGainSectors->Expand(nsectors);
    251 
    252       for (Int_t j=0; j<nsectors; j++)
    253       {
    254           (*fAverageLoGainSectors)[j] =
    255             new MHCalibrationTestTimePix("MHCalibrationTestTimeAverageSector",
    256                              "Average TestTime Calibrations Sector ");
    257 
    258           GetAverageLoGainSector(j).GetHGausHist()->SetTitle("TestTime Calibrations Sector ");
    259           GetAverageLoGainSector(j).SetNbins(fAverageNbins);
    260           GetAverageLoGainSector(j).InitBins();
    261           GetAverageLoGainSector(j).ChangeHistId(j);
    262           GetAverageLoGainSector(j).SetEventFrequency(fPulserFrequency);
    263       }
    264   }
    265    
     218  fLoGain = kFALSE;
    266219
    267220  return kTRUE;
     
    278231// - number of sectors
    279232//
    280 // Fills HiGain or LoGain histograms (MHGausEvents::FillHistAndArray()), respectively
    281 // depending on MCerPhotPix::IsLoGainUsed(), with:
    282 // - MCerPhotPix::GetArrivalTime(pixid) - MCerPhotPix::GetArrivalTime(1);
     233// Fills HiGain histograms (MHGausEvents::FillHistAndArray())
     234// with:
     235// - MArrivalTime::GetArrivalTime(pixid) - MArrivalTime::GetArrivalTime(1);
    283236//   (i.e. the time difference between pixel i and pixel 1 (hardware number: 2) )
    284237//
     
    305258    {
    306259
    307       MHGausEvents &histhi = (*this)[i];
     260      MHCalibrationPix &histhi = (*this)[i];
    308261
    309262      if (histhi.IsExcluded())
     
    323276  for (Int_t j=0; j<nareas; j++)
    324277    {
    325       MHGausEvents &histhi = GetAverageHiGainArea(j);
     278      MHCalibrationPix &histhi = GetAverageHiGainArea(j);
    326279      histhi.FillHistAndArray(numareahi[j] == 0 ? 0. : sumareahi[j]/numareahi[j]);
    327280
     
    330283  for (Int_t j=0; j<nsectors; j++)
    331284    {
    332       MHGausEvents &histhi = GetAverageHiGainSector(j);
     285      MHCalibrationPix &histhi = GetAverageHiGainSector(j);
    333286      histhi.FillHistAndArray(numsectorhi[j] == 0 ? 0. : sumsectorhi[j]/numsectorhi[j]);
    334287
     
    347300    {
    348301     
    349       MHGausEvents &hist = (*this)[i];
     302      MHCalibrationPix &hist = (*this)[i];
    350303     
    351304      if (hist.IsExcluded())
     
    368321    {
    369322     
    370       MHGausEvents     &hist = GetAverageHiGainArea(j);     
     323      MHCalibrationPix     &hist = GetAverageHiGainArea(j);     
    371324      if (hist.IsEmpty())
    372325        continue;
     
    386339    {
    387340     
    388       MHGausEvents     &hist = GetAverageHiGainSector(j);     
     341      MHCalibrationPix     &hist = GetAverageHiGainSector(j);     
    389342      if (hist.IsEmpty())
    390343        continue;
     
    439392    return kFALSE;
    440393
    441   const MHGausEvents &pix = (*this)[idx];
     394  const MHCalibrationPix &pix = (*this)[idx];
    442395
    443396  if (pix.IsExcluded())
     
    477430// --------------------------------------------------------------------------
    478431//
    479 // Calls MHGausEvents::DrawClone() for pixel idx
     432// Calls MHCalibrationPix::DrawClone() for pixel idx
    480433//
    481434void MHCalibrationTestTimeCam::DrawPixelContent(Int_t idx) const
     
    496449    {
    497450 
    498       MHGausEvents &hist    = GetAverageHiGainArea(j);
     451      MHCalibrationPix &hist    = GetAverageHiGainArea(j);
    499452
    500453      const Float_t numsqr    = TMath::Sqrt((Float_t)fAverageAreaNum[j]);
Note: See TracChangeset for help on using the changeset viewer.