Changeset 3913 for trunk/MagicSoft
- Timestamp:
- 04/30/04 17:11:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3911 r3913 46 46 * msignal/MExtractPINDiode.[h,cc] 47 47 - now deriving from MExtractor 48 49 * msignal/Makefile 50 * msignal/SignalLinkDef.h 51 * msignal/MExtractTimeSpline.[h,cc] 52 * msignal/MExtractTimeHighestIntegral.[h,cc] 53 - replacements for MArrivalTimeCalc and MArrivalTimeCalc2 54 55 * mjobs/MJCalibration.[h,cc] 56 - Set time extractor by pointer 48 57 49 58 -
trunk/MagicSoft/Mars/macros/calibration.C
r3906 r3913 55 55 // 56 56 ///////////////////////////////////////////////////////////////////////////// 57 //static const TString inpath = "/home/rootdata/Calib/2004_04_16/"; 58 static const TString inpath = "/mnt/Data/rootdata/CrabNebula/2003_12_01/"; 59 static const Int_t pedrun = 3340; 60 static const Int_t calrun1 = 3341; 57 static const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2004_03_03/"; 58 static const Int_t pedrun = 20123; 59 static const Int_t calrun1 = 20126; 61 60 static const Int_t calrun2 = 0; 62 /* 63 static const Int_t pedrun = 22265; 64 static const Int_t calrun1 = 22300; 65 static const Int_t calrun2 = 0; 66 */ 61 67 62 void calibration(const Int_t prun=pedrun, const Int_t crun1=calrun1, const Int_t crun2=calrun2) 68 63 { 69 64 70 65 MExtractFixedWindowPeakSearch extractor; 71 extractor.SetRange(0,6,0,6);66 // extractor.SetRange(0,14,0,14); 72 67 73 /* 74 MExtractTimeSpline timeext; 75 timeext.SetRange(0,14,6,14); 76 */ 68 // MExtractSlidingWindow extractor; 69 // MExtractFixedWindow extractor; 70 71 MExtractTimeHighestIntegral timeext; 72 73 // MExtractTimeSpline timeext; 74 // timeext.SetRange(0,14,6,14); 77 75 78 76 MRunIter pruns; … … 137 135 calloop.SetRelTimeCalibration(); 138 136 calloop.SetExtractor(&extractor); 139 // calloop.SetArrivalTimeLevel(1); 140 // calloop.SetTimeExtractor(&timeext); 137 calloop.SetTimeExtractor(&timeext); 141 138 calloop.SetInput(&cruns); 142 139 calloop.SetDisplay(display); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationRelTimeCam.cc
r3904 r3913 159 159 { 160 160 161 161 162 fCam = (MCalibrationCam*)pList->FindObject("MCalibrationRelTimeCam"); 162 163 if (!fCam) … … 172 173 } 173 174 175 174 176 MArrivalTimeCam *signal = (MArrivalTimeCam*)pList->FindObject("MArrivalTimeCam"); 175 177 if (!signal) … … 193 195 } 194 196 } 195 196 197 197 198 if (fLoGainArray->GetEntries()==0) -
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 ); -
trunk/MagicSoft/Mars/msignal/Makefile
r3899 r3913 50 50 MTimeExtractor.cc \ 51 51 MExtractTimeSpline.cc \ 52 MExtractTimeHighestIntegral.cc \ 52 53 MArrivalTime.cc \ 53 54 MArrivalTimeCalc.cc \ -
trunk/MagicSoft/Mars/msignal/SignalLinkDef.h
r3899 r3913 24 24 #pragma link C++ class MTimeExtractor+; 25 25 #pragma link C++ class MExtractTimeSpline+; 26 #pragma link C++ class MExtractTimeHighestIntegral+; 26 27 #pragma link C++ class MArrivalTimeCam; 27 28 #pragma link C++ class MArrivalTimePix;
Note:
See TracChangeset
for help on using the changeset viewer.