]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaRec/AliTRDpidChecker.h
new QA plot (nunmber of clusters/track/species) by AlexW
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDpidChecker.h
1 #ifndef ALITRDPIDCHECKER_H
2 #define ALITRDPIDCHECKER_H
3
4 //////////////////////////////////////////////////////
5 //
6 // Task to check PID performance of the TRD
7 //
8 // Author : Alex Wilk <wilka@uni-muenster.de>
9 //
10 ///////////////////////////////////////////////////////
11
12 #include "AliPID.h"
13 #include "../Cal/AliTRDCalPID.h"
14
15 #ifndef ALITRDRECOTASK_H
16 #include "AliTRDrecoTask.h"
17 #endif
18
19 class TObjArray;
20 class TList;
21 class TClonesArray;
22 class TTreeSRedirector;
23 class AliTRDReconstructor;
24 class AliTRDpidChecker : public AliTRDrecoTask 
25 {
26
27   enum{
28     kLQlikelihood    = 0     // place for 2-dim LQ electron likelihood distributions
29     ,kNNlikelihood   = 1     // place for NN electron likelihood distributions
30     ,kdEdx           = 2     // place for the dE/dx spectra
31     ,kPH             = 3     // place for pulse height spectra
32     ,kNClus          = 4     // place for the number of clusters per track
33     ,kMomentum       = 5     // place for the momentum distribution
34     ,kMomentumBin    = 6     // place for the momentum distribution
35     ,kGraphLQ        = 7     // place for the 2-dim LQ pion efficiencies
36     ,kGraphNN        = 8     // place for the NN pion efficiencies
37   };
38
39   enum{
40     kGraphStart = kGraphLQ
41   };
42
43 public:
44   AliTRDpidChecker();
45   virtual ~AliTRDpidChecker();
46   
47   void    CreateOutputObjects();
48   void    Exec(Option_t *option);
49   void    GetRefFigure(Int_t ifig, Int_t &first, Int_t &last, Option_t *opt);  
50   void    GetRefFigure(Int_t ifig);
51   Bool_t  PostProcess();
52   void    Terminate(Option_t *);
53
54
55 private:
56   AliTRDpidChecker(const AliTRDpidChecker&);               // not implemented
57   AliTRDpidChecker& operator=(const AliTRDpidChecker&);    // not implemented
58
59   AliTRDReconstructor *fReconstructor;     //! reconstructor needed for recalculation the PID
60
61   ClassDef(AliTRDpidChecker, 1); // TRD PID checker
62 };
63
64 #endif