Changeset 5607
- Timestamp:
- 12/16/04 09:58:34 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/getExtractor.C
r5580 r5607 34 34 // as specified in the TDAS-Extractor with the following meaning: 35 35 // 36 // Nr. Extractor Parameters << endl;37 // 38 // MExtractFixedWindow: << endl;39 // with the following parameters, if 'maxbin' defines the mean position << endl;40 // of the High-Gain FADC slice carrying the pulse maximum: << endl;41 // 1: SetRange('maxbin'-1,'maxbin'+2,'maxbin'+0.5,'maxbin'+3.5) << endl;42 // 2: SetRange('maxbin'-1,'maxbin'+2,'maxbin'-0.5,'maxbin'+4.5) << endl;43 // 3: SetRange('maxbin'-2,'maxbin'+3,'maxbin'-0.5,'maxbin'+4.5) << endl;44 // 4: SetRange('maxbin'-3,'maxbin'+4,'maxbin'-1.5,'maxbin'+5.5) << endl;45 // 5: SetRange('maxbin'-5,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5) << endl;46 // MExtractFixedWindowSpline: << endl;47 // 6: SetRange('maxbin'-1,'maxbin'+2,'maxbin'+0.5,'maxbin'+3.5) << endl;48 // 7: SetRange('maxbin'-1,'maxbin'+2,'maxbin'-0.5,'maxbin'+4.5) << endl;49 // 8: SetRange('maxbin'-2,'maxbin'+3,'maxbin'-0.5,'maxbin'+4.5) << endl;50 // 9: SetRange('maxbin'-3,'maxbin'+4,'maxbin'-1.5,'maxbin'+5.5) << endl;51 // 10: SetRange('maxbin'-5,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5) << endl;52 // MExtractFixedWindowPeakSearch: << endl;53 // SetRange(0,18,2,14) and the following parameters: << endl;54 // 11: SetWindows(2,2,2) << endl;55 // 12: SetWindows(4,4,2) << endl;56 // 13: SetWindows(4,6,4) << endl;57 // 14: SetWindows(6,6,4) << endl;58 // 15: SetWindows(8,8,4) << endl;59 // 16: SetWindows(14,10,4) << endl;60 // MExtractTimeAndChargeSlidingWindow: << endl;61 // SetRange(0,18,2,14) and the following parameters: << endl;62 // 17: SetWindowSize(2,2) << endl;63 // 18: SetWindowSize(4,4) << endl;64 // 19: SetWindowSize(4,6) << endl;65 // 20: SetWindowSize(6,6) << endl;66 // 21: SetWindowSize(8,8) << endl;67 // 22: SetWindowSize(14,10) << endl;68 // MExtractTimeAndChargeSpline: << endl;69 // 23: SetChargeType(MExtractTimeAndChargeSpline::kAmplitude << endl;70 // SetRange(0,1 0,4,11) << endl;71 // 24: SetChargeType(MExtractTimeAndChargeSpline::kIntegral) and: << endl;72 // SetRange(0,18,2,14) and the following parameters: << endl;73 // SetRiseTime(0.5); SetFallTime(0.5) << endl;74 // 25: SetRiseTime(0.5); SetFallTime(1.5) << endl;75 // 26: SetRiseTime(0.5); SetFallTime(2.5) << endl;76 // 27: SetRiseTime(1.5); SetFallTime(4.5) << endl;77 // MExtractTimeAndChargeDigitalFilter << endl;78 // SetRange(0,18,2,14) and the following parameters: << endl;79 // 28: SetNameWeightsFile('msignal/cosmics_weights.dat') << endl;80 // 29: SetNameWeightsFile('msignal/cosmics_weights4.dat') << endl;81 // 30: SetNameWeightsFile('msignal/cosmics_weights_logain.dat') << endl;82 // 31: SetNameWeightsFile('msignal/cosmics_weights4_logain.dat') << endl;83 // 32: SetNameWeightsFile('msignal/calibration_weights_UV.dat') << endl;84 // 33: SetNameWeightsFile('msignal/calibration_weights_UV_logain.dat') << endl;85 // 34: Real Fit: (not yet implemented) << endl;36 // Nr. Extractor Parameters 37 // 38 // MExtractFixedWindow: 39 // with the following parameters, if 'maxbin' defines the mean position 40 // of the High-Gain FADC slice carrying the pulse maximum: 41 // 1: SetRange('maxbin'-1,'maxbin'+2,'maxbin'+0.5,'maxbin'+3.5) 42 // 2: SetRange('maxbin'-1,'maxbin'+2,'maxbin'-0.5,'maxbin'+4.5) 43 // 3: SetRange('maxbin'-2,'maxbin'+3,'maxbin'-0.5,'maxbin'+4.5) 44 // 4: SetRange('maxbin'-3,'maxbin'+4,'maxbin'-1.5,'maxbin'+5.5) 45 // 5: SetRange('maxbin'-5,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5) 46 // MExtractFixedWindowSpline: 47 // 6: SetRange('maxbin'-1,'maxbin'+2,'maxbin'+0.5,'maxbin'+3.5) 48 // 7: SetRange('maxbin'-1,'maxbin'+2,'maxbin'-0.5,'maxbin'+4.5) 49 // 8: SetRange('maxbin'-2,'maxbin'+3,'maxbin'-0.5,'maxbin'+4.5) 50 // 9: SetRange('maxbin'-3,'maxbin'+4,'maxbin'-1.5,'maxbin'+5.5) 51 // 10: SetRange('maxbin'-5,'maxbin'+8,'maxbin'-1.5,'maxbin'+7.5) 52 // MExtractFixedWindowPeakSearch: 53 // SetRange(0,18,2,14) and the following parameters: 54 // 11: SetWindows(2,2,2) 55 // 12: SetWindows(4,4,2) 56 // 13: SetWindows(4,6,4) 57 // 14: SetWindows(6,6,4) 58 // 15: SetWindows(8,8,4) 59 // 16: SetWindows(14,10,4) 60 // MExtractTimeAndChargeSlidingWindow: 61 // SetRange(0,18,2,14) and the following parameters: 62 // 17: SetWindowSize(2,2) 63 // 18: SetWindowSize(4,4) 64 // 19: SetWindowSize(4,6) 65 // 20: SetWindowSize(6,6) 66 // 21: SetWindowSize(8,8) 67 // 22: SetWindowSize(14,10) 68 // MExtractTimeAndChargeSpline: 69 // 23: SetChargeType(MExtractTimeAndChargeSpline::kAmplitude 70 // SetRange(0,13,2,13) 71 // 24: SetChargeType(MExtractTimeAndChargeSpline::kIntegral) and: 72 // SetRange(0,18,2,14) and the following parameters: 73 // SetRiseTime(0.5); SetFallTime(0.5) 74 // 25: SetRiseTime(0.5); SetFallTime(1.5) 75 // 26: SetRiseTime(0.5); SetFallTime(2.5) 76 // 27: SetRiseTime(1.5); SetFallTime(4.5) 77 // MExtractTimeAndChargeDigitalFilter 78 // SetRange(0,18,2,14) and the following parameters: 79 // 28: SetNameWeightsFile('msignal/cosmics_weights.dat') 80 // 29: SetNameWeightsFile('msignal/cosmics_weights4.dat') 81 // 30: SetNameWeightsFile('msignal/cosmics_weights_logain.dat') 82 // 31: SetNameWeightsFile('msignal/cosmics_weights4_logain.dat') 83 // 32: SetNameWeightsFile('msignal/calibration_weights_UV.dat') 84 // 33: SetNameWeightsFile('msignal/calibration_weights_UV_logain.dat') 85 // 34: Real Fit: (not yet implemented) 86 86 // 87 87 // The extractor will also carry a meaningful name, storing all information about its … … 231 231 case 11: 232 232 ((MExtractFixedWindowPeakSearch*)extractor)->SetWindows(2,2,2); 233 ((MExtractFixedWindowPeakSearch*)extractor)->SetOffsetFromWindow(0); 233 234 break; 234 235 case 12: … … 237 238 case 13: 238 239 ((MExtractFixedWindowPeakSearch*)extractor)->SetWindows(4,6,4); 240 ((MExtractFixedWindowPeakSearch*)extractor)->SetOffsetFromWindow(0); 239 241 break; 240 242 case 14: … … 246 248 case 16: 247 249 ((MExtractFixedWindowPeakSearch*)extractor)->SetWindows(14,10,4); 250 ((MExtractFixedWindowPeakSearch*)extractor)->SetOffsetFromWindow(2); 248 251 break; 249 252 // MExtractTimeAndChargeSlidingWindow … … 269 272 case 23: 270 273 ((MExtractTimeAndChargeSpline*)extractor)->SetChargeType(MExtractTimeAndChargeSpline::kAmplitude); 271 extractor->SetRange(0,1 0,4,11);274 extractor->SetRange(0,13,2,13); 272 275 extractor->SetName(Form("%s_Amplitude",extractor->GetName())); 273 276 break;
Note:
See TracChangeset
for help on using the changeset viewer.