make target for creating PROOF par archive: PWG0base.par and for testing test-PWG0bas...
[u/mrichter/AliRoot.git] / PWG0 / AliSelector.h
CommitLineData
539b6cb4 1#ifndef ALISELECTOR_H
2#define ALISELECTOR_H
3
ee998961 4// This selector is only dependent on the ESD library, if you need the whole of AliROOT use AliSelectorRL
5
539b6cb4 6#include <TFile.h>
7#include <TSelector.h>
8#include <TChain.h>
9
10#include <AliESD.h>
11#include <AliHeader.h>
539b6cb4 12
4dd2ad81 13class TParticle;
14
539b6cb4 15class AliSelector : public TSelector {
16 public:
ee998961 17 AliSelector();
539b6cb4 18 virtual ~AliSelector();
19
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();
28
29 protected:
30 TTree* GetKinematics();
4dd2ad81 31 Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries) const;
32
539b6cb4 33 TChain *fChain; //! pointer to the analyzed TTree or TChain
34
79ab56b9 35 AliESD* fESD; //! "ESD" branch in fChain
36 AliHeader* fHeader; //! "TE" branch in fChain, contains event header
539b6cb4 37
38 private:
ee998961 39 void DeleteKinematicsFile();
539b6cb4 40
ee998961 41 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
539b6cb4 42
43 ClassDef(AliSelector,0);
44};
45
46#endif