]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TRD/AliTRDonlineTrackletFilter.h
Updates by Ionut
[u/mrichter/AliRoot.git] / PWGPP / TRD / AliTRDonlineTrackletFilter.h
1 // AliTRDonlineTrackletFilter implements an analysis task which makes
2 // the TRD on-line tracklets accessible for other analysis tasks.
3
4 #ifndef ALITRDONLINETRACKLETFILTER
5 #define ALITRDONLINETRACKLETFILTER
6
7 #include "AliAnalysisTask.h"
8
9 class TList;
10
11 class AliInputEventHandler;
12 class AliVEvent;
13 class AliAODEvent;
14 class AliMCEvent;
15
16 class AliTRDgeometry;
17 class AliTRDpadPlane;
18 class AliTRDtrackletMCM;
19 class AliTRDtrackletWord;
20
21 class AliTRDonlineTrackletFilter : public AliAnalysisTask
22 {
23  public:
24   AliTRDonlineTrackletFilter(const char *name);
25   ~AliTRDonlineTrackletFilter();
26
27   void ConnectInputData(const Option_t *option);
28   void CreateOutputObjects();
29   void Exec(const Option_t *option);
30   void LocalInit();
31   void Terminate(const Option_t *option);
32
33   Bool_t Notify(); 
34   Bool_t LoadEvent();
35
36
37  protected:
38   AliESDEvent *fESD;                    //!
39
40   AliInputEventHandler *fInputHandler;  //!
41   AliVEvent            *fInputEvent;    //!
42   AliAODEvent          *fOutputAOD;     //!
43   AliMCEvent           *fMCEvent;       //!
44
45   TClonesArray         *fTrackletsRaw;  //!
46   TClonesArray         *fTrackletsSim;  //!
47
48   // ----- output objects -----
49   TTree                *fTrackletTree;  //!
50
51   // ----- internal use -----
52   AliTRDgeometry       *fGeo; //! TRD geometry
53
54   Int_t fNevent; // current event number
55
56   TString fPath; //!
57   TFile *fTrackletFile; //!
58   Int_t fNEventsPerFile; //!
59   Int_t fEvent;  //!
60   Int_t fFileNumber; //!
61   TTree *fTrackletTreeSim;  //!
62   TTree *fTrackletTreeRaw; //!
63
64  private:
65   AliTRDonlineTrackletFilter(const AliTRDonlineTrackletFilter&); // not implemented
66   AliTRDonlineTrackletFilter& operator=(const AliTRDonlineTrackletFilter&); // not implemented
67
68   ClassDef(AliTRDonlineTrackletFilter, 0);
69 };
70
71 #endif