]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TRD/macros/PID/MonitorTraining.C
Moving PWG1 to PWGPP
[u/mrichter/AliRoot.git] / PWGPP / TRD / macros / PID / MonitorTraining.C
1 //   This macro helps to decide if the training was successful and in addition
2 //   if further training of the network is necessary. The shape of the training
3 //   progress should have a first deep stall and reaching a plateau. After several
4 //   training epochs the plateau will become a sloping line. If this slope results 
5 //   again in a flat plateau the training is probably done.
6 //   The networks were saved using the date they were trained (yyyymmdd).
7 // 
8 //   Please enter the date of the network you want to monitor and the momentum bin..
9 //   Bin  0 =  0.6 GeV/c
10 //   Bin  1 =  0.8 GeV/c
11 //   Bin  2 =  1.0 GeV/c
12 //   Bin  3 =  1.5 GeV/c
13 //   Bin  4 =  2.0 GeV/c
14 //   Bin  5 =  3.0 GeV/c
15 //   Bin  6 =  4.0 GeV/c
16 //   Bin  7 =  5.0 GeV/c
17 //   Bin  8 =  6.0 GeV/c
18 //   Bin  9 =  8.0 GeV/c
19 //   Bin 10 = 10.0 GeV/c
20
21 #ifndef __CINT__
22 #include "TSystem.h"
23 #include "qaRec/AliTRDpidRefMaker.h"
24 #endif
25
26 Int_t MonitorTraining(Int_t bin, Int_t Date){
27
28   gSystem -> Load("libANALYSIS.so");
29   gSystem -> Load("libTRDqaRec.so");
30   
31   AliTRDpidRefMaker *ref = new AliTRDpidRefMaker();
32   ref->SetDebugLevel(2);
33
34   ref->SetDate(Date);
35   ref->MakeTrainingLists();
36   ref->MonitorTraining(bin);
37   
38   return 1;
39
40 }