]>
Commit | Line | Data |
---|---|---|
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 | |
16 | class 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; |
300d5701 | 33 | private: |
34 | AliESDEvent *fEvent; //! Pointer to the event | |
865d620a | 35 | TString fBranches; //List of branches to be switched off (separated by space) |
36 | TString fBranchesOn; //List of branches to be switched on (separated by space) | |
6989bff3 | 37 | ClassDef(AliESDInputHandler, 2); |
d3dd3d14 | 38 | }; |
39 | ||
40 | #endif |