Changeset 3913 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 04/30/04 17:11:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3905 r3913 39 39 // 40 40 // Different signal extractors can be set with the command SetExtractor() 41 // Only extractor deriving from MExtractor can be set, default is MExtractSlidingWindow 41 // Only extractors deriving from MExtractor can be set, default is MExtractSlidingWindow 42 // 43 // Different arrival time extractors can be set with the command SetTimeExtractor() 44 // Only extractors deriving from MTimeExtractor can be set, default is MExtractTimeSpline 42 45 // 43 46 // At the end of the eventloop, plots and results are displayed, depending on … … 116 119 #include "MBadPixelsMerge.h" 117 120 #include "MBadPixelsCam.h" 121 #include "MTimeExtractor.h" 118 122 #include "MExtractor.h" 119 123 #include "MExtractPINDiode.h" 120 124 #include "MExtractBlindPixel.h" 121 125 #include "MExtractSlidingWindow.h" 126 #include "MExtractTimeSpline.h" 122 127 #include "MFCosmics.h" 123 128 #include "MContinue.h" … … 139 144 // Default constructor. 140 145 // 141 // Sets fRuns to 0, fExtractor to NULL, f Color to kNONE, fDisplay to kNormalDisplay,142 // f RelTime to kFALSE, fDataCheck to kFALSE146 // Sets fRuns to 0, fExtractor to NULL, fTimeExtractor to NULL, fColor to kNONE, 147 // fDisplay to kNormalDisplay, fRelTime to kFALSE, fDataCheck to kFALSE 143 148 // 144 149 MJCalibration::MJCalibration(const char *name, const char *title) 145 : fRuns(0), fExtractor(NULL), fColor(MCalibrationCam::kNONE), fDisplayType(kNormalDisplay), 146 fRelTimes(kFALSE), fDataCheck(kFALSE), fArrivalTimeLevel(2) 150 : fRuns(0), fExtractor(NULL), fTimeExtractor(NULL), 151 fColor(MCalibrationCam::kNONE), fDisplayType(kNormalDisplay), 152 fRelTimes(kFALSE), fDataCheck(kFALSE) 147 153 { 148 154 fName = name ? name : "MJCalibration"; … … 761 767 // 5) MExtractPINDiode 762 768 // 6) MExtractBlindPixel 763 // 7) M ArrivalTimeCalc, MArrivalTimeCalc2, depending on fArrivalTimeLevel(only if flag fRelTimes is chosen)769 // 7) MTimeExtractor (only if flag fRelTimes is chosen) 764 770 // 8) MContinue(MFCosmics) 765 771 // 9) MFillH("MHCalibrationChargePINDiode", "MExtractedSignalPINDiode") … … 833 839 MExtractBlindPixel blindext; 834 840 MExtractSlidingWindow extract2; 835 MArrivalTimeCalc tmecalc1; 836 MArrivalTimeCalc2 tmecalc2; 841 MExtractTimeSpline timespline; 837 842 MCalibrationChargeCalc calcalc; 838 843 … … 879 884 { 880 885 plist.AddToList(&fRelTimeCam); 881 if (fArrivalTimeLevel <= 1) 882 tlist.AddToList(&tmecalc1); 883 else if (fArrivalTimeLevel == 2) 884 tlist.AddToList(&tmecalc2); 886 887 if (fTimeExtractor) 888 tlist.AddToList(fTimeExtractor); 885 889 else 886 890 { 887 *fLog << err << GetDescriptor() 888 << ": No valid Signal ArrivalTime Level has been chosen, have only: " << fArrivalTimeLevel 889 << " aborting..." << endl; 890 return kFALSE; 891 *fLog << warn << GetDescriptor() 892 << ": No extractor has been chosen, take default MTimeExtractSpine " << endl; 893 tlist.AddToList(×pline); 891 894 } 892 895 } … … 900 903 if (fRelTimes) 901 904 tlist.AddToList(&filltme); 902 905 903 906 // Create and setup the eventloop 904 907 MEvtLoop evtloop(fName); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r3875 r3913 22 22 class MPedestalCam; 23 23 class MExtractor; 24 class MTimeExtractor; 24 25 class MJCalibration : public MParContainer, public MGCamDisplays 25 26 { … … 30 31 TString fOutputPath; // Path to the output files 31 32 32 MRunIter *fRuns; // Calibration files 33 MExtractor *fExtractor; // Signal extractor 33 MRunIter *fRuns; // Calibration files 34 MExtractor *fExtractor; // Signal extractor 35 MTimeExtractor *fTimeExtractor; // Arrival Time extractor 34 36 35 37 MBadPixelsCam fBadPixels; // Bad Pixels cam, can be set from previous runs … … 46 48 Bool_t fRelTimes; // Flag if relative times have to be calibrated 47 49 Bool_t fDataCheck; // Flag if the data check is run on raw data 48 UInt_t fArrivalTimeLevel; // Level arr. time extractor (e.g. MArrivalTimeCalc2)49 50 50 51 void DisplayResult(MParList &plist); … … 69 70 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); } 70 71 void SetExtractor(MExtractor* ext) { fExtractor = ext; } 72 void SetTimeExtractor(MTimeExtractor* ext) { fTimeExtractor = ext; } 71 73 void SetQECam (const MCalibrationQECam &qe) { qe.Copy(fQECam); } 72 74 void SetColor (const MCalibrationCam::PulserColor_t color) { fColor = color; } … … 83 85 void SetDataCheck (const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); } 84 86 85 // Extractors86 void SetArrivalTimeLevel (const UInt_t i=1 ) { fArrivalTimeLevel = i; }87 88 87 Bool_t ReadCalibrationCam(); 89 88 Bool_t ProcessFile( MPedestalCam &pedcam );
Note:
See TracChangeset
for help on using the changeset viewer.