]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIAODINPUTHANDLER_H | |
2 | #define ALIAODINPUTHANDLER_H | |
3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // AOD Input Handler realisation of the AliVEventHandler interface | |
10 | // Author: Andreas Morsch, CERN | |
11 | //------------------------------------------------------------------------- | |
12 | ||
13 | #include "AliInputEventHandler.h" | |
14 | #include "AliAODEvent.h" | |
15 | #include "AliMCEvent.h" | |
16 | ||
17 | class TList; | |
18 | class AliMCEvent; | |
19 | ||
20 | class AliAODInputHandler : public AliInputEventHandler { | |
21 | ||
22 | public: | |
23 | AliAODInputHandler(); | |
24 | AliAODInputHandler(const char* name, const char* title); | |
25 | virtual ~AliAODInputHandler(); | |
26 | virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;} | |
27 | virtual Bool_t Init(TTree* tree, Option_t* opt); | |
28 | AliAODEvent *GetEvent() const {return fEvent;} | |
29 | AliMCEvent *MCEvent() const {return fMCEvent;} | |
30 | virtual void AddFriend(char* filename); | |
31 | virtual Bool_t BeginEvent(Long64_t entry); | |
32 | Option_t *GetDataType() const; | |
33 | // Provisions for event merging | |
34 | void SetMergeEvents(Bool_t flag) {fMergeEvents = flag;} | |
35 | Bool_t GetMergeEvents() const {return fMergeEvents;} | |
36 | AliAODEvent* GetEventToMerge() {return fAODEventToMerge;} | |
37 | void SetMergeOffset(Int_t ioff) {fMergeOffset = ioff;} | |
38 | private: | |
39 | AliAODInputHandler(const AliAODInputHandler& handler); | |
40 | AliAODInputHandler& operator=(const AliAODInputHandler& handler); | |
41 | private: | |
42 | AliAODEvent *fEvent; //! Pointer to the event | |
43 | AliMCEvent *fMCEvent; //! Pointer to the MCEvent | |
44 | TList *fFriends; // List of friend trees | |
45 | // Support for merged events | |
46 | Bool_t fMergeEvents; // Flag for event merging | |
47 | TFile *fFileToMerge; //! File for merging | |
48 | TTree *fTreeToMerge; //! Tree for merging | |
49 | AliAODEvent *fAODEventToMerge; //! Event for merging | |
50 | Int_t fMergeOffset; //! Event offset for merging | |
51 | ClassDef(AliAODInputHandler, 2); | |
52 | }; | |
53 | ||
54 | #endif |