Changeset 4622
- Timestamp:
- 08/16/04 12:20:06 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r4620 r4622 36 36 { 37 37 private: 38 static const Int_t gkIFAEBoxInaugurationRun; // Run number of first IFAE box calibration39 static const Int_t gkSecondBlindPixelInstallation; // Run number upon which second blind pixel was installed40 static const Int_t gkThirdBlindPixelInstallation; // Run number upon which third blind pixel was installed41 38 42 TString fOutputPath; // Path to the output files 39 static const Int_t gkIFAEBoxInaugurationRun; //! Run number of first IFAE box calibration 40 static const Int_t gkSecondBlindPixelInstallation; //! Run number upon which second blind pixel was installed 41 static const Int_t gkThirdBlindPixelInstallation; //! Run number upon which third blind pixel was installed 43 42 44 TEnv *fEnv; 45 MRunIter *fRuns; // Calibration files 46 MSequence *fSequence; // Sequence 43 static const Float_t fgRefConvFADC2Phe; //! Reference value for the conversion factor to phes 44 static const Float_t fgRefConvFADC2PhotInner; //! Reference value for the conversion factor to phs - inner 45 static const Float_t fgRefConvFADC2PhotOuter; //! Reference value for the conversion factor to phs - outer 46 static const Float_t fgRefQEInner; //! Reference value for the quantum eff. cascades - inner 47 static const Float_t fgRefQEOuter; //! Reference value for the quantum eff. cascades - outer 47 48 48 MExtractor *fExtractor; // Signal extractor 49 MExtractTime *fTimeExtractor; // Arrival Time extractor 49 TString fOutputPath; // Path to the output files 50 51 TEnv *fEnv; // Input setup-file 52 MRunIter *fRuns; // Calibration files 53 MSequence *fSequence; // Sequence 54 55 MExtractor *fExtractor; // Signal extractor 56 MExtractTime *fTimeExtractor; // Arrival Time extractor 57 58 MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs 59 MCalibrationChargeCam fCalibrationCam; // Calibration conversion factors FADC2Phe 60 MCalibrationChargeBlindCam fCalibrationBlindCam; // Calibration from Blind Pixel(s) 61 MCalibrationChargePINDiode fCalibrationPINDiode; // Calibration from PIN Diode 62 MCalibrationQECam fQECam; // Quantum efficiency, can be set from previous runs 63 MCalibrationRelTimeCam fRelTimeCam; // Calibration constants rel. times 64 65 MCalibrationCam::PulserColor_t fColor; // Colour of the pulsed LEDs 66 67 enum Display_t // Possible Display types 68 { 69 kFullDisplay, 70 kDataCheckDisplay, 71 kNormalDisplay 72 }; 73 74 Display_t fDisplayType; // Chosen Display type 75 76 enum Device_t // Possible devices for calibration 77 { 78 kUseBlindPixel, 79 kUsePINDiode 80 }; 81 82 Byte_t fDevices; // Bit-field for used devices for calibration 83 84 Bool_t fRelTimes; // Flag if relative times have to be calibrated 85 Bool_t fDataCheck; // Flag if the data check is run on raw data 86 Bool_t fDebug; 87 88 void DisplayResult(MParList &plist); 89 void DisplayReferenceLines(MHCamera *cam, const Int_t what) const; 90 void DisplayOutliers(TH1D *hist, const char* whatsmall, const char* whatbig) const; 91 void DisplayDoubleProject(MHCamera *cam, const char* whatsmall, const char* whatbig) const; 92 void FixDataCheckHist(TH1D *hist) const; 93 94 Bool_t WriteResult(); 95 void CheckEnv(); 96 97 // WORKAROUNDS!!! 98 Bool_t FindColor(); 99 void InitBlindPixel(MExtractBlindPixel &blindext, 100 MHCalibrationChargeBlindCam &blindcam); 101 102 public: 50 103 51 MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs 52 MCalibrationChargeCam fCalibrationCam; // Calibration conversion factors FADC2Phe 53 MCalibrationChargeBlindCam fCalibrationBlindCam; // Calibration from Blind Pixel(s) 54 MCalibrationChargePINDiode fCalibrationPINDiode; // Calibration from PIN Diode 55 MCalibrationQECam fQECam; // Quantum efficiency, can be set from previous runs 56 MCalibrationRelTimeCam fRelTimeCam; // Calibration constants rel. times 57 58 MCalibrationCam::PulserColor_t fColor; // Colour of the pulsed LEDs 59 60 enum Display_t // Possible Display types 61 { 62 kFullDisplay, 63 kDataCheckDisplay, 64 kNormalDisplay 65 }; 66 67 Display_t fDisplayType; // Chosen Display type 68 69 enum Device_t // Possible devices for calibration 70 { 71 kUseBlindPixel, 72 kUsePINDiode 73 }; 74 75 Byte_t fDevices; // Bit-field for used devices for calibration 76 77 Bool_t fRelTimes; // Flag if relative times have to be calibrated 78 Bool_t fDataCheck; // Flag if the data check is run on raw data 79 Bool_t fDebug; 80 81 void DisplayResult(MParList &plist); 82 void DisplayReferenceLines(MHCamera *cam, const Int_t what) const; 83 void DisplayOutliers(TH1D *hist, const char* whatsmall, const char* whatbig) const; 84 void DisplayDoubleProject(MHCamera *cam, const char* whatsmall, const char* whatbig) const; 85 void FixDataCheckHist(TH1D *hist) const; 86 87 Bool_t WriteResult(); 88 void CheckEnv(); 89 90 // WORKAROUNDS!!! 91 Bool_t FindColor(); 92 void InitBlindPixel(MExtractBlindPixel &blindext, 93 MHCalibrationChargeBlindCam &blindcam); 94 95 public: 96 MJCalibration(const char *name=NULL, const char *title=NULL); 97 ~MJCalibration(); 104 MJCalibration(const char *name=NULL, const char *title=NULL); 105 ~MJCalibration(); 98 106 99 const char* GetOutputFile() const; 100 void SetEnv(const char *env); 101 102 MCalibrationChargeCam &GetCalibrationCam() { return fCalibrationCam; } 103 MCalibrationRelTimeCam &GetRelTimeCam() { return fRelTimeCam; } 104 MCalibrationQECam &GetQECam() { return fQECam; } 105 MBadPixelsCam &GetBadPixels() { return fBadPixels; } 106 107 Bool_t IsUseBlindPixel() const; 108 Bool_t IsUsePINDiode() const; 109 110 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); } 111 void SetExtractor(MExtractor* ext) { fExtractor = ext; } 112 void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; } 113 void SetQECam(const MCalibrationQECam &qe) { qe.Copy(fQECam); } 114 void SetColor(const MCalibrationCam::PulserColor_t color) { fColor = color; } 115 116 void SetInput(MRunIter *iter) { fRuns=iter; } 117 void SetSequence(MSequence *seq) { fSequence=seq; } 118 void SetOutputPath(const char *path="."); 119 120 // Displays 121 void SetFullDisplay() { fDisplayType = kFullDisplay; } 122 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; } 123 void SetNormalDisplay() { fDisplayType = kNormalDisplay; } 124 125 // Rel. Time 126 void SetRelTimeCalibration(const Bool_t b=kTRUE) { fRelTimes = b; } 127 128 // Data Check 129 void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); } 130 131 // Debug 132 void SetDebug(const Bool_t b=kTRUE) { fDebug = b; } 133 134 // Devices 135 void SetUseBlindPixel(const Bool_t b=kTRUE); 136 void SetUsePINDiode(const Bool_t b=kTRUE); 107 const char* GetOutputFile() const; 108 void SetEnv(const char *env); 137 109 138 Bool_t ReadCalibrationCam(); 139 Bool_t ProcessFile(MPedestalCam &pedcam); 140 Bool_t Process(MPedestalCam &pedcam); 141 142 ClassDef(MJCalibration, 0) // Tool to run a calibration per pulser colour and intensity 110 MCalibrationChargeCam &GetCalibrationCam() { return fCalibrationCam; } 111 MCalibrationRelTimeCam &GetRelTimeCam() { return fRelTimeCam; } 112 MCalibrationQECam &GetQECam() { return fQECam; } 113 MBadPixelsCam &GetBadPixels() { return fBadPixels; } 114 115 Bool_t IsUseBlindPixel() const; 116 Bool_t IsUsePINDiode() const; 117 118 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); } 119 void SetExtractor(MExtractor* ext) { fExtractor = ext; } 120 void SetTimeExtractor(MExtractTime* ext) { fTimeExtractor = ext; } 121 void SetQECam(const MCalibrationQECam &qe) { qe.Copy(fQECam); } 122 void SetColor(const MCalibrationCam::PulserColor_t color) { fColor = color; } 123 124 void SetInput(MRunIter *iter) { fRuns=iter; } 125 void SetSequence(MSequence *seq) { fSequence=seq; } 126 void SetOutputPath(const char *path="."); 127 128 // Displays 129 void SetFullDisplay() { fDisplayType = kFullDisplay; } 130 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; } 131 void SetNormalDisplay() { fDisplayType = kNormalDisplay; } 132 133 // Rel. Time 134 void SetRelTimeCalibration(const Bool_t b=kTRUE) { fRelTimes = b; } 135 136 // Data Check 137 void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); } 138 139 // Debug 140 void SetDebug(const Bool_t b=kTRUE) { fDebug = b; } 141 142 // Devices 143 void SetUseBlindPixel(const Bool_t b=kTRUE); 144 void SetUsePINDiode(const Bool_t b=kTRUE); 145 146 Bool_t ReadCalibrationCam(); 147 Bool_t ProcessFile(MPedestalCam &pedcam); 148 Bool_t Process(MPedestalCam &pedcam); 149 150 ClassDef(MJCalibration, 0) // Tool to run a calibration per pulser colour and intensity 143 151 }; 144 152 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r4621 r4622 43 43 TEnv *fEnv; // Input setup-file 44 44 MRunIter *fRuns; // Used pedestal runs 45 MSequence *fSequence; // 45 MSequence *fSequence; // Sequence 46 46 47 47 MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices
Note:
See TracChangeset
for help on using the changeset viewer.