11 #include <AliRunLoader.h>
15 class AliSelector : public TSelector {
17 AliSelector(TTree *tree=0);
18 virtual ~AliSelector();
20 virtual Int_t Version() const {return 1;}
21 virtual void Begin(TTree *tree);
22 virtual void SlaveBegin(TTree *tree);
23 virtual void Init(TTree *tree);
24 virtual Bool_t Notify();
25 virtual Bool_t Process(Long64_t entry);
26 virtual void SlaveTerminate();
27 virtual void Terminate();
30 TTree* GetKinematics();
33 Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries) const;
35 TChain *fChain; //! pointer to the analyzed TTree or TChain
37 AliESD* fESD; //! "ESD" branch in fChain
38 AliHeader* fHeader; //! "TE" branch in fChain, contains event header
41 void DeleteKinematicsFile();
42 void DeleteRunLoader();
44 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
45 AliRunLoader* fRunLoader; //! pointer to the RunLoader if galice.root was opened
47 ClassDef(AliSelector,0);