1 #ifndef ALITRDPIDCHECKER_H
2 #define ALITRDPIDCHECKER_H
4 //////////////////////////////////////////////////////
6 // Task to check PID performance of the TRD
8 // Author : Alex Wilk <wilka@uni-muenster.de>
10 ///////////////////////////////////////////////////////
13 #include "AliAnalysisTask.h"
18 class TTreeSRedirector;
19 class AliTRDReconstructor;
20 class AliTRDpidChecker : public AliAnalysisTask
23 AliTRDpidChecker(const char *name = "AliTRDpidChecker");
24 virtual ~AliTRDpidChecker();
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;} */
34 AliTRDpidChecker(const AliTRDpidChecker&); // not implemented
35 AliTRDpidChecker& operator=(const AliTRDpidChecker&); // not implemented
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
40 TObjArray *fObjectContainer; // Container
41 TObjArray *fTracks; //! Array of tracks
43 AliTRDReconstructor *fReconstructor; //! reconstructor needed for recalculation the PID
44 /* Int_t fDebugLevel; //! Debug level */
45 /* TTreeSRedirector *fDebugStream; //! Debug stream */
47 ClassDef(AliTRDpidChecker, 1); // TRD PID checker