]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDInputHandler.h
Movin AliQA from STEER to STEERBase
[u/mrichter/AliRoot.git] / STEER / AliESDInputHandler.h
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"
14 #include "AliESDEvent.h"
15
16 class AliESDInputHandler : public AliInputEventHandler {
17
18  public:
19     AliESDInputHandler();
20     AliESDInputHandler(const char* name, const char* title);
21     virtual ~AliESDInputHandler();
22     virtual Bool_t       Init(Option_t* /*opt*/) {return kTRUE;}
23     virtual Bool_t       Init(TTree* tree, Option_t* opt);
24     virtual Bool_t       BeginEvent(Long64_t entry);
25     virtual Bool_t       FinishEvent();
26     AliESDEvent         *GetEvent() const {return fEvent;}
27     //
28     void SetInactiveBranches(const char* branches) {fBranches = branches;}
29  private:
30     void SwitchOffBranches() const;
31  private:
32     AliESDEvent    *fEvent;      //! Pointer to the event
33     TString         fBranches;   //List of branches to be switched off (separated by space
34     ClassDef(AliESDInputHandler, 2);
35 };
36
37 #endif