]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDInputHandler.h
Make use of new method AliRawReader::GetNumberOfEvents() - goinf to the last event...
[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"
d3dd3d14 15
16class AliESDInputHandler : public AliInputEventHandler {
17
18 public:
19 AliESDInputHandler();
20 AliESDInputHandler(const char* name, const char* title);
21 virtual ~AliESDInputHandler();
300d5701 22 virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
23 virtual Bool_t Init(TTree* tree, Option_t* opt);
ed97dc98 24 virtual Bool_t BeginEvent(Long64_t entry);
6989bff3 25 virtual Bool_t FinishEvent();
fedd7a0d 26 AliESDEvent *GetEvent() const {return fEvent;}
300d5701 27 //
865d620a 28 void SetInactiveBranches(const char* branches) {fBranches = branches;}
29 void SetActiveBranches (const char* branches) {fBranchesOn = branches;}
300d5701 30 private:
31 void SwitchOffBranches() const;
3858dd64 32 void SwitchOnBranches() const;
87d395bd 33 AliESDInputHandler(const AliESDInputHandler& handler);
34 AliESDInputHandler& operator=(const AliESDInputHandler& handler);
300d5701 35 private:
36 AliESDEvent *fEvent; //! Pointer to the event
865d620a 37 TString fBranches; //List of branches to be switched off (separated by space)
38 TString fBranchesOn; //List of branches to be switched on (separated by space)
6989bff3 39 ClassDef(AliESDInputHandler, 2);
d3dd3d14 40};
41
42#endif