]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliRecoInputHandler.h
Flag Secondaries from Weak decays and Material also for sub events
[u/mrichter/AliRoot.git] / STEER / STEER / AliRecoInputHandler.h
1 #ifndef ALIRECOINPUTHANDLER_H
2 #define ALIRECOINPUTHANDLER_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //-------------------------------------------------------------------------
7 //     Reconstruction-specific input handler
8 //     Author: Andrei Gheata, CERN
9 //-------------------------------------------------------------------------
10
11 #ifndef ALIESDINPUTHANDLER_H
12 #include "AliESDInputHandler.h"
13 #endif
14
15 class AliReconstruction;
16
17 class AliRecoInputHandler : public AliESDInputHandler {
18
19  public:
20     AliRecoInputHandler() {}
21     AliRecoInputHandler(const char* name, const char* title);
22     virtual ~AliRecoInputHandler() {}
23     virtual Bool_t       Notify() { return AliESDInputHandler::Notify(); };
24     virtual Bool_t       Notify(const char *) {return kTRUE;}
25     virtual Bool_t       Init(Option_t* opt) {return AliESDInputHandler::Init(opt);}
26     virtual Bool_t       Init(TTree* tree, Option_t* opt="LOCAL");
27     virtual Bool_t       BeginEvent(Long64_t entry);
28     virtual Bool_t       FinishEvent() {return kTRUE;}
29 //    void                 CheckSelectionMask();
30 //    AliESDEvent         *GetEvent()        const {return fEvent;}
31 //    Option_t            *GetAnalysisType() const {return fAnalysisType;}
32 //    Option_t            *GetDataType() const;
33     // Tag cut summary analysis
34 //    Int_t                GetNEventAcceptedInFile();
35 //    Int_t                GetNEventRejectedInFile();
36 //    Bool_t               GetCutSummaryForChain(Int_t *aTotal, Int_t *aAccepted, Int_t *aRejected);
37 //    Int_t                GetNFilesEmpty();
38     // HLT  analysis
39 //    AliESDEvent         *GetHLTEvent()     const {return fHLTEvent;}
40 //    TTree               *GetHLTTree()      const {return fHLTTree;}    
41 //    void                 SetReadHLT()            {fUseHLT = kTRUE;}
42     // Friends&Co
43 //    AliESDfriend        *GetESDfriend()    const {return fFriend;}
44 //    void                 SetReadFriends(Bool_t flag)   {fReadFriends = flag;}
45 //    void                 SetFriendFileName(const char *fname)  {fFriendFileName = fname;}
46     // Tag analysis
47 //    void                 SetReadTags()           {fUseTags = kTRUE;}
48 //    AliRunTag           *GetRunTag() const       {return fRunTag;}
49 //    const AliEventTag   *GetEventTag() const     {return fEventTag;}
50     // Get the statistics object (currently TH2). Option can be BIN0.
51 //    virtual TObject     *GetStatistics(Option_t *option="") const;
52
53     //PID response
54 //    virtual AliPIDResponse* GetPIDResponse() {return (AliPIDResponse*)fESDpid;}
55 //    virtual void CreatePIDResponse(Bool_t isMC=kFALSE);
56 //    AliESDpid           *GetESDpid()       const {return fESDpid;}
57 //    void                 SetESDpid(AliESDpid* pid)     {fESDpid = pid;}
58       
59  private:
60     AliRecoInputHandler(const AliESDInputHandler& handler);             
61     AliRecoInputHandler& operator=(const AliESDInputHandler& handler);  
62     // Private setters used by AliReconstruction
63     friend class AliReconstruction;
64     void                 SetEvent(AliESDEvent *event)          {fEvent = event;}
65     void                 SetESDfriend(AliESDfriend *esdfriend) {fFriend = esdfriend;}
66     void                 SetHLTEvent(AliESDEvent *hltevent)    {fHLTEvent = hltevent;}
67     void                 SetHLTTree(TTree *hlttree)            {fHLTTree = hlttree;}
68     
69     ClassDef(AliRecoInputHandler, 1);
70 };
71
72 #endif