]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliSelector.h
small fix
[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     Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries) const;
34
35     TTree          *fTree;     //! pointer to the TTree containing the events
36     AliESD*          fESD;     //! "ESD" branch in fChain
37     Int_t fCountFiles;         // number of processed file
38
39  private:
40     void DeleteKinematicsFile();
41
42     TFile*        fKineFile;   //! pointer to Kinematics.root if the file was opened
43
44   ClassDef(AliSelector,0);
45 };
46
47 #endif