]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliInputEventHandler.h
- Change in ProcessFloatAll method for calculating statistical quantities for
[u/mrichter/AliRoot.git] / STEER / AliInputEventHandler.h
CommitLineData
76147823 1#ifndef ALIINPUTEVENTHANDLER_H
2#define ALIINPUTEVENTHANDLER_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// Input Handler realisation of the AliVEventHandler interface
10// Author: Andreas Morsch, CERN
11//-------------------------------------------------------------------------
12
13#include "AliVEventHandler.h"
97acfdbe 14#include <TTree.h>
15
76147823 16
76147823 17class AliVEvent;
1aa09fd1 18class AliRunTag;
76147823 19
20class AliInputEventHandler : public AliVEventHandler {
21
22 public:
23 AliInputEventHandler();
24 AliInputEventHandler(const char* name, const char* title);
25 virtual ~AliInputEventHandler();
0931e76a 26 virtual void SetOutputFileName(const char* /*fname*/) {;}
27 virtual const char *GetOutputFileName() {return 0;}
300d5701 28 virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
87d395bd 29 virtual Bool_t Init(TTree* /*tree*/, Option_t* /*opt*/) {return kTRUE;}
300d5701 30 virtual Bool_t BeginEvent(Long64_t /*entry*/) {return kTRUE;}
276be602 31 virtual Bool_t Notify() { return AliVEventHandler::Notify(); };
300d5701 32 virtual Bool_t Notify(const char */*path*/) {return kTRUE;}
33 virtual Bool_t FinishEvent() {return kTRUE;}
34 virtual Bool_t Terminate() {return kTRUE;}
35 virtual Bool_t TerminateIO() {return kTRUE;}
76147823 36 // Setters
300d5701 37 virtual void SetInputTree(TTree* tree) {fTree = tree;}
f16ba708 38 //
39 void SetInactiveBranches(const char* branches) {fBranches = branches;}
40 void SetActiveBranches (const char* branches) {fBranchesOn = branches;}
fedd7a0d 41 // Getters
1aa09fd1 42 virtual AliVEvent *GetEvent() const {return 0;}
43 virtual AliRunTag *GetRunTag() const {return 0;}
44 virtual Option_t *GetAnalysisType() const {return 0;}
45 virtual TTree *GetTree( ) const {return fTree;}
46 virtual Long64_t GetReadEntry() const {return fTree->GetReadEntry();}
f16ba708 47 protected:
48 void SwitchOffBranches() const;
49 void SwitchOnBranches() const;
87d395bd 50 private:
51 AliInputEventHandler(const AliInputEventHandler& handler);
52 AliInputEventHandler& operator=(const AliInputEventHandler& handler);
76147823 53 protected:
f16ba708 54 TTree *fTree; //! Pointer to the tree
55 TString fBranches; // List of branches to be switched off (separated by space)
56 TString fBranchesOn; // List of branches to be switched on (separated by space)
57 ClassDef(AliInputEventHandler, 2);
76147823 58};
59
60#endif