]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliAODInputHandler.h
1) corrections for Coverity reports
[u/mrichter/AliRoot.git] / STEER / AliAODInputHandler.h
CommitLineData
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 17class TList;
04a79fa0 18class AliMCEvent;
26772015 19
397596ed 20class 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;
1f842495 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;}
04daa8bf 37 void SetMergeOffset(Int_t ioff) {fMergeOffset = ioff;}
87d395bd 38 private:
39 AliAODInputHandler(const AliAODInputHandler& handler);
40 AliAODInputHandler& operator=(const AliAODInputHandler& handler);
fedd7a0d 41 private:
4195c9c9 42 AliAODEvent *fEvent; //! Pointer to the event
04a79fa0 43 AliMCEvent *fMCEvent; //! Pointer to the MCEvent
26772015 44 TList *fFriends; // List of friend trees
1f842495 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
04daa8bf 50 Int_t fMergeOffset; //! Event offset for merging
1f842495 51 ClassDef(AliAODInputHandler, 2);
397596ed 52};
53
54#endif