Changeset 3534
- Timestamp:
- 03/17/04 14:29:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3530 r3534 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/03/17: Abelardo Moralejo 22 23 * manalysis/MSourcePosfromStarPos.cc 24 - added cast fabs((Double_t)ival), line 703. Otherwise it does not 25 compile. 26 27 * macros/starmc.C 28 - added parameter accepted_fraction to select fraction of events 29 to be processed (useful to make smaller outputs). 30 20 31 21 32 2004/03/17: Wolfgang Wittek -
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..."); -
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc
r3532 r3534 701 701 702 702 // run number must be greater than 10000 703 if (fabs( ival) < 10000)703 if (fabs((Double_t)ival) < 10000) 704 704 { 705 705 *fLog << err << "===========> Error when reading file with theta and phi <========="
Note:
See TracChangeset
for help on using the changeset viewer.