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