]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STEER/AliESDInputHandler.h
Fix fixed-string length bug
[u/mrichter/AliRoot.git] / STEER / AliESDInputHandler.h
... / ...
CommitLineData
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
16class 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 void SetActiveBranches (const char* branches) {fBranchesOn = branches;}
30 private:
31 void SwitchOffBranches() const;
32 void SwitchOnBranches() const;
33 AliESDInputHandler(const AliESDInputHandler& handler);
34 AliESDInputHandler& operator=(const AliESDInputHandler& handler);
35 private:
36 AliESDEvent *fEvent; //! Pointer to the event
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)
39 ClassDef(AliESDInputHandler, 2);
40};
41
42#endif