Changeset 3709 for trunk


Ignore:
Timestamp:
04/11/04 18:17:20 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3708 r3709  
    2222   * macros/dohtml.C
    2323     - included directory mjobs
     24
     25   * mjobs/MJCalibration.[h,cc]
     26     - added and updated documentation (not yet ready)
     27
     28   * htmldoc/images/CalibClasses.gif
     29     - scheme of the calibration classes, used for documentation in
     30       MJCalibration.cc
    2431
    2532
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3689 r3709  
    2828//  MJCalibration
    2929//
     30//Begin_Html
     31/*
     32<img src="images/CalibClasses.gif">
     33*/
     34//End_Html
     35//
    3036/////////////////////////////////////////////////////////////////////////////
    3137#include "MJCalibration.h"
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r3564 r3709  
    44#ifndef MARS_MCalibrationChargeCam
    55#include "MCalibrationChargeCam.h"
     6#endif
     7#ifndef MARS_MCalibrationQECam
     8#include "MCalibrationQECam.h"
    69#endif
    710#ifndef MARS_MBadPixelsCam
     
    1518class MParList;
    1619class MPedestalCam;
    17 
    1820class MJCalibration : public MParContainer
    1921{
    2022private:
    21     TString fOutputPath;
    2223
    23     MRunIter *fRuns;
     24  TString fOutputPath;                                     // Path to the output files
     25 
     26  MRunIter *fRuns;                                         // Calibration files
     27 
     28  MCalibrationChargeCam fCalibrationCam;                   // Calibration conversion factors FADC2Phe
     29  MCalibrationQECam     fQECam;                            // Quantum efficiency, can be set from previous runs
     30  MBadPixelsCam         fBadPixels;                        // Bad Pixels cam, can be set from previous runs
     31 
     32  void DrawProjection   ( MHCamera *obj, Int_t fit) const; // Draw projection of pixels values
     33  void DrawRadialProfile( MHCamera *obj)            const; // Draw projection of pixels values onto camera radius
     34  void CamDraw(TCanvas &c, const Int_t x, const Int_t y, const MHCamera &cam1,
     35               const Int_t fit, const Int_t rad=0);        // Draw histograms into the MStatusDisplay
     36 
     37  void   DisplayResult(MParList &plist);
     38  Bool_t WriteResult();
     39 
     40public:
    2441
    25     MCalibrationChargeCam fCalibrationCam;
    26     MBadPixelsCam         fBadPixels;
    27 
    28     void DrawProjection  ( MHCamera *obj, Int_t fit) const;
    29     void DrawRadialProfile( MHCamera *obj)            const;   
    30     void CamDraw(TCanvas &c, const Int_t x, const Int_t y, const MHCamera &cam1,
    31                  const Int_t fit, const Int_t rad=0);
    32 
    33     void   DisplayResult(MParList &plist);
    34     Bool_t WriteResult();
    35 
    36 public:
    37     MJCalibration(const char *name=NULL, const char *title=NULL);
    38 
    39     void SetInput(MRunIter *iter) { fRuns=iter; }
    40     void SetOutputPath(const char *path=".");
    41 
    42     TString GetOutputFile() const;
    43 
    44     MCalibrationChargeCam &GetCalibrationCam() { return fCalibrationCam; }
    45     const MBadPixelsCam &GetBadPixels() const { return fBadPixels; }
    46 
    47     void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
    48 
    49     Bool_t ReadCalibrationCam();
    50     Bool_t ProcessFile(MPedestalCam &pedcam);
    51     Bool_t Process(MPedestalCam &pedcam);
    52 
    53     ClassDef(MJCalibration, 0) // Tool to create a pedestal file (MPedestalCam)
     42  MJCalibration(const char *name=NULL, const char *title=NULL);
     43 
     44  void SetInput(MRunIter *iter) { fRuns=iter; }
     45  void SetOutputPath(const char *path=".");
     46 
     47  TString GetOutputFile() const;
     48 
     49  MCalibrationChargeCam &GetCalibrationCam()     { return fCalibrationCam; }
     50  MCalibrationQECam     &GetQECam()              { return fQECam;          }   
     51  const MBadPixelsCam   &GetBadPixels() const    { return fBadPixels;      }
     52 
     53  void SetBadPixels(const MBadPixelsCam &bad)    { bad.Copy(fBadPixels);   }
     54  void SetQECam    (const MCalibrationQECam &qe) { qe.Copy(fQECam);        }   
     55 
     56  Bool_t ReadCalibrationCam();
     57  Bool_t ProcessFile( MPedestalCam &pedcam );
     58  Bool_t Process    ( MPedestalCam &pedcam );
     59 
     60  ClassDef(MJCalibration, 0) // Tool to create a calibration file (MCalibrationCam)
    5461};
    5562
Note: See TracChangeset for help on using the changeset viewer.