]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliSelector.h
07c0ce265dd3de6c2bf6fb88a9f309d73d20c60b
[u/mrichter/AliRoot.git] / PWG0 / AliSelector.h
1 /* $Id$ */
2
3 #ifndef ALISELECTOR_H
4 #define ALISELECTOR_H
5
6 // This selector is only dependent on the ESD library, if you need the whole of AliROOT use AliSelectorRL
7
8 #include <TSelector.h>
9
10 class TFile;
11 class TChain;
12 class TTree;
13 class TParticle;
14
15 class AliESD;
16
17 class AliSelector : public TSelector {
18   public:
19     AliSelector();
20     virtual ~AliSelector();
21
22     virtual Int_t   Version() const {return 1;}
23     virtual void    Begin(TTree*);
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();
33
34     TTree          *fTree;     //! pointer to the TTree containing the events
35     AliESD*          fESD;     //! "ESD" branch in fChain
36     Int_t fCountFiles;         // number of processed file
37
38  private:
39     void DeleteKinematicsFile();
40
41     TFile*        fKineFile;   //! pointer to Kinematics.root if the file was opened
42
43   ClassDef(AliSelector,0);
44 };
45
46 #endif