]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDInputHandler.h
- exchanged the storage of the AliTPCseed objects in HLT from TObjArray to TClonesArray
[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"
1aa09fd1 15class TChain;
16class TTree;
17class AliRunTag;
f0f29480 18class TMap;
620ad672 19class AliESDfriend;
d3dd3d14 20
21class AliESDInputHandler : public AliInputEventHandler {
22
23 public:
24 AliESDInputHandler();
25 AliESDInputHandler(const char* name, const char* title);
26 virtual ~AliESDInputHandler();
300d5701 27 virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
28 virtual Bool_t Init(TTree* tree, Option_t* opt);
ed97dc98 29 virtual Bool_t BeginEvent(Long64_t entry);
1aa09fd1 30 virtual Bool_t Notify() { return AliVEventHandler::Notify(); };
31 virtual Bool_t Notify(const char* path);
6989bff3 32 virtual Bool_t FinishEvent();
1aa09fd1 33 AliESDEvent *GetEvent() const {return fEvent;}
34 Option_t *GetAnalysisType() const {return fAnalysisType;}
c2b6979d 35 Option_t *GetDataType() const;
f0f29480 36 // Tag cut summary analysis
37 Int_t GetNEventAcceptedInFile();
38 Int_t GetNEventRejectedInFile();
c334d0d3 39 Bool_t GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected);
40 Int_t GetNFilesEmpty();
6ccd727b 41 // HLT analysis
620ad672 42 AliESDfriend *GetESDfriend() const {return fFriend;}
6ccd727b 43 AliESDEvent *GetHLTEvent() const {return fHLTEvent;}
44 TTree *GetHLTTree() const {return fHLTTree;}
45 void SetReadHLT() {fUseHLT = kTRUE;}
1aa09fd1 46 // Tag analysis
47 void SetReadTags() {fUseTags = kTRUE;}
48 AliRunTag *GetRunTag() const {return fRunTag;}
49
300d5701 50 private:
87d395bd 51 AliESDInputHandler(const AliESDInputHandler& handler);
52 AliESDInputHandler& operator=(const AliESDInputHandler& handler);
4d2a7370 53 protected:
1aa09fd1 54 // ESD event
55 AliESDEvent *fEvent; //! Pointer to the event
620ad672 56 AliESDfriend *fFriend; //! Pointer to the esd friend
1aa09fd1 57 Option_t *fAnalysisType; //! local, proof, grid
6ccd727b 58 Int_t fNEvents; //! Number of events in the current tree
59 // HLT event
60 AliESDEvent *fHLTEvent; //! Pointer to the HLT Event (if present)
61 TTree *fHLTTree; //! Pointer to the HLT Event (if present)
62 Bool_t fUseHLT; // Flag to access HLT Events
f0f29480 63 // ESD Tag Cut Summary
64 TMap *fTagCutSumm; //! Tag cut summary map
1aa09fd1 65 // ESD Tags (optional)
66 Bool_t fUseTags; // Flag to use tags
67 TChain *fChainT; //! File with event tags
68 TTree *fTreeT; //! Tree of tags
69 AliRunTag *fRunTag; //! Pointer to the run tag
6ccd727b 70 ClassDef(AliESDInputHandler, 4);
d3dd3d14 71};
72
73#endif