]>
Commit | Line | Data |
---|---|---|
dc740de4 | 1 | /* $Id$ */ |
2 | ||
539b6cb4 | 3 | #ifndef ALISELECTOR_H |
4 | #define ALISELECTOR_H | |
5 | ||
ee998961 | 6 | // This selector is only dependent on the ESD library, if you need the whole of AliROOT use AliSelectorRL |
7 | ||
539b6cb4 | 8 | #include <TSelector.h> |
539b6cb4 | 9 | |
f8e00da3 | 10 | class TFile; |
11 | class TChain; | |
12 | class TTree; | |
4dd2ad81 | 13 | class TParticle; |
14 | ||
f8e00da3 | 15 | class AliESD; |
f8e00da3 | 16 | |
539b6cb4 | 17 | class AliSelector : public TSelector { |
18 | public: | |
ee998961 | 19 | AliSelector(); |
539b6cb4 | 20 | virtual ~AliSelector(); |
21 | ||
22 | virtual Int_t Version() const {return 1;} | |
16e24ca3 | 23 | virtual void Begin(TTree*); |
24 | virtual void SlaveBegin(TTree* tree); | |
539b6cb4 | 25 | virtual void Init(TTree *tree); |
26 | virtual Bool_t Notify(); | |
27 | virtual Bool_t Process(Long64_t entry); | |
28 | virtual void SlaveTerminate(); | |
29 | virtual void Terminate(); | |
30 | ||
31 | protected: | |
32 | TTree* GetKinematics(); | |
18be36ae | 33 | void CheckOptions(); |
4dd2ad81 | 34 | |
16e24ca3 | 35 | TTree *fTree; //! pointer to the TTree containing the events |
79ab56b9 | 36 | AliESD* fESD; //! "ESD" branch in fChain |
f8e00da3 | 37 | Int_t fCountFiles; // number of processed file |
539b6cb4 | 38 | |
39 | private: | |
ee998961 | 40 | void DeleteKinematicsFile(); |
dc740de4 | 41 | |
42 | TFile* fKineFile; //! pointer to Kinematics.root if the file was opened | |
539b6cb4 | 43 | |
61385583 | 44 | AliSelector(const AliSelector&); |
45 | AliSelector& operator=(const AliSelector&); | |
46 | ||
539b6cb4 | 47 | ClassDef(AliSelector,0); |
48 | }; | |
49 | ||
50 | #endif |