Changeset 6318 for trunk/MagicSoft/Mars/macros/starmc.C
- Timestamp:
- 02/09/05 19:37:19 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/starmc.C
r5819 r6318 52 52 // differences in gain of outer pixels) 53 53 // 54 CalibrationFilename = new TString("/data1/magic/mc_data/root/Period021_0.73_mirror/gammas_nonoise/Gamma_zbin0_*.root"); 54 CalibrationFilename = new TString("/users/emc/moralejo/mcdata/Period021_0.73_mirror/gammas_nonoise/Gamma_zbin0_*.root"); 55 55 56 // File to be used in the calibration (must be a camera file without added noise) 56 57 57 Char_t* AnalysisFilename = "Gamma_zbin*.root"; // File to be analyzed 58 Char_t* AnalysisFilename = "Gamma_*w0.root"; // File to be analyzed 59 // Char_t* AnalysisFilename = "Gamma_*1000to1009*w0.root"; // File to be analyzed 58 60 59 61 … … 72 74 Float_t accepted_fraction = 1.; 73 75 74 Float_t CleanLev[2] = {3., 2.}; // Tail cuts for image analysis 76 Float_t CleanLev[2] = {5.75, 3.84}; // Tail cuts for image analysis 77 MImgCleanStd clean(CleanLev[0], CleanLev[1]); // Applies tail cuts to image. 78 // clean.SetMethod(MImgCleanStd::kScaled); 75 79 76 80 // Int_t BinsHigh[2] = {5, 10}; // First and last FADC bin of the range to be integrated, … … 81 85 // sigextract.SetRange(BinsHigh[0], BinsHigh[1], BinsLow[0], BinsLow[1]); 82 86 83 MExtractFixedWindowPeakSearch sigextract; 84 sigextract.SetWindows(6, 6, 4); 87 // MExtractFixedWindowPeakSearch sigextract; 88 // sigextract.SetWindows(6, 6, 4); 89 90 MExtractTimeAndChargeDigitalFilter sigextract; 91 sigextract.SetNameWeightsFile("/users/emc/moralejo/Mars/msignal/MC_weights.dat"); 92 sigextract.SetNameWeightsFile("/users/emc/moralejo/Mars/msignal/cosmics_weights.dat"); 93 sigextract.SetRange(1, 14, 3, 14); 85 94 86 95 MSrcPosCam src; … … 136 145 MCalibrateData calib; // Transforms signals from ADC counts into photons. 137 146 calib.SetCalibrationMode(MCalibrateData::kFfactor); 147 calib.SetSignalType(MCalibrateData::kPhe); 138 148 139 149 // MBlindPixelCalc blind; 140 150 // blind.SetUseInterpolation(); 141 142 MImgCleanStd clean(CleanLev[0], CleanLev[1]); // Applies tail cuts to image.143 151 144 152 MHillasCalc hcalc; // Calculates Hillas parameters not dependent on source position. … … 223 231 // 224 232 225 MProgressBar bar;226 bar.SetWindowName("Calibrating...");233 // MProgressBar bar; 234 // bar.SetWindowName("Calibrating..."); 227 235 228 236 MEvtLoop evtloop; 229 evtloop.SetProgressBar(&bar);237 // evtloop.SetProgressBar(&bar); 230 238 evtloop.SetParList(&plist); 231 239 … … 261 269 tlist.AddToListBefore(&skip, &sigextract); 262 270 263 bar.SetWindowName("Analyzing...");271 // bar.SetWindowName("Analyzing..."); 264 272 265 273 tlist.RemoveFromList(&mccalibcalc); // Removes calibration task from list.
Note:
See TracChangeset
for help on using the changeset viewer.