Ignore:
Timestamp:
04/13/04 20:03:32 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r3723 r3725  
    6666
    6767#include "MPedestalCam.h"
     68#include "MCalibrationCam.h"
    6869#include "MCalibrationQECam.h"
    6970#include "MCalibrationChargeCam.h"
     
    9596// Default constructor.
    9697//
    97 // Sets fRuns to 0
    98 //
    99 MJCalibration::MJCalibration(const char *name, const char *title) : fRuns(0)
    100 {
    101     fName  = name  ? name  : "MJCalibration";
    102     fTitle = title ? title : "Tool to create a pedestal file (MPedestalCam)";
     98// Sets fRuns to 0, fColor to kNONE
     99//
     100MJCalibration::MJCalibration(const char *name, const char *title)
     101    : fRuns(0), fColor(MCalibrationCam::kNONE)
     102{
     103  fName  = name  ? name  : "MJCalibration";
     104  fTitle = title ? title : "Tool to create a pedestal file (MPedestalCam)";
     105
    103106}
    104107
     
    719722    MExtractSignal2          extract;
    720723    MCalibrationChargeCalc   calcalc;
    721     calcalc.SetPulserColor(MCalibrationCam::kCT1);
     724
     725    //
     726    // As long as there are no DM's, have to colour by hand
     727    //
     728    calcalc.SetPulserColor(fColor);
    722729
    723730    MFillH fillpin("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode");
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.h

    r3723 r3725  
    2929  MCalibrationQECam     fQECam;                            // Quantum efficiency, can be set from previous runs
    3030  MBadPixelsCam         fBadPixels;                        // Bad Pixels cam, can be set from previous runs
     31
     32  MCalibrationCam::PulserColor_t fColor;                   // Colour of the pulsed LEDs
    3133 
    3234  void DrawProjection   ( MHCamera *obj, Int_t fit) const; // Draw projection of pixels values
     
    5355  void SetBadPixels(const MBadPixelsCam &bad)    { bad.Copy(fBadPixels);   }
    5456  void SetQECam    (const MCalibrationQECam &qe) { qe.Copy(fQECam);        }   
     57  void SetColor    (const MCalibrationCam::PulserColor_t color) { fColor = color;   }
    5558 
    5659  Bool_t ReadCalibrationCam();
Note: See TracChangeset for help on using the changeset viewer.