]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/AliRsnInputHandler.h
Recovered charge and phi values in AliRsnValueDaughter (overwritten by wrong commit)
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnInputHandler.h
1 //
2 // Class AliRsnInputHandler
3 //
4 // AliRsnInputHandler
5 // TODO example
6 // author:
7 //        Martin Vala (martin.vala@cern.ch)
8 //
9
10 #ifndef ALIRSNINPUTHANDLER_H
11 #define ALIRSNINPUTHANDLER_H
12
13 #include "AliInputEventHandler.h"
14 //#include "AliRsnPIDManager.h"
15 #include "AliRsnDaughterSelector.h"
16
17 class AliRsnEvent;
18 class AliRsnCutSet;
19 class AliRsnInputHandler : public AliInputEventHandler {
20
21 public:
22    AliRsnInputHandler(const char *name = "rsnInputHandler");
23    AliRsnInputHandler(const AliRsnInputHandler &handler);
24    AliRsnInputHandler &operator=(const AliRsnInputHandler &handler);
25    virtual ~AliRsnInputHandler();
26
27    // From the interface
28    virtual Bool_t  Init(Option_t *opt);
29    virtual Bool_t  Init(TTree *tree, Option_t *opt);
30    virtual Bool_t  BeginEvent(Long64_t entry);
31    virtual Bool_t  FinishEvent();
32    virtual Bool_t  Notify();
33    virtual Bool_t  Notify(const char *path);
34    virtual Bool_t  GetEntry();
35
36    void SetEventCuts(AliRsnCutSet *cuts) {fRsnEventCuts = cuts;}
37    AliRsnEvent *GetRsnEvent() { return fRsnEvent; }
38    //AliRsnPIDManager *GetPIDManager() { return &fRsnPIDManager; }
39    AliRsnDaughterSelector *GetSelector() { return &fRsnSelector; }
40
41 private:
42
43    AliRsnEvent *fRsnEvent;               //! pointer to current event
44    AliRsnDaughterSelector fRsnSelector;  //  pointer to selector for building lists
45    AliRsnCutSet *fRsnEventCuts;          //  unique set of cuts to be used for whole analysis
46
47    ClassDef(AliRsnInputHandler, 1)
48 };
49
50 #endif