]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaRec/AliTRDpidChecker.h
add PID checker task by Alex Wilk
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDpidChecker.h
1 #ifndef AliTRDpidChecker_cxx\r
2 #define AliTRDpidChecker_cxx\r
3 \r
4 // Task to check PID performance of the TRD\r
5 \r
6 class AliTRDReconstructor;\r
7 \r
8 \r
9 #include "AliAnalysisTask.h"\r
10 \r
11 class TObjArray;\r
12 class TList;\r
13 class TClonesArray;\r
14 class TTreeSRedirector;\r
15 \r
16 class AliTRDpidChecker : public AliAnalysisTask {\r
17  public:\r
18   AliTRDpidChecker(const char *name = "AliTRDpidChecker");\r
19   virtual ~AliTRDpidChecker();\r
20   \r
21   void   ConnectInputData(Option_t *);\r
22   void   CreateOutputObjects();\r
23   void   Exec(Option_t *option);\r
24   void   Terminate(Option_t *);\r
25 /*   Int_t  GetDebugLevel() const {return fDebugLevel;}  */\r
26 /*   void   SetDebugLevel(Int_t debug){fDebugLevel = debug;} */\r
27  \r
28  private:\r
29   AliTRDpidChecker(const AliTRDpidChecker&); // not implemented\r
30   AliTRDpidChecker& operator=(const AliTRDpidChecker&); // not implemented\r
31 \r
32   Double_t GetPionEfficiency(Int_t Index1, Int_t Index2);  // calculates the pion efficiency\r
33   Double_t GetError(Int_t Index1, Int_t Index2);           // calculates the error\r
34   \r
35   TObjArray        *fObjectContainer;       // Container\r
36   TObjArray        *fTracks;                // Array of tracks\r
37 \r
38   AliTRDReconstructor *fReconstructor;     // reconstructor needed for recalculation the PID\r
39 /*   Int_t            fDebugLevel;         // Debug level */\r
40 /*   TTreeSRedirector *fDebugStream;       // Debug stream */\r
41 \r
42   ClassDef(AliTRDpidChecker, 1); // example of analysis\r
43 };\r
44 \r
45 #endif\r