| 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, 2005-2007 | 
|---|
| 21 | ! | 
|---|
| 22 | ! | 
|---|
| 23 | \* ======================================================================== */ | 
|---|
| 24 |  | 
|---|
| 25 | ///////////////////////////////////////////////////////////////////////////// | 
|---|
| 26 | // | 
|---|
| 27 | // MJTrainRanForest | 
|---|
| 28 | // | 
|---|
| 29 | // Base class for classes training a random forest | 
|---|
| 30 | // | 
|---|
| 31 | // The order when reading a file is: | 
|---|
| 32 | //   1) Execution of PreTasks  (set by user) | 
|---|
| 33 | //   2) Execution of PreCuts   (set by user) | 
|---|
| 34 | //   3) Selector               (calculated from number of requested events) | 
|---|
| 35 | //   4) Splitter               (if sample is split automatically in test/train) | 
|---|
| 36 | //   5) PostTasks              (set by user) | 
|---|
| 37 | // | 
|---|
| 38 | // The split into Pre- and PostTasks is done for speed reason. So, if | 
|---|
| 39 | // you calculate a vlue which is not needed for your PreCuts, you can | 
|---|
| 40 | // calculate it afterwards, which will speed up execution. | 
|---|
| 41 | // | 
|---|
| 42 | ///////////////////////////////////////////////////////////////////////////// | 
|---|
| 43 | #include "MJTrainRanForest.h" | 
|---|
| 44 |  | 
|---|
| 45 | ClassImp(MJTrainRanForest); | 
|---|
| 46 |  | 
|---|
| 47 | using namespace std; | 
|---|