- Timestamp:
- 09/29/06 19:01:17 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7997 r7998 23 23 - use the same spark cuts as in ganymed_onoff.rc. Seems to be 24 24 unintentional that they were different. 25 26 * macros/train/trainenergy.C: 27 - fixed an oddity because there was artificial path 28 - added some comments 25 29 26 30 -
trunk/MagicSoft/Mars/macros/train/trainenergy.C
r7645 r7998 1 /* ======================================================================== *\ 2 ! 3 ! * 4 ! * This file is part of MARS, the MAGIC Analysis and Reconstruction 5 ! * Software. It is distributed to you in the hope that it can be a useful 6 ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes. 7 ! * It is distributed WITHOUT ANY WARRANTY. 8 ! * 9 ! * Permission to use, copy, modify and distribute this software and its 10 ! * documentation for any purpose is hereby granted without fee, 11 ! * provided that the above copyright notice appear in all copies and 12 ! * that both that copyright notice and this permission notice appear 13 ! * in supporting documentation. It is provided "as is" without express 14 ! * or implied warranty. 15 ! * 16 ! 17 ! 18 ! Author(s): Thomas Bretz, 11/2005 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2006 21 ! 22 ! 23 \* ======================================================================== *////////////////////////////////////////////////////////////////////////////// 24 25 ///////////////////////////////////////////////////////////////////////////// 26 // 27 // trainenergy.C 28 // ============= 29 // 30 // Trains a random forest for energy estimation. 31 // 32 // The additional code below shows how the MagicCuts can be used in 33 // training and testing. There is also code which allows to change the 34 // slope of the input spectrum. If a min- or max-break energy is given 35 // the new slope is only applied in this region. Further possibilities 36 // for additional cuts are shown. 37 // 38 ///////////////////////////////////////////////////////////////////////////// 1 39 void trainenergy() 2 40 { 3 MDataSet set(" /home/dorner/155vn/spec-ds0604/mcdataset.txt");41 MDataSet set("mcdataset.txt"); 4 42 set.SetNumAnalysis(1); // Necessary 5 43 … … 54 92 */ 55 93 94 // Things which could be implemented in a future version 95 // PreCut in Energy oder Size? 96 // PreCut in Max Dist 97 // PreCut in Theta^2 (0.25 oder 0.3) 98 // New spectral slope 99 // Zenith angle distribution in OnTime 100 56 101 opt.Train("rf-energy.root", set, 30000); 57 102 }
Note:
See TracChangeset
for help on using the changeset viewer.