]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/qaRec/AliTRDtrackInfoGen.h
extend the usage of the train also for measured data (Markus)
[u/mrichter/AliRoot.git] / TRD / qaRec / AliTRDtrackInfoGen.h
1 #ifndef ALITRDTRACKINFOGEN_H
2 #define ALITRDTRACKINFOGEN_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: AliTRDtrackInfoGen.h 27496 2008-07-22 08:35:45Z cblume $ */
7
8 ////////////////////////////////////////////////////////////////////////////
9 //                                                                        //
10 //  Reconstruction QA                                                     //
11 //                                                                        //
12 ////////////////////////////////////////////////////////////////////////////
13
14 #include "AliAnalysisTask.h"
15
16 class AliESDEvent;
17 class AliMCEvent;
18 class AliESDfriend;
19 class AliTRDtrackInfo;
20 class TObjArray;
21 class TTreeSRedirector;
22
23 class AliTRDtrackInfoGen : public AliAnalysisTask{
24 public:
25
26   AliTRDtrackInfoGen(const Char_t *name = "TRD Track Info");
27   ~AliTRDtrackInfoGen(){};
28   
29   void  ConnectInputData(Option_t *);
30   void  CreateOutputObjects();
31   Int_t GetDebugLevel() const {return fDebugLevel;} 
32   Bool_t HasMCdata() const { return fHasMCdata; }
33   void  Exec(Option_t *);
34   void  SetDebugLevel(Int_t level);
35   void  SetHasMCdata(Bool_t mcdata) { fHasMCdata = mcdata; };
36   void  Terminate(Option_t *);
37
38 private:
39
40   AliTRDtrackInfoGen(const AliTRDtrackInfoGen&);
41   AliTRDtrackInfoGen& operator=(const AliTRDtrackInfoGen&);
42
43 private:
44
45   AliESDEvent      *fESD;                  // ESD event
46   AliMCEvent       *fMC;                   // MC event
47   AliESDfriend     *fESDfriend;            // ESD friends
48   AliTRDtrackInfo  *fTrackInfo;            // Track info
49   TObjArray        *fObjectContainer;      // Object container
50
51         Bool_t           fHasMCdata;             // Contains MC information
52   Int_t            fDebugLevel;            // Debug level
53   TTreeSRedirector *fDebugStream;          // Debug stream
54
55   ClassDef(AliTRDtrackInfoGen, 1)          // entry to TRD analysis
56 };
57 #endif