]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaRec/AliTRDcheckESD.h
- add output graphs for efficiency
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDcheckESD.h
1 #ifndef AliTRDcheckESD_H
2 #define AliTRDcheckESD_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: AliTRDcheckESD.h 27496 2008-07-22 08:35:45Z cblume $ */
7
8 ////////////////////////////////////////////////////////////////////////////
9 //                                                                        //
10 //  Reconstruction QA                                                     //
11 //                                                                        //
12 ////////////////////////////////////////////////////////////////////////////
13
14 #ifndef ALIANALYSISTASK_H
15 #include "AliAnalysisTask.h"
16 #endif
17
18 class AliESDEvent;
19 class AliMCEvent;
20 class TObjArray;
21 class AliTRDcheckESD : public AliAnalysisTask {
22 public:
23   enum ETRDcheckESDstatus {
24     kMC = BIT(0)
25   };
26   enum ETRDcheckESDhistos {
27     kNCl     = 0   // number of clusters per track
28    ,kTRDstat = 1   // TRD tracks status
29    ,kResults = 2   // graphs as results
30   };
31   AliTRDcheckESD();
32   virtual ~AliTRDcheckESD();
33   
34   void    ConnectInputData(Option_t *);
35   void    CreateOutputObjects();
36   void    Exec(Option_t *);
37
38   Bool_t  HasMC() const { return TESTBIT(fStatus, kMC);}
39   Bool_t  Load(const Char_t *fn);
40   void    SetMC(Bool_t mc = kTRUE) { mc ? SETBIT(fStatus, kMC) : CLRBIT(fStatus, kMC);}
41   void    Terminate(Option_t *);
42
43   static const Float_t xTPC;
44   static const Float_t xTOF;
45
46 private:
47   AliTRDcheckESD(const AliTRDcheckESD&);
48   AliTRDcheckESD& operator=(const AliTRDcheckESD&);
49   Int_t            fStatus;            // bit mask for controlling the task
50   AliESDEvent      *fESD;              // ESD event
51   AliMCEvent       *fMC;               // MC event
52   TObjArray        *fHistos;           // QA histos
53   ClassDef(AliTRDcheckESD, 1)          // user oriented TRD analysis based on ESD-MC data
54 };
55 #endif