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 */
8 //-------------------------------------------------------------------------
9 // ESD Input Handler realisation of the AliVEventHandler interface
10 // Author: Andreas Morsch, CERN
11 //-------------------------------------------------------------------------
13 #include "AliInputEventHandler.h"
14 #include "AliESDEvent.h"
20 class AliESDInputHandler : public AliInputEventHandler {
24 AliESDInputHandler(const char* name, const char* title);
25 virtual ~AliESDInputHandler();
26 virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
27 virtual Bool_t Init(TTree* tree, Option_t* opt);
28 virtual Bool_t BeginEvent(Long64_t entry);
29 virtual Bool_t Notify() { return AliVEventHandler::Notify(); };
30 virtual Bool_t Notify(const char* path);
31 virtual Bool_t FinishEvent();
32 AliESDEvent *GetEvent() const {return fEvent;}
33 Option_t *GetAnalysisType() const {return fAnalysisType;}
34 Option_t *GetDataType() const;
35 // Tag cut summary analysis
36 Int_t GetNEventAcceptedInFile();
37 Int_t GetNEventRejectedInFile();
38 Bool_t GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected);
39 Int_t GetNFilesEmpty();
41 AliESDEvent *GetHLTEvent() const {return fHLTEvent;}
42 TTree *GetHLTTree() const {return fHLTTree;}
43 void SetReadHLT() {fUseHLT = kTRUE;}
45 void SetReadTags() {fUseTags = kTRUE;}
46 AliRunTag *GetRunTag() const {return fRunTag;}
49 AliESDInputHandler(const AliESDInputHandler& handler);
50 AliESDInputHandler& operator=(const AliESDInputHandler& handler);
53 AliESDEvent *fEvent; //! Pointer to the event
54 Option_t *fAnalysisType; //! local, proof, grid
55 Int_t fNEvents; //! Number of events in the current tree
57 AliESDEvent *fHLTEvent; //! Pointer to the HLT Event (if present)
58 TTree *fHLTTree; //! Pointer to the HLT Event (if present)
59 Bool_t fUseHLT; // Flag to access HLT Events
60 // ESD Tag Cut Summary
61 TMap *fTagCutSumm; //! Tag cut summary map
62 // ESD Tags (optional)
63 Bool_t fUseTags; // Flag to use tags
64 TChain *fChainT; //! File with event tags
65 TTree *fTreeT; //! Tree of tags
66 AliRunTag *fRunTag; //! Pointer to the run tag
67 ClassDef(AliESDInputHandler, 4);