]>
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 <TFile.h> |
9 | #include <TSelector.h> | |
10 | #include <TChain.h> | |
11 | ||
12 | #include <AliESD.h> | |
13 | #include <AliHeader.h> | |
539b6cb4 | 14 | |
4dd2ad81 | 15 | class TParticle; |
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;} | |
23 | virtual void Begin(TTree *tree); | |
24 | virtual void SlaveBegin(TTree *tree); | |
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(); | |
dc740de4 | 33 | AliHeader* GetHeader(); |
4dd2ad81 | 34 | Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries) const; |
35 | ||
539b6cb4 | 36 | TChain *fChain; //! pointer to the analyzed TTree or TChain |
37 | ||
79ab56b9 | 38 | AliESD* fESD; //! "ESD" branch in fChain |
dc740de4 | 39 | |
40 | Int_t fCountFiles; // Nr. of current file | |
539b6cb4 | 41 | |
42 | private: | |
ee998961 | 43 | void DeleteKinematicsFile(); |
dc740de4 | 44 | void DeleteHeaderFile(); |
45 | ||
46 | TFile* fKineFile; //! pointer to Kinematics.root if the file was opened | |
539b6cb4 | 47 | |
dc740de4 | 48 | TFile* fHeaderFile; //! pointer to galice.root, if the file was opened |
49 | TTree* fHeaderTree; //! | |
50 | AliHeader* fHeader; //! | |
539b6cb4 | 51 | |
52 | ClassDef(AliSelector,0); | |
53 | }; | |
54 | ||
55 | #endif |