]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliAODHandler.h
File path is obtained in AliAnalysisManager and is sent to AliMCEventHeandler as...
[u/mrichter/AliRoot.git] / STEER / AliAODHandler.h
1 #ifndef ALIAODHANDLER_H
2 #define ALIAODHANDLER_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 //     Implementation of the Event Handler Interface for AOD
10 //     Author: Andreas Morsch, CERN
11 //-------------------------------------------------------------------------
12
13 #include "AliVirtualEventHandler.h"
14
15 class AliAODEvent;
16 class TFile;
17 class TTree;
18
19
20
21 class AliAODHandler : public AliVirtualEventHandler {
22     
23  public:
24     AliAODHandler();
25     AliAODHandler(const char* name, const char* title);
26     virtual ~AliAODHandler();
27     virtual void         SetOutputFileName(char* fname) {fName = fname;}
28     virtual char*        GetOutputFileName() {return fName;}
29     virtual Bool_t       InitIO(Option_t* option);
30     virtual Bool_t       BeginEvent(){ return kTRUE;}
31     virtual Bool_t       Notify(const char * /* path */) {return kTRUE;}
32     virtual Bool_t       FinishEvent();
33     virtual Bool_t       Terminate();
34     virtual Bool_t       TerminateIO();
35     //
36     AliAODEvent*         GetAOD()  {return fAODEvent;}
37     TTree*               GetTree() {return fTreeA;}
38     void                 CreateTree();
39     void                 FillTree();
40     void                 AddAODtoTreeUserInfo();
41  private:
42     AliAODHandler(const AliAODHandler&);             // Not implemented
43     AliAODHandler& operator=(const AliAODHandler&);  // Not implemented
44  private:
45     AliAODEvent             *fAODEvent;  //! Pointer to the AOD event
46     TTree                   *fTreeA;     //! tree for AOD persistency
47     TFile                   *fFileA;     //! Output file
48     char                    *fName;      //! Output file name
49     ClassDef(AliAODHandler, 1);
50 };
51
52 #endif