/* $Id$ */ #ifndef ALISELECTOR_H #define ALISELECTOR_H // This selector is only dependent on the ESD library, if you need the whole of AliROOT use AliSelectorRL #include class TFile; class TChain; class TTree; class TParticle; class AliESD; class AliSelector : public TSelector { public: AliSelector(); virtual ~AliSelector(); virtual Int_t Version() const {return 1;} virtual void Begin(TTree*); virtual void SlaveBegin(TTree* tree); virtual void Init(TTree *tree); virtual Bool_t Notify(); virtual Bool_t Process(Long64_t entry); virtual void SlaveTerminate(); virtual void Terminate(); protected: TTree* GetKinematics(); void CheckOptions(); TTree *fTree; //! pointer to the TTree containing the events AliESD* fESD; //! "ESD" branch in fChain Int_t fCountFiles; // number of processed file private: void DeleteKinematicsFile(); TFile* fKineFile; //! pointer to Kinematics.root if the file was opened AliSelector(const AliSelector&); AliSelector& operator=(const AliSelector&); ClassDef(AliSelector,0); }; #endif