]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDHandler.h
coverity 10161
[u/mrichter/AliRoot.git] / STEER / AliESDHandler.h
CommitLineData
6d3a7bbf 1#ifndef ALIESDHANDLER_H
2#define ALIESDHANDLER_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//
10// Implementation of the Event Handler Interface for ESD
11//
12//-------------------------------------------------------------------------
13
14#include "AliVEventHandler.h"
15
16class AliESDEvent;
17class AliESDfriend;
18class TFile;
19class TTree;
20
21class AliESDHandler : public AliVEventHandler {
22
23 public:
24 AliESDHandler();
25 AliESDHandler(const char* name, const char* title);
26 virtual ~AliESDHandler();
27 virtual void SetOutputFileName(const char* fname){fFileName = fname;}
28 virtual const char* GetOutputFileName(){return fFileName.Data();}
29 virtual Bool_t Init(Option_t* option);
30 virtual Bool_t Init(TTree* /*tree*/, Option_t* /*option*/) {return kTRUE;}
0d6a82a5 31 virtual Bool_t GetEntry() {return kTRUE;}
3e341ccb 32 virtual Bool_t BeginEvent(Long64_t /*entry*/){fIsEventSelectedForFriends = kFALSE; return kTRUE;}
6d3a7bbf 33 virtual Bool_t Notify() {return AliVEventHandler::Notify(); };
34 virtual Bool_t Notify(const char * /* path */) {return kTRUE;}
35 virtual Bool_t FinishEvent();
36 virtual Bool_t Terminate();
37 virtual Bool_t TerminateIO();
38
6d3a7bbf 39 AliESDfriend* GetESDfriend() {return fesdf;}
03a8000a 40 virtual TTree* GetTree() const {return fTreeEF;}
6d3a7bbf 41 void FillTree();
6d3a7bbf 42 void SetInputTree(TTree* /*tree*/) {;}
3e341ccb 43 void SelectEventForFriends() {fIsEventSelectedForFriends = kTRUE;}
44
6d3a7bbf 45 private:
46
47 AliESDHandler(const AliESDHandler&); // Not implemented
48 AliESDHandler& operator=(const AliESDHandler&); // Not implemented
49
6d3a7bbf 50 AliESDfriend* fesdf; //! Pointer to the ESD friend
03a8000a 51 TTree* fTreeEF; //! Output tree for friends
6d3a7bbf 52 TFile* fFileEF; //! Output file for friends
3e341ccb 53 TString fFileName; //! Output file name for friends
54 Bool_t fIsEventSelectedForFriends; //! flag to indicate if the event was selected to have the friends kept
55
56 ClassDef(AliESDHandler, 3)
6d3a7bbf 57};
58#endif