]>
Commit | Line | Data |
---|---|---|
1ee39b3a | 1 | // It is recommended to train not all momenta at on eturn. The time consumption |
2 | // for a training loop is very large! | |
3 | ||
4 | // Please be careful if you want to train the networks. The networks will be saved | |
5 | // in a file ("./Networks_%d", date(yyyymmdd)). You should create seperate directories | |
6 | // where the training for the several momentum bins should be done. Otherwise the | |
7 | // networks will be deleted by the following momentum bin training. | |
8 | ||
9 | #ifndef __CINT__ | |
10 | #include "TSystem.h" | |
11 | #include "$ALICE_ROOT/TRD/qaRec/AliTRDpidRefMaker.h" | |
12 | #endif | |
13 | ||
14 | Int_t runTraining(){ | |
15 | ||
16 | gSystem -> Load("libANALYSIS.so"); | |
17 | gSystem -> Load("libTRDqaRec.so"); | |
18 | ||
19 | AliTRDpidRefMaker *ref = new AliTRDpidRefMaker(); | |
20 | ref->SetDebugLevel(2); | |
21 | ||
22 | // Sets the momentum bin that should be trained: | |
23 | // Bin 0 = 0.6 GeV/c | |
24 | // Bin 1 = 0.8 GeV/c | |
25 | // Bin 2 = 1.0 GeV/c | |
26 | // Bin 3 = 1.5 GeV/c | |
27 | // Bin 4 = 2.0 GeV/c | |
28 | // Bin 5 = 3.0 GeV/c | |
29 | // Bin 6 = 4.0 GeV/c | |
30 | // Bin 7 = 5.0 GeV/c | |
31 | // Bin 8 = 6.0 GeV/c | |
32 | // Bin 9 = 8.0 GeV/c | |
33 | // Bin 10 = 10.0 GeV/c | |
34 | // Bin 11 = All | |
35 | ref->SetTrainMomBin(1); | |
36 | ||
37 | // Sets if the network should be trained | |
38 | ref->SetDoTraining(1); | |
39 | ||
40 | // Sets if the training should be continued or an untrained network will be taken. | |
41 | // If the training should be continued with a pretrained network, | |
42 | // please uncomment this line | |
43 | // ref->SetContinueTraining(1); | |
44 | ||
45 | // Sets the path for old networks. If the training should be continued | |
46 | // with a pretrained network, please uncomment this line and set the date (yyyymmdd). | |
47 | // ref->SetTrainPath(20081022); | |
48 | ||
49 | // Do the training | |
50 | ref->PostProcess(); | |
51 | ||
52 | return 1; | |
53 | ||
54 | } |