New directory for the VMC tests (Ivana, Eva)
[u/mrichter/AliRoot.git] / TRD / qaRec / macros / AliTRDperformanceTrain.h
1 #ifndef ALITRDPERFORMANCETRAIN_H
2 #define ALITRDPERFORMANCETRAIN_H
3
4 #define BITBIT(n)      (1 << (n))
5 #define SETBITT(n,i) ((n) |= BITBIT(i))
6 #define TSTBIT(n,i) ((Bool_t)(((n) & BITBIT(i)) != 0))
7 #define CLRBITT(n,i) ((n) &= ~BITBIT(i))
8
9 #define NTRDQATASKS 6
10 #define NTRDCALIBTASKS 6
11 /* #define NTRDCALIBTASKS 7 */
12 const Int_t NTRDTASKS = NTRDQATASKS+NTRDCALIBTASKS;
13
14 enum AliTRDrecoTasks{
15    kCheckESD      = 0
16   ,kInfoGen       = 1
17   ,kCheckDET      = 2
18   ,kEfficiency    = 3
19   ,kResolution    = 4
20   ,kCheckPID      = 5
21   ,kCalibration   = 6
22   ,kEfficiencyMC  = 7
23   ,kAlignment     = 8
24   ,kPIDRefMaker = 9
25 /*   ,kPIDRefMakerLQ = 9 */
26 /*   ,kPIDRefMakerNN =10 */
27 /*   ,kClErrParam    =11 */
28 /*   ,kMultiplicity  =12 */
29   ,kClErrParam    =10
30   ,kMultiplicity  =11
31 };
32
33 const Char_t* fgkTRDtaskClassName[NTRDTASKS] = {
34   "AliTRDcheckESD"
35   ,"AliTRDinfoGen"
36   ,"AliTRDcheckDET"
37   ,"AliTRDefficiency"
38   ,"AliTRDresolution"
39   ,"AliTRDcheckPID"
40   ,"AliTRDcalibration"
41   ,"AliTRDefficiencyMC"
42   ,"AliTRDalignmentTask"
43   ,"AliTRDpidRefMaker"
44 /*   ,"AliTRDpidRefMakerLQ" */
45 /*   ,"AliTRDpidRefMakerNN" */
46   ,"AliTRDclusterResolution"
47   ,"AliTRDmultiplicity"
48 };
49
50 const Char_t *fgkTRDtaskOpt[NTRDTASKS+1] = {
51   ""
52   ,"GEN"
53   ,"DET"
54   ,"EFF"
55   ,"RES"
56   ,"PID"
57   ,"CAL"
58   ,"EFFC"
59   ,"ALGN"
60   ,"PIDR"
61 /*   ,"LQR" */
62 /*   ,"NNR" */
63   ,"CLRES"
64   ,"MULT"
65   ,"ALL"
66 };
67
68 #include <cstring>
69
70 //____________________________________________
71 Bool_t HasReadMCData(Char_t *opt){
72   return !(Bool_t)strstr(opt, "NOMC");
73 }
74
75 //____________________________________________
76 Bool_t HasReadFriendData(Char_t *opt){
77   return !(Bool_t)strstr(opt, "NOFR");
78 }
79
80 #endif
81