Fixes for bug #52499: Field polarities inconsistiency
[u/mrichter/AliRoot.git] / STEER / AliESDInputHandler.h
CommitLineData
d3dd3d14 1#ifndef ALIESDINPUTHANDLER_H
2#define ALIESDINPUTHANDLER_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// ESD Input Handler realisation of the AliVEventHandler interface
10// Author: Andreas Morsch, CERN
11//-------------------------------------------------------------------------
12
13#include "AliInputEventHandler.h"
fedd7a0d 14#include "AliESDEvent.h"
1aa09fd1 15class TChain;
16class TTree;
17class AliRunTag;
18
d3dd3d14 19
20class AliESDInputHandler : public AliInputEventHandler {
21
22 public:
23 AliESDInputHandler();
24 AliESDInputHandler(const char* name, const char* title);
25 virtual ~AliESDInputHandler();
300d5701 26 virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
27 virtual Bool_t Init(TTree* tree, Option_t* opt);
ed97dc98 28 virtual Bool_t BeginEvent(Long64_t entry);
1aa09fd1 29 virtual Bool_t Notify() { return AliVEventHandler::Notify(); };
30 virtual Bool_t Notify(const char* path);
6989bff3 31 virtual Bool_t FinishEvent();
1aa09fd1 32 AliESDEvent *GetEvent() const {return fEvent;}
33 Option_t *GetAnalysisType() const {return fAnalysisType;}
c2b6979d 34 Option_t *GetDataType() const;
6ccd727b 35 // HLT analysis
36 AliESDEvent *GetHLTEvent() const {return fHLTEvent;}
37 TTree *GetHLTTree() const {return fHLTTree;}
38 void SetReadHLT() {fUseHLT = kTRUE;}
1aa09fd1 39 // Tag analysis
40 void SetReadTags() {fUseTags = kTRUE;}
41 AliRunTag *GetRunTag() const {return fRunTag;}
42
300d5701 43 private:
87d395bd 44 AliESDInputHandler(const AliESDInputHandler& handler);
45 AliESDInputHandler& operator=(const AliESDInputHandler& handler);
4d2a7370 46 protected:
1aa09fd1 47 // ESD event
48 AliESDEvent *fEvent; //! Pointer to the event
1aa09fd1 49 Option_t *fAnalysisType; //! local, proof, grid
6ccd727b 50 Int_t fNEvents; //! Number of events in the current tree
51 // HLT event
52 AliESDEvent *fHLTEvent; //! Pointer to the HLT Event (if present)
53 TTree *fHLTTree; //! Pointer to the HLT Event (if present)
54 Bool_t fUseHLT; // Flag to access HLT Events
1aa09fd1 55 // ESD Tags (optional)
56 Bool_t fUseTags; // Flag to use tags
57 TChain *fChainT; //! File with event tags
58 TTree *fTreeT; //! Tree of tags
59 AliRunTag *fRunTag; //! Pointer to the run tag
6ccd727b 60 ClassDef(AliESDInputHandler, 4);
d3dd3d14 61};
62
63#endif