Changeset 8504


Ignore:
Timestamp:
05/14/07 14:29:12 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8502 r8504  
    2020 2007/05/14 Thomas Bretz
    2121
     22   * callisto_mux.rc:
     23     - cleanup of some comments
     24
    2225   * mjobs/MJCalibration.cc:
    2326     - fixed the unintentionally removed setting of pedestal
     
    3033     - according to the last changes the version number has been
    3134       increased to 9
     35
     36   * mcalib/MCalibrationCam.cc:
     37     - added code to GetPixelContent from MCalibrationPedCam
     38
     39   * mcalib/Makefile, mcalib/CalibLinkDef.h:
     40     - removed obsolete MCalibrationPedCam
     41
     42   * mhcalib/MHPedestalCam.cc:
     43     - Removed references to MCalibrationPedCam use a MCalibrationCam
     44       with the name MCalibrationPedCam instead
     45
     46   * mjobs/MJCalibration.cc:
     47     - changed background color in Defects to be able to read
     48       the yellow text color
     49
     50   * mjobs/MJPedestal.cc:
     51     - removed obsolete include of MCalibrationPedCam
    3252
    3353
  • trunk/MagicSoft/Mars/mcalib/CalibLinkDef.h

    r8452 r8504  
    2323#pragma link C++ class MCalibrationRelTimePix+;
    2424#pragma link C++ class MCalibrationPulseTimeCam+;
    25 #pragma link C++ class MCalibrationPedCam+;
    2625#pragma link C++ class MCalibrationQECamMagic+;
    2726#pragma link C++ class MCalibrationQECam+;
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc

    r7804 r8504  
    538538// --------------------------------------------------------------------------
    539539//
    540 // Dummy needed for compilation with MCamEvent
    541 //
    542540Bool_t MCalibrationCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    543541{
    544   return kTRUE;
    545 }
    546 
    547 
     542    if (idx > GetSize())
     543        return kFALSE;
     544
     545    const Float_t area = cam[idx].GetA();
     546
     547    if (area == 0)
     548        return kFALSE;
     549
     550    if ((*this)[idx].IsExcluded())
     551        return kFALSE;
     552
     553    switch (type)
     554    {
     555    case 0:
     556        val = (*this)[idx].GetHiGainMean();
     557        break;
     558    case 1:
     559        val = (*this)[idx].GetHiGainMeanErr();
     560        break;
     561    case 2:
     562        val = (*this)[idx].GetHiGainSigma();
     563        break;
     564    case 3:
     565        val = (*this)[idx].GetHiGainSigmaErr();
     566        break;
     567    case 4:
     568        val = (*this)[idx].GetHiGainProb();
     569        break;
     570    case 5:
     571        val = (*this)[idx].GetLoGainMean();
     572        break;
     573    case 6:
     574        val = (*this)[idx].GetLoGainMeanErr();
     575        break;
     576    case 7:
     577        val = (*this)[idx].GetLoGainSigma();
     578        break;
     579    case 8:
     580        val = (*this)[idx].GetLoGainSigmaErr();
     581        break;
     582    default:
     583        return kFALSE;
     584    }
     585
     586    return val!=-1.;
     587}
    548588
    549589// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mcalib/Makefile

    r8452 r8504  
    4848           MCalibrationQECam.cc \
    4949           MCalibrationQEPix.cc  \
    50            MCalibrationPedCam.cc \
    5150           MCalibrationTestCalc.cc \
    5251           MCalibrationTestCam.cc \
  • trunk/MagicSoft/Mars/mhcalib/MHPedestalCam.cc

    r8490 r8504  
    108108#include "MGeomPix.h"
    109109
    110 #include "MCalibrationPedCam.h"
    111 
    112110#include <TH1F.h>
    113111#include <TOrdCollection.h>
     
    291289  const Int_t nareas   = fGeom->GetNumAreas();
    292290
    293   fCam = (MCalibrationCam*)pList->FindObject("MCalibrationPedCam");
     291  fCam = (MCalibrationCam*)pList->FindObject("MCalibrationPedCam", "MCalibrationCam");
    294292  if (!fCam)
    295293  {
    296       fCam = (MCalibrationCam*)pList->FindCreateObj(AddSerialNumber("MCalibrationPedCam"));
     294      fCam = (MCalibrationCam*)pList->FindCreateObj("MCalibrationCam", AddSerialNumber("MCalibrationPedCam"));
    297295      if (!fCam)
    298296          return kFALSE;
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r8502 r8504  
    845845      pave->ConvertNDCtoPad();
    846846      pave->SetTextSize(0.045);
     847      pave->SetFillColor(14);
    847848      pave->AddText("  ");
    848849      DrawBadPixel(*pave, disp24,  1, f, "Signal smaller 4.5 Pedestal RMS:               ");
     
    888889      pave2->ConvertNDCtoPad();
    889890      pave2->SetTextSize(0.05);
     891      pave2->SetFillColor(14);
    890892      pave2->AddText("  ");
    891893      DrawBadPixel(*pave2, disp25,  1, f2, "Signal Sigma smaller Pedestal RMS:      ");
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8498 r8504  
    7171#include "MPedestalPix.h"
    7272
    73 #include "MCalibrationPedCam.h"
    7473#include "MCalibrationPix.h"
    7574#include "MHPedestalPix.h"
     
    10551054    plist.AddToList(&fPedestalCamOut);
    10561055    plist.AddToList(&fBadPixels);
    1057    
     1056
    10581057    MGeomApply geomapl;
    10591058    MBadPixelsMerge merge(&fBadPixels);
Note: See TracChangeset for help on using the changeset viewer.