03186d0081aa75ba77ee85df9c5a8c683f9e52ae
[u/mrichter/AliRoot.git] / PWG1 / TRD / 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 7
10 #define NTRDCALIBTASKS 6
11 const Int_t NTRDTASKS = NTRDQATASKS+NTRDCALIBTASKS;
12
13 enum ETRDinfoGenOutSlots {
14    kEventInfo     = 1
15   ,kTracksBarrel  = 2
16   ,kTracksSA      = 3
17   ,kTracksKink    = 4
18   ,kV0List        = 5
19   ,kMonitor       = 6
20   ,kNOutSlots     = 7
21 };
22
23 enum ETRDrecoTasks{
24    kCheckESD      = 0
25   ,kInfoGen       = 1
26   ,kCheckDET      = 2
27   ,kEfficiency    = 3
28   ,kResolution    = 4
29   ,kCheckPID      = 5
30   ,kV0Monitor     = 6 
31   ,kCalibration   = 7
32   ,kEfficiencyMC  = 8
33   ,kAlignment     = 9
34   ,kPIDRefMaker   =10
35   ,kClErrParam    =11
36   ,kMultiplicity  =12
37 };
38
39 Char_t const* fgkTRDtaskClassName[NTRDTASKS] = {
40   "AliTRDcheckESD"
41   ,"AliTRDinfoGen"
42   ,"AliTRDcheckDET"
43   ,"AliTRDefficiency"
44   ,"AliTRDresolution"
45   ,"AliTRDcheckPID"
46   ,"AliTRDv0Monitor"
47   ,"AliTRDcalibration"
48   ,"AliTRDefficiencyMC"
49   ,"AliTRDalignmentTask"
50   ,"AliTRDpidRefMaker"
51   ,"AliTRDclusterResolution"
52   ,"AliTRDmultiplicity"
53 };
54
55 Char_t const* fgkTRDtaskOpt[NTRDTASKS+1] = {
56   "ESD"
57   ,"GEN"
58   ,"DET"
59   ,"EFF"
60   ,"RES"
61   ,"PID"
62   ,"V0"
63   ,"CAL"
64   ,"EFFC"
65   ,"ALGN"
66   ,"PIDR"
67   ,"CLRES"
68   ,"MULT"
69   ,"ALL"
70 };
71
72 #include <cstring>
73
74 //____________________________________________
75 Bool_t HasReadMCData(Char_t *opt){
76   return !(Bool_t)strstr(opt, "NOMC");
77 }
78
79 //____________________________________________
80 Bool_t HasReadFriendData(Char_t *opt){
81   return !(Bool_t)strstr(opt, "NOFR");
82 }
83
84 #endif
85