Changeset 7188 for trunk/MagicSoft/Mars/macros/starmc.C
- Timestamp:
- 07/13/05 19:06:26 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/starmc.C
r7005 r7188 52 52 // differences in gain of outer pixels) 53 53 // 54 CalibrationFilename = new TString(" /data1/magic/mc_data/root/Period025/gammas_nonoise/Gamma_zbin0_*.root");54 CalibrationFilename = new TString("nonoise/Gamma_zbin0_0_7_1000to1009_w0.root"); 55 55 // File to be used in the calibration (must be a camera file without added noise) 56 56 57 58 Char_t* AnalysisFilename = "Gamma_zbin1_0_*.root"; // File to be analyzed 59 57 Char_t* AnalysisFilename = "Gamma_zbin0_0_*.root"; // File to be analyzed 60 58 61 59 … … 76 74 // USER CHANGE: tail cuts for image analysis 77 75 78 Float_t CleanLev[2] = {7., 5.}; 79 MImgCleanStd clean(CleanLev[0], CleanLev[1]); // Applies tail cuts to image. 80 clean.SetMethod(MImgCleanStd::kAbsolute); // In absolute units (phot or phe- as chosen below) 81 76 Float_t CleanLev[2] = {10., 5.}; // Tail cuts for the analysis loop 77 MImgCleanStd clean2(CleanLev[0], CleanLev[1]); // Applies tail cuts to image. 78 clean2.SetMethod(MImgCleanStd::kAbsolute); 82 79 83 80 // USER CHANGE: signal extraction 84 //85 // MExtractFixedWindowPeakSearch sigextract;86 // sigextract.SetWindows(6, 6, 4);87 81 88 82 // MExtractTimeAndChargeDigitalFilter sigextract; … … 91 85 92 86 MExtractTimeAndChargeSpline sigextract; 87 sigextract.SetChargeType(MExtractTimeAndChargeSpline::kIntegral); 93 88 sigextract.SetRiseTimeHiGain(0.5); 94 89 sigextract.SetFallTimeHiGain(0.5); … … 96 91 // USER CHANGE: high to low gain ratio. DEPENDS on EXTRACTOR!! 97 92 // One should calculate somewhere else what this factor is for each extractor! 98 Float_t hi2low = 12.; // tentative value for spline with risetime 0.5, fall time 0.5 93 94 // Float_t hi2low = 10.83; 95 // value for digital filter, HG window 4, LG window 6 96 97 Float_t hi2low = 11.28; 98 // value for spline with risetime 0.5, fall time 0.5, low gain stretch 1.5 99 99 100 100 … … 108 108 109 109 110 MImgCleanStd clean(0.,0.); 111 // All pixels containing any photon will be accepted. This is what we want 112 // for the calibration loop (since no noise is added) 113 clean.SetMethod(MImgCleanStd::kAbsolute); 114 // In absolute units (phot or phe- as chosen below) 115 110 116 MSrcPosCam src; 111 117 // 112 // ONLY FOR WOBBLE MODE!! 113 // src.SetX(120.); // units: mm 118 // ONLY FOR WOBBLE MODE!! : set the rigt source position on camera! 119 // src.SetX(120.); // units: mm. Value for MC w+ files 120 // src.SetX(-120.); // units: mm. Value for MC w- files 114 121 115 122 src.SetReadyToSave(); … … 244 251 // 245 252 253 246 254 MProgressBar bar; 247 255 bar.SetWindowName("Calibrating..."); … … 273 281 tlist.RemoveFromList(&read); 274 282 283 tlist.AddToListBefore(&clean2, &clean); 284 tlist.RemoveFromList(&clean); 285 275 286 // 276 287 // Analyzed only the desired fraction of events, skip the rest:
Note:
See TracChangeset
for help on using the changeset viewer.