]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaRec/AliTRDpidChecker.h
included 1D dEdx distibutions (Alex Wilk)
[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
13 #include "AliAnalysisTask.h"
14
15 class TObjArray;
16 class TList;
17 class TClonesArray;
18 class TTreeSRedirector;
19 class AliTRDReconstructor;
20 class AliTRDpidChecker : public AliAnalysisTask 
21 {
22 public:
23   AliTRDpidChecker(const char *name = "AliTRDpidChecker");
24   virtual ~AliTRDpidChecker();
25   
26   void   ConnectInputData(Option_t *);
27   void   CreateOutputObjects();
28   void   Exec(Option_t *option);
29   void   Terminate(Option_t *);
30 /*   Int_t  GetDebugLevel() const {return fDebugLevel;}  */
31 /*   void   SetDebugLevel(Int_t debug){fDebugLevel = debug;} */
32
33 private:
34   AliTRDpidChecker(const AliTRDpidChecker&); // not implemented
35   AliTRDpidChecker& operator=(const AliTRDpidChecker&); // not implemented
36
37   Double_t GetPionEfficiency(Int_t Index1, Int_t Index2);  // calculates the pion efficiency
38   Double_t GetError(Int_t Index1, Int_t Index2);           // calculates the error
39   
40   TObjArray        *fObjectContainer;       // Container
41   TObjArray        *fTracks;                //! Array of tracks
42
43   AliTRDReconstructor *fReconstructor;     //! reconstructor needed for recalculation the PID
44 /*   Int_t            fDebugLevel;         //! Debug level */
45 /*   TTreeSRedirector *fDebugStream;       //! Debug stream */
46
47   ClassDef(AliTRDpidChecker, 1); // TRD PID checker
48 };
49
50 #endif