Changeset 3534 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 03/17/04 14:29:31 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/starmc.C
r3441 r3534 52 52 // differences in gain of outer pixels) 53 53 // 54 CalibrationFilename = new TString("nonoise/Gamma_zbin0_90_ 7_507*.root");54 CalibrationFilename = new TString("nonoise/Gamma_zbin0_90_*.root"); 55 55 // File to be used in the calibration (must be a camera file without added noise) 56 56 57 Char_t* AnalysisFilename = "Gamma_zbin 0*.root"; // File to be analyzed57 Char_t* AnalysisFilename = "Gamma_zbin*.root"; // File to be analyzed 58 58 59 59 // ------------- user change ----------------- … … 63 63 64 64 OutFilename1 = new TString("star_train.root"); // Output file name 1 (test) 65 // OutFilename2 = new TString("star_test.root"); // Output file name 2 (train) 66 65 OutFilename2 = new TString("star_test.root"); // Output file name 2 (train) 66 // 67 // Fraction of events (taken at random) which one wants to process from the 68 // file to be analyzed (useful to make smaller files if starting sample is 69 // too large). 70 // 71 Float_t accepted_fraction = 1.; 67 72 68 73 Float_t CleanLev[2] = {4., 3.}; // Tail cuts for image analysis … … 206 211 read2.AddFile(AnalysisFilename); 207 212 read2.DisableAutoScheme(); 208 tlist.AddToListBefore(&read2, &read , "All");213 tlist.AddToListBefore(&read2, &read); 209 214 tlist.RemoveFromList(&read); 215 216 // 217 // Analyzed only the desired fraction of events, skip the rest: 218 // 219 MFEventSelector eventselector; 220 Float_t rejected_fraction = 1. - accepted_fraction; 221 eventselector.SetSelectionRatio(rejected_fraction); 222 MContinue skip(&eventselector); 223 tlist.AddToListBefore(&skip, &sigextract); 210 224 211 225 bar.SetWindowName("Analyzing...");
Note:
See TracChangeset
for help on using the changeset viewer.