Line data Source code
1 : //
2 : // Class AliPIDResponseInputHandler
3 : //
4 : // AliPIDResponseInputHandler
5 : // TODO example
6 : // authors:
7 : // Jens Wiechula (jens.wiechula@cern.ch)
8 : // Martin Vala (martin.vala@cern.ch)
9 : //
10 :
11 : #ifndef ALIPIDRESPONSEINPUTHANDLER_H
12 : #define ALIPIDRESPONSEINPUTHANDLER_H
13 :
14 : #include "AliInputEventHandler.h"
15 : class AliPIDResponse;
16 : class AliMultiInputEventHandler;
17 :
18 : class AliPIDResponseInputHandler : public AliInputEventHandler {
19 :
20 : public:
21 : AliPIDResponseInputHandler(const char *name = "PIDResoponseIH");
22 : virtual ~AliPIDResponseInputHandler();
23 :
24 : // From the interface
25 : virtual Bool_t Init(Option_t *opt);
26 : virtual Bool_t Init(TTree *tree, Option_t *opt);
27 : virtual Bool_t BeginEvent(Long64_t entry);
28 : virtual Bool_t FinishEvent();
29 : virtual Bool_t Notify();
30 : virtual Bool_t Notify(const char *path);
31 : virtual Bool_t GetEntry();
32 :
33 0 : void SetIsMC(Bool_t isMC=kTRUE) { fIsMC=isMC; }
34 : private:
35 :
36 : Bool_t fIsMC; // If we run on MC data
37 :
38 : AliPIDResponse *fPIDResponse; //! PID response Handler
39 : Int_t fRun; //! current run number
40 : Int_t fOldRun; //! current run number
41 : Int_t fRecoPass; //! reconstruction pass
42 :
43 : AliMultiInputEventHandler *fMCurrentMutliIH; //! input handler
44 :
45 : //
46 : void SetRecoInfo();
47 :
48 :
49 : AliPIDResponseInputHandler(const AliPIDResponseInputHandler& handler);
50 : AliPIDResponseInputHandler &operator=(const AliPIDResponseInputHandler &handler);
51 :
52 170 : ClassDef(AliPIDResponseInputHandler, 1)
53 :
54 : };
55 :
56 : #endif
|