6 // This selector is only dependent on the ESD library, if you need the whole of AliROOT use AliSelectorRL
18 class AliSelector : public TSelector {
21 virtual ~AliSelector();
23 virtual Int_t Version() const {return 1;}
24 virtual void Begin(TTree *tree);
25 virtual void SlaveBegin(TTree *tree);
26 virtual void Init(TTree *tree);
27 virtual Bool_t Notify();
28 virtual Bool_t Process(Long64_t entry);
29 virtual void SlaveTerminate();
30 virtual void Terminate();
33 TTree* GetKinematics();
34 AliHeader* GetHeader();
35 Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries) const;
37 TChain *fChain; //! pointer to the analyzed TTree or TChain
39 AliESD* fESD; //! "ESD" branch in fChain
41 Int_t fCountFiles; // number of processed file
44 void DeleteKinematicsFile();
45 void DeleteHeaderFile();
47 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
49 TFile* fHeaderFile; //! pointer to galice.root, if the file was opened
50 TTree* fHeaderTree; //! holds TE tree of current galice.root
51 AliHeader* fHeader; //! holds pointer to current header
53 ClassDef(AliSelector,0);