]>
Commit | Line | Data |
---|---|---|
397596ed | 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" | |
fedd7a0d | 14 | #include "AliAODEvent.h" |
04a79fa0 | 15 | #include "AliMCEvent.h" |
397596ed | 16 | |
26772015 | 17 | class TList; |
04a79fa0 | 18 | class AliMCEvent; |
26772015 | 19 | |
397596ed | 20 | class AliAODInputHandler : public AliInputEventHandler { |
21 | ||
22 | public: | |
23 | AliAODInputHandler(); | |
24 | AliAODInputHandler(const char* name, const char* title); | |
25 | virtual ~AliAODInputHandler(); | |
300d5701 | 26 | virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;} |
27 | virtual Bool_t Init(TTree* tree, Option_t* opt); | |
87d395bd | 28 | AliAODEvent *GetEvent() const {return fEvent;} |
04a79fa0 | 29 | AliMCEvent *MCEvent() const {return fMCEvent;} |
fbb264e0 | 30 | virtual void AddFriend(char* filename); |
31 | virtual Bool_t BeginEvent(Long64_t entry); | |
c2b6979d | 32 | Option_t *GetDataType() const; |
87d395bd | 33 | private: |
34 | AliAODInputHandler(const AliAODInputHandler& handler); | |
35 | AliAODInputHandler& operator=(const AliAODInputHandler& handler); | |
fedd7a0d | 36 | private: |
4195c9c9 | 37 | AliAODEvent *fEvent; //! Pointer to the event |
04a79fa0 | 38 | AliMCEvent *fMCEvent; //! Pointer to the MCEvent |
26772015 | 39 | TList *fFriends; // List of friend trees |
397596ed | 40 | ClassDef(AliAODInputHandler, 1); |
41 | }; | |
42 | ||
43 | #endif |