]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliAODHandler.h
Enforce consistency between branch and object name.
[u/mrichter/AliRoot.git] / STEER / AliAODHandler.h
CommitLineData
ec4af4c1 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
f3214a54 13#include "AliVEventHandler.h"
ec4af4c1 14
15class AliAODEvent;
16class TFile;
17class TTree;
18
19
20
f3214a54 21class AliAODHandler : public AliVEventHandler {
ec4af4c1 22
23 public:
24 AliAODHandler();
25 AliAODHandler(const char* name, const char* title);
26 virtual ~AliAODHandler();
e910dd36 27 virtual void SetOutputFileName(char* fname) {fName = fname;}
28 virtual char* GetOutputFileName() {return fName;}
300d5701 29 virtual Bool_t Init(Option_t* option);
30 virtual Bool_t Init(TTree* /*tree*/, Option_t* /*option*/) {return kTRUE;}
31 virtual Bool_t BeginEvent(Long64_t /*entry*/) {return kTRUE;}
276be602 32 virtual Bool_t Notify() { return AliVEventHandler::Notify(); };
890126ab 33 virtual Bool_t Notify(const char * /* path */) {return kTRUE;}
5f380da9 34 virtual Bool_t FinishEvent();
ec4af4c1 35 virtual Bool_t Terminate();
36 virtual Bool_t TerminateIO();
ec4af4c1 37 //
38 AliAODEvent* GetAOD() {return fAODEvent;}
39 TTree* GetTree() {return fTreeA;}
954526ed 40 void CreateTree(Int_t flag);
ec4af4c1 41 void FillTree();
42 void AddAODtoTreeUserInfo();
490e9023 43 void AddBranch(const char* bname, const char* cname, TObject* addobj);
933fd60f 44 //
45 void SetInputTree(TTree* /*tree*/) {;}
ec4af4c1 46 private:
47 AliAODHandler(const AliAODHandler&); // Not implemented
48 AliAODHandler& operator=(const AliAODHandler&); // Not implemented
49 private:
50 AliAODEvent *fAODEvent; //! Pointer to the AOD event
ec4af4c1 51 TTree *fTreeA; //! tree for AOD persistency
e910dd36 52 TFile *fFileA; //! Output file
53 char *fName; //! Output file name
ec4af4c1 54 ClassDef(AliAODHandler, 1);
55};
56
57#endif