Changeset 6777 for trunk/MagicSoft
- Timestamp:
- 03/07/05 18:45:14 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.rc
r6776 r6777 203 203 # Use this if you want to change the higain-vs. logain intercalibration 204 204 # ------------------------------------------------------------------------- 205 MJCalibration.HiLoCalibFile: mjobs/hilocalib_df6.root 205 #MJCalibration.HiLoCalibFile: mjobs/hilocalib_df6.root 206 #MJCalibration.HiLoCalibration: yes 206 207 207 208 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhcalib/MHPedestalCam.h
r6329 r6777 70 70 71 71 void SetNamePedestalCamOut(const char *name) { fNamePedestalCamOut = name; } 72 void SetPedestalsOut ( MPedestalCam *cam) { fPedestalsOut = cam; } 72 73 void SetRenorm (const Bool_t b=kTRUE ) { fRenorm = b; } 73 74 -
trunk/MagicSoft/Mars/mjobs/MJCalib.cc
r6725 r6777 50 50 // 51 51 MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fStorage(0), 52 fPixelCheck(kFALSE), fPulsePosCheck(kFALSE), 52 fIsPixelCheck(kFALSE), fIsPulsePosCheck(kFALSE), 53 fIsHiLoCalibration(kFALSE), 53 54 fRuns(NULL) 54 55 { … … 59 60 { 60 61 if (HasEnv("PixelCheck")) 61 SetPixelCheck(GetEnv("PixelCheck", f PixelCheck));62 SetPixelCheck(GetEnv("PixelCheck", fIsPixelCheck)); 62 63 63 64 if (HasEnv("PulsePosCheck")) 64 SetPulsePosCheck(GetEnv("PulsePosCheck", f PulsePosCheck));65 SetPulsePosCheck(GetEnv("PulsePosCheck", fIsPulsePosCheck)); 65 66 66 67 if (HasEnv("CheckedPixId")) 67 68 SetCheckedPixId(GetEnv("CheckedPixId",fCheckedPixId)); 69 70 if (HasEnv("HiLoCalibration")) 71 SetHiLoCalibration(GetEnv("HiLoCalibration", fIsHiLoCalibration)); 68 72 69 73 if (HasEnv("StorageType")) -
trunk/MagicSoft/Mars/mjobs/MJCalib.h
r6725 r6777 34 34 protected: 35 35 36 Bool_t f PixelCheck;// Check a test pixel?36 Bool_t fIsPixelCheck; // Check a test pixel? 37 37 Int_t fCheckedPixId; // ID of checked pixel 38 38 39 Bool_t fPulsePosCheck; // Check pulse position? 39 Bool_t fIsPulsePosCheck; // Check pulse position? 40 Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains 40 41 41 42 MRunIter *fRuns; // Data files, only used for test applications, default is sequence files! … … 63 64 void SetDataType(DataType_t type) { fDataFlag=type; } 64 65 65 void SetPixelCheck ( const Bool_t b=kTRUE ) { fPixelCheck = b; }66 void SetPulsePosCheck( const Bool_t b=kTRUE ) { fPulsePosCheck = b; }67 66 void SetCheckedPixId ( const Int_t i=fgCheckedPixId ) { fCheckedPixId = i; } 68 67 69 68 void SetNoStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kNoStorage) : CLRBIT(fStorage,kNoStorage); } 70 69 void SetHistsStorage ( const Bool_t b=kTRUE ) { b ? SETBIT(fStorage,kHistsStorage) : CLRBIT(fStorage,kHistsStorage); } 70 71 void SetHiLoCalibration( const Bool_t b=kTRUE ) { fIsHiLoCalibration = b; } 72 void SetPixelCheck ( const Bool_t b=kTRUE ) { fIsPixelCheck = b; } 73 void SetPulsePosCheck ( const Bool_t b=kTRUE ) { fIsPulsePosCheck = b; } 71 74 72 75 ClassDef(MJCalib, 0) // Base class for calibration jobs -
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r6563 r6777 530 530 tlist.PrintStatistics(); 531 531 532 if (f PixelCheck)532 if (fIsPixelCheck) 533 533 { 534 534 MHCalibrationTestCam *hcam = (MHCalibrationTestCam*)plist.FindObject("MHCalibrationTestCam"); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6752 r6777 127 127 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 128 128 : fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), 129 fIs HiLoCalibration(kFALSE), fIsModifiedExtractWin(kTRUE)129 fIsModifiedExtractWin(kTRUE) 130 130 { 131 131 fName = name ? name : "MJCalibrateSignal"; 132 132 fTitle = title ? title : "Tool to calibrate data"; 133 133 134 fPulsePosCheck = kTRUE;134 SetPulsePosCheck(); 135 135 //fCruns = NULL; 136 136 } … … 255 255 SetInterlaced(GetEnv("Interlaced", fIsInterlaced)); 256 256 SetRelTimesUpdate(GetEnv("RelTimesUpdate", fIsRelTimesUpdate)); 257 SetHiLoCalibration(GetEnv("HiLoCalibration", fIsHiLoCalibration));258 257 SetModifiedExtractWin(GetEnv("ModifiedExtractWin", fIsModifiedExtractWin)); 259 258 … … 745 744 if (fIsHiLoCalibration) 746 745 tlist2.AddToList(&filhil); 747 if (f PulsePosCheck)746 if (fIsPulsePosCheck) 748 747 tlist2.AddToList(&filpul); 749 748 tlist2.AddToList(&fill2); … … 815 814 DisplayResult(plist); 816 815 817 if (f PixelCheck)816 if (fIsPixelCheck) 818 817 { 819 if (f PulsePosCheck)818 if (fIsPulsePosCheck) 820 819 { 821 820 MHCalibrationPulseTimeCam *pcam = (MHCalibrationPulseTimeCam*)plist.FindObject("MHCalibrationPulseTimeCam"); … … 885 884 disp21.SetYTitle("T [FADC sl.]"); 886 885 887 if (f PulsePosCheck)886 if (fIsPulsePosCheck) 888 887 { 889 888 TCanvas &c0 = fDisplay->AddTab("PulseTime"); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r6752 r6777 25 25 Bool_t fIsInterlaced; // Distinguish interlaced from other calibration 26 26 Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced 27 Bool_t fIsHiLoCalibration; // Choose to calibrate the high-gain vs. low-gains28 27 Bool_t fIsModifiedExtractWin; // Choose to use the modified extraction window from pulse position 29 28 … … 48 47 void SetInterlaced ( const Bool_t b=kTRUE ) { fIsInterlaced = b; } 49 48 void SetRelTimesUpdate ( const Bool_t b=kTRUE ) { fIsRelTimesUpdate = b; } 50 void SetHiLoCalibration( const Bool_t b=kTRUE ) { fIsHiLoCalibration = b; }51 49 void SetModifiedExtractWin( const Bool_t b=kTRUE ) { fIsModifiedExtractWin = b; } 52 50 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6771 r6777 200 200 SetUsePINDiode(); 201 201 202 SetHiLoCalibration(); 202 203 SetRelTimeCalibration(); 203 204 SetDebug(kFALSE); … … 1474 1475 { 1475 1476 1477 if (!fIsHiLoCalibration) 1478 return kTRUE; 1479 1476 1480 TFile file(fHiLoCalibFile,"READ"); 1477 1481 … … 1971 1975 tlist.PrintStatistics(); 1972 1976 1973 if (f PixelCheck)1977 if (fIsPixelCheck) 1974 1978 { 1975 1979 MHCalibrationChargeCam *hcam = (MHCalibrationChargeCam*)plist.FindObject("MHCalibrationChargeCam"); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r6768 r6777 282 282 // 283 283 MGeomCam &geomcam = *(MGeomCam*)plist.FindObject("MGeomCam"); 284 MCalibrationPedCam &calpedcam = *(MCalibrationPedCam*)plist.FindObject("MCalibrationPedCam");284 // MCalibrationPedCam &calpedcam = *(MCalibrationPedCam*)plist.FindObject("MCalibrationPedCam"); 285 285 286 286 // … … 1036 1036 fcalib.SetInverted(); 1037 1037 1038 if (f PulsePosCheck)1038 if (fIsPulsePosCheck) 1039 1039 { 1040 1040 fillpul.SetFilter(&fcalib); … … 1212 1212 fExtractor->SetFilter(0); 1213 1213 1214 if (f PixelCheck)1214 if (fIsPixelCheck) 1215 1215 { 1216 1216 MHPedestalCam *hcam = (MHPedestalCam*)plist.FindObject("MHPedestalCam"); … … 1228 1228 return kFALSE; 1229 1229 1230 if (f PulsePosCheck)1230 if (fIsPulsePosCheck) 1231 1231 { 1232 1232 1233 1233 MHCalibrationPulseTimeCam *hcam = (MHCalibrationPulseTimeCam*)plist.FindObject("MHCalibrationPulseTimeCam"); 1234 if (f PixelCheck)1234 if (fIsPixelCheck) 1235 1235 { 1236 1236 hcam->DrawClone();
Note:
See TracChangeset
for help on using the changeset viewer.