Changeset 3797
- Timestamp:
- 04/22/04 16:21:43 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3740 r3797 48 48 // 49 49 // If the flag SetFullDisplay() is set, all MHCameras will be displayed. 50 // if the flag SetDataCheck () is set, only the most important ones are displayed50 // if the flag SetDataCheckDisplay() is set, only the most important ones are displayed 51 51 // Otherwise, (default: SetNormalDisplay()), a good selection of plots is given 52 52 // 53 // If the flag SetDataCheck() is set, the calibration is used as in the data check at 54 // La Palma, which mean especially running it on raw data files. 55 // 53 56 // See also: MHCalibrationChargePix, MHCalibrationChargeCam, MHGausEvents 54 57 // MHCalibrationChargeBlindPix, MHCalibrationChargePINDiode … … 114 117 115 118 #include "MReadMarsFile.h" 119 #include "MRawFileRead.h" 116 120 #include "MGeomApply.h" 117 121 #include "MBadPixelsMerge.h" … … 146 150 MJCalibration::MJCalibration(const char *name, const char *title) 147 151 : fRuns(0), fColor(MCalibrationCam::kNONE), fDisplayType(kNormalDisplay), 148 fRelTimes(kFALSE), f ExtractorLevel(2), fArrivalTimeLevel(2)152 fRelTimes(kFALSE), fDataCheck(kFALSE), fExtractorLevel(2), fArrivalTimeLevel(2) 149 153 { 150 154 fName = name ? name : "MJCalibration"; … … 241 245 // 242 246 // If the flag SetFullDisplay() is set, all MHCameras will be displayed. 243 // if the flag SetDataCheck () is set, only the most important ones are displayed247 // if the flag SetDataCheckDisplay() is set, only the most important ones are displayed 244 248 // and otherwise, (default: SetNormalDisplay()), a good selection of plots is given 245 249 // … … 422 426 gStyle->SetOptFit(); 423 427 424 if (fDisplayType == kDataCheck )428 if (fDisplayType == kDataCheckDisplay) 425 429 { 426 430 TCanvas &c1 = fDisplay->AddTab("Fit.Charge"); … … 935 939 *fLog << endl; 936 940 941 // Setup Tasklist 942 MParList plist; 943 MTaskList tlist; 944 plist.AddToList(&tlist); 945 937 946 MReadMarsFile read("Events"); 938 read.DisableAutoScheme(); 939 static_cast<MRead&>(read).AddFiles(*fRuns); 940 947 MRawFileRead rawread(""); 948 949 if (fDataCheck) 950 { 951 // rawread.AddFiles(*fRuns); 952 tlist.AddToList(&rawread); 953 } 954 else 955 { 956 read.DisableAutoScheme(); 957 static_cast<MRead&>(read).AddFiles(*fRuns); 958 tlist.AddToList(&read); 959 } 960 961 941 962 MCalibrationChargePINDiode pindiode; 942 963 MCalibrationChargeBlindPix blindpix; 943 964 944 // Setup Tasklist945 MParList plist;946 965 plist.AddToList(&pedcam); 947 966 plist.AddToList(&fBadPixels); … … 951 970 plist.AddToList(&blindpix); 952 971 953 MTaskList tlist;954 plist.AddToList(&tlist);955 956 972 MGeomApply apply; 957 973 // MBadPixelsMerge merge(&fBadPixels); … … 988 1004 MContinue cont(&cosmics); 989 1005 990 tlist.AddToList(&read);991 1006 // tlist.AddToList(&merge); 992 1007 tlist.AddToList(&apply); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r3737 r3797 36 36 MCalibrationCam::PulserColor_t fColor; // Colour of the pulsed LEDs 37 37 38 enum Display_t { kFullDisplay, kDataCheck , kNormalDisplay }; // Possible Display types38 enum Display_t { kFullDisplay, kDataCheckDisplay, kNormalDisplay }; // Possible Display types 39 39 40 40 Display_t fDisplayType; // Chosen Display type 41 41 42 42 Bool_t fRelTimes; // Flag if relative times have to be calibrated 43 Bool_t fDataCheck; // Flag if the data check is run on raw data 43 44 UInt_t fExtractorLevel; // Level signal extractor (e.g. MExtractSignal2) 44 45 UInt_t fArrivalTimeLevel; // Level arr. time extractor (e.g. MArrivalTimeCalc2) … … 71 72 72 73 // Displays 73 void SetFullDisplay() { fDisplayType = kFullDisplay;}74 void SetDataCheck () { fDisplayType = kDataCheck;}75 void SetNormalDisplay() { fDisplayType = kNormalDisplay;}74 void SetFullDisplay() { fDisplayType = kFullDisplay; } 75 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; } 76 void SetNormalDisplay() { fDisplayType = kNormalDisplay; } 76 77 77 78 // Rel. Time 78 79 void SetRelTimeCalibration(const Bool_t b=kTRUE) { fRelTimes = b; } 80 81 // Data Check 82 void SetDataCheck (const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); } 79 83 80 84 // Extractors
Note:
See TracChangeset
for help on using the changeset viewer.