e THnSparse structure to store MC residuals
[u/mrichter/AliRoot.git] / PWG1 / TRD / AliTRDpwg1Helper.h
CommitLineData
7f1490fc 1#ifndef ALITRDPWG1HELPER_H
2#define ALITRDPWG1HELPER_H
3
61f6b45e 4////////////////////////////////////////////////////////////////////////////
5// //
6// Helper class for PWG1 TRD train //
7// //
8// Authors: //
9// Markus Fasel <M.Fasel@gsi.de> //
10// //
11////////////////////////////////////////////////////////////////////////////
12
7f1490fc 13class AliTRDpwg1Helper{
99535225 14public:
15 enum ETRDinfoGenOutSlots {
16 kEventInfo = 1
3ceb45ae 17 ,kTracksBarrel
18 ,kTracksSA
19 ,kTracksKink
20 ,kV0List
21 ,kMonitor
22 ,kNOutSlots
99535225 23 };
7f1490fc 24
99535225 25 enum ETRDrecoTasks{
3ceb45ae 26 kCheckESD = 0
27 ,kInfoGen
28 ,kCheckDET
29 ,kEfficiency
30 ,kResolution
31 ,kCheckPID
32 ,kV0Monitor
33 ,kCheckTRK
34 ,kCalibration
35 ,kEfficiencyMC
36 ,kAlignment
37 ,kPIDRefMaker
38 ,kClErrParam
39 ,kMultiplicity
99535225 40 };
7f1490fc 41
99535225 42 enum{
3ed01fbe 43 kNTRDQATASKS = 8,
44 kNTRDCALIBTASKS = 6,
99535225 45 kNTRDTASKS = kNTRDQATASKS + kNTRDCALIBTASKS
46 };
61f6b45e 47
48 AliTRDpwg1Helper();
49 ~AliTRDpwg1Helper();
7f1490fc 50
b94f89e4 51 static Bool_t DoTask(Int_t idx, Int_t map);
99535225 52 static Int_t GetTaskIndex(const Char_t *name);
53 static Bool_t HasReadMCData(Char_t *opt);
54 static Bool_t HasReadFriendData(Char_t *opt);
61f6b45e 55 static const Char_t * TaskOpt(Int_t itask) {return fgkTRDtaskOpt[itask];}
56 static const Char_t * TaskClassName(Int_t itask) {return fgkTRDtaskClassName[itask];}
7f1490fc 57
5468a262 58 static const Char_t* Basename(const char* filepath);
59 static const Char_t* Dirname(const char* filepath);
60 static const Char_t* MergeBatch(const Char_t *mark, const Char_t *files, const Int_t nfiles=20, const Int_t first=0, Bool_t kSVN=kTRUE, Bool_t kCLEAR=kFALSE);
61 static void MergeProd(const Char_t *mark, const Char_t *files, const Int_t nBatch=20, Int_t level=0);
99535225 62 static Int_t ParseOptions(Char_t *trd);
8ee59659 63
61f6b45e 64private:
65 AliTRDpwg1Helper(const AliTRDpwg1Helper& ref);
66 const AliTRDpwg1Helper& operator=(const AliTRDpwg1Helper& ref);
61f6b45e 67 static const Char_t * fgkTRDtaskOpt[kNTRDTASKS + 1]; //! task options
68 static const Char_t * fgkTRDtaskClassName[kNTRDTASKS];//! task class name
7f1490fc 69};
99535225 70
7f1490fc 71#endif