Ignore:
Timestamp:
04/20/07 14:59:58 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.cc

    r8427 r8428  
    318318  *fLog << endl;
    319319
    320   MCalibrationCam *blindcam = fIntensCam ? fIntensCam->GetCam() : fCam;
    321      
    322320  for (Int_t i=0; i<fHiGainArray->GetSize(); i++)
    323321    {
     
    360358        }
    361359
    362       MCalibrationBlindPix  &pix = (MCalibrationBlindPix&)(*blindcam)[i];
    363 
    364       FitBlindPixel(hist,pix);
     360      FitBlindPixel(hist, (MCalibrationBlindPix&)(*fCam)[i]);
    365361    }
    366362
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc

    r8417 r8428  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.21 2007-04-18 15:33:56 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationHiLoCam.cc,v 1.22 2007-04-20 13:55:00 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    392392        pix.SetHivsLoLast (fHivsLoLast);
    393393
    394         InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);
     394        InitHists(pix, fCam->GetAverageBadArea(j), j);
    395395
    396396        if (fCam)
     
    425425          pix.SetHivsLoLast (fHivsLoLast);
    426426         
    427           InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);
     427          InitHists(pix, fCam->GetAverageBadSector(j), j);
    428428
    429429          if (fCam)
     
    516516          pix.SetHivsLoLast (fHivsLoLast );
    517517         
    518           InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);
     518          InitHists(pix, fCam->GetAverageBadArea(j), j);
    519519
    520520          h =  pix.GetHivsLo();
     
    547547        pix.SetHivsLoLast (fHivsLoLast);
    548548       
    549         InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);
     549        InitHists(pix, fCam->GetAverageBadSector(j), j);
    550550
    551551        h =  pix.GetHivsLo();
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r8417 r8428  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.35 2007-04-18 15:33:56 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.36 2007-04-20 13:55:00 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    253253// Gets or creates the pointers to:
    254254// - MExtractedSignalCam
    255 // - MCalibrationPulseTimeCam or MCalibrationIntensityPulseTimeCam
     255// - MCalibrationPulseTimeCam
    256256// - MBadPixelsCam
    257257//
     
    327327        pix.SetBinning(fNbins, fFirst, fLast);
    328328
    329         InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j);
     329        InitHists(pix, fCam->GetAverageBadArea(j), j);
    330330      }
    331331  }
     
    340340          pix.SetBinning(fNbins, fFirst, fLast);
    341341
    342           InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j);
     342          InitHists(pix, fCam->GetAverageBadSector(j), j);
    343343      }
    344344  }
     
    464464  *fLog << endl;
    465465
    466   MCalibrationCam &calcam  = *(fIntensCam ? fIntensCam->GetCam() : fCam);
    467466  //
    468467  // Perform the fitting for the High Gain (done in MHCalibrationCam)
     
    472471
    473472      MHCalibrationPix &hist = (*this)[i];
    474 
    475473      if (hist.IsExcluded())
    476474        continue;
    477475
    478       MCalibrationPix &pix    = calcam[i];
    479       CalcHists(hist,pix);
     476      CalcHists(hist, (*fCam)[i]);
    480477    }
    481478
     
    484481
    485482  for (Int_t j=0; j<fAverageHiGainAreas->GetSize(); j++)
    486     {
    487       MHCalibrationPix &hist = GetAverageHiGainArea(j);
    488       MCalibrationPix  &pix  = calcam.GetAverageArea(j);
    489       CalcHists(hist,pix);
    490     }
     483      CalcHists(GetAverageHiGainArea(j), fCam->GetAverageArea(j));
    491484
    492485  for (Int_t j=0; j<fAverageHiGainSectors->GetSize(); j++)
    493     {
    494       MHCalibrationPix &hist = GetAverageHiGainSector(j);
    495       MCalibrationPix  &pix  = calcam.GetAverageSector(j);
    496       CalcHists(hist,pix);
    497     }
     486      CalcHists(GetAverageHiGainSector(j), fCam->GetAverageSector(j));
    498487
    499488  return kTRUE;
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc

    r8417 r8428  
    9595#include "MParList.h"
    9696
    97 #include "MCalibrationIntensityRelTimeCam.h"
    98 
    9997#include "MCalibrationRelTimeCam.h"
    10098#include "MCalibrationRelTimePix.h"
     
    446444  *fLog << endl;
    447445
    448   MCalibrationCam *relcam = fIntensCam ? fIntensCam->GetCam() : fCam;
    449 
    450446  const Int_t nareas = fAverageHiGainAreas->GetSize();
    451447  const Int_t nsectors = fAverageHiGainSectors->GetSize();
     
    467463      const Int_t sector = (*fGeom)[i].GetSector();
    468464
    469       MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*relcam)[i] ;
    470 
    471465      fNumareahi[aidx]++;
    472466      fNumsectorhi[sector]++;
     467
    473468      //
    474469      // Check saturation
    475470      //
     471      MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)(*fCam)[i] ;
    476472      if (histhi.GetSaturated() > fNumHiGainSaturationLimit*histhi.GetHGausHist()->GetEntries())
    477473        {
     
    496492  for (Int_t j=0; j<nareas; j++)
    497493    {
    498      
    499       MHCalibrationPix     &histhi = GetAverageHiGainArea(j);     
    500       MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)relcam->GetAverageArea(j);
     494
     495      MHCalibrationPix     &histhi = GetAverageHiGainArea(j);
     496      MCalibrationRelTimePix &pix = (MCalibrationRelTimePix&)fCam->GetAverageArea(j);
    501497
    502498      if (satarea[j] > 0.5*fNumareahi[j])
     
    519515  for (Int_t j=0; j<fAverageHiGainSectors->GetSize(); j++)
    520516    {
    521      
     517
    522518      MHCalibrationPix &histhi = GetAverageHiGainSector(j);     
    523       MCalibrationRelTimePix  &pix = (MCalibrationRelTimePix&)relcam->GetAverageSector(j) ;
    524519
    525520      if (satsect[j] > 0.5*fNumsectorhi[j])
    526521        {
     522          MCalibrationRelTimePix  &pix = (MCalibrationRelTimePix&)fCam->GetAverageSector(j) ;
    527523          pix.SetHiGainSaturation();
    528524          histhi.SetExcluded();
     
    540536    }
    541537
    542   FitHiGainArrays(*relcam, *fBadPixels,
     538  FitHiGainArrays(*fCam, *fBadPixels,
    543539                  MBadPixelsPix::kRelTimeNotFitted,
    544540                  MBadPixelsPix::kRelTimeOscillating);
    545541
    546   if (IsLoGain())       
    547     FitLoGainArrays(*relcam, *fBadPixels,
     542  if (IsLoGain())
     543    FitLoGainArrays(*fCam, *fBadPixels,
    548544                    MBadPixelsPix::kRelTimeNotFitted,
    549545                    MBadPixelsPix::kRelTimeOscillating);
Note: See TracChangeset for help on using the changeset viewer.