Changeset 5017


Ignore:
Timestamp:
09/14/04 20:55:46 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5015 r5017  
    4343     - took out FindColor() which is now taken care of by
    4444       MCalibColorSet
     45     - introduced MBadPixelsIntensityCam
    4546
    4647   * mhcalib/MHGausEvents.cc
  • trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h

    r4988 r5017  
    1515#endif
    1616
    17 class TClonesArray;
     17class TObjArray;
    1818
    1919class MCalibrationPix;
     
    4444  PulserColor_t fPulserColor;        // Colour of the pulsed LEDs
    4545
    46   TClonesArray *fPixels;             // Array of MCalibrationPix, one per pixel
    47   TClonesArray *fAverageAreas;       // Array of MCalibrationPix, one per pixel area
    48   TClonesArray *fAverageSectors;     // Array of MCalibrationPix, one per camera sector
    49   TClonesArray *fAverageBadAreas;    // Array of MBadPixelsPix,   one per pixel area
    50   TClonesArray *fAverageBadSectors;  // Array of MBadPixelsPix,   one per camera sector
     46  TObjArray *fPixels;                //-> Array of MCalibrationPix, one per pixel
     47  TObjArray *fAverageAreas;          //-> Array of MCalibrationPix, one per pixel area
     48  TObjArray *fAverageSectors;        //-> Array of MCalibrationPix, one per camera sector
     49  TObjArray *fAverageBadAreas;       //-> Array of MBadPixelsPix,   one per pixel area
     50  TObjArray *fAverageBadSectors;     //-> Array of MBadPixelsPix,   one per camera sector
     51
     52  virtual void Add(const UInt_t a, const UInt_t b);
     53  virtual void AddArea(const UInt_t a, const UInt_t b);
     54  virtual void AddSector(const UInt_t a, const UInt_t b);
    5155 
    5256public:
     
    97101  void  SetPulserColor         ( const PulserColor_t col=kCT1 )  { fPulserColor = col; }
    98102 
    99   ClassDef(MCalibrationCam, 4)  // Base class Container for Calibration Results Camera
     103  ClassDef(MCalibrationCam, 5)  // Base class Container for Calibration Results Camera
    100104};
    101105
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r5010 r5017  
    14321432
    14331433      MCalibrationBlindCamOneOldStyle blindresults;
    1434       blindresults.Copy(fCalibrationBlindCam);
     1434      if (IsIntensity())
     1435        blindresults.Copy(*fIntensBlindCam.GetCam());
     1436      else
     1437        blindresults.Copy(fCalibrationBlindCam);
    14351438
    14361439      blindext.SetExtractionType(MExtractBlindPixel::kIntegral);
     
    14431446
    14441447      MCalibrationBlindCamTwoNewStyle blindresults;
    1445       blindresults.Copy(fCalibrationBlindCam);
     1448
     1449      if (IsIntensity())
     1450        blindresults.Copy(*fIntensBlindCam.GetCam());
     1451      else
     1452        blindresults.Copy(fCalibrationBlindCam);
    14461453
    14471454      blindext.SetNumBlindPixels(blindresults.GetSize());
     
    15791586        //        plist.AddToList(&fIntensCalibrationPINDiode);
    15801587        plist.AddToList(&fIntensRelTimeCam);
     1588        plist.AddToList(&fIntensBadCam);
    15811589      }
    15821590    else
     
    19641972    if (IsIntensity())
    19651973      {
     1974        *fLog << inf << " - MBadPixelsIntensityCam..." << flush;
     1975        if (fIntensBadCam.Write()<=0)
     1976          {
     1977            *fLog << err << "Unable to write MBadPixelsIntensityCam to " << oname << endl;
     1978            return kFALSE;
     1979          }
     1980        *fLog << inf << "ok." << endl;
     1981
    19661982        *fLog << inf << " - MCalibrationIntensityChargeCam..." << flush;
    19671983        if (fIntensCalibCam.Write()<=0)
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r4987 r5017  
    3131#ifndef MARS_MCalibrationQECam
    3232#include "MCalibrationQECam.h"
     33#endif
     34#ifndef MARS_MBadPixelsIntensityCam
     35#include "MBadPixelsIntensityCam.h"
    3336#endif
    3437#ifndef MARS_MBadPixelsCam
     
    8285  MExtractTime   *fTimeExtractor;                       // Arrival Time extractor
    8386 
    84   MBadPixelsCam                   fBadPixels;           // Bad Pixels cam, can be set from previous runs
     87  MBadPixelsIntensityCam          fIntensBadCam;        // Bad Pixels cam, can be set from previous runs
     88  MBadPixelsCam                   fBadPixels;           // Bad Pixels cam, can be set from previous runs 
    8589  MCalibrationIntensityChargeCam  fIntensCalibCam;      // Calibration conversion factors FADC2Phe for diff. intens.
    8690  MCalibrationChargeCam           fCalibrationCam;      // Calibration conversion factors FADC2Phe 
     
    143147  MCalibrationIntensityRelTimeCam &GetIntensRelTimeCam()     { return fIntensRelTimeCam; }
    144148  MCalibrationIntensityQECam      &GetIntensQECam()          { return fIntensQECam;      }
     149  MBadPixelsIntensityCam          &GetIntensBadCam()         { return fIntensBadCam;     } 
    145150
    146151  MCalibrationChargeCam           &GetCalibrationCam()       { return fCalibrationCam;   }
Note: See TracChangeset for help on using the changeset viewer.