]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/AliSelector.h
Iterative procedure on Delta Phi in order to find a vertex Z coordinate for events...
[u/mrichter/AliRoot.git] / PWG0 / AliSelector.h
CommitLineData
dc740de4 1/* $Id$ */
2
539b6cb4 3#ifndef ALISELECTOR_H
4#define ALISELECTOR_H
5
ee998961 6// This selector is only dependent on the ESD library, if you need the whole of AliROOT use AliSelectorRL
7
539b6cb4 8#include <TSelector.h>
539b6cb4 9
f8e00da3 10class TFile;
11class TChain;
12class TTree;
4dd2ad81 13class TParticle;
14
f8e00da3 15class AliESD;
16class AliHeader;
17
539b6cb4 18class AliSelector : public TSelector {
19 public:
ee998961 20 AliSelector();
539b6cb4 21 virtual ~AliSelector();
22
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();
31
32 protected:
33 TTree* GetKinematics();
dc740de4 34 AliHeader* GetHeader();
4dd2ad81 35 Bool_t IsPrimaryCharged(TParticle* aParticle, Int_t aTotalPrimaries) const;
36
539b6cb4 37 TChain *fChain; //! pointer to the analyzed TTree or TChain
38
79ab56b9 39 AliESD* fESD; //! "ESD" branch in fChain
dc740de4 40
f8e00da3 41 Int_t fCountFiles; // number of processed file
539b6cb4 42
43 private:
ee998961 44 void DeleteKinematicsFile();
dc740de4 45 void DeleteHeaderFile();
46
47 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
539b6cb4 48
dc740de4 49 TFile* fHeaderFile; //! pointer to galice.root, if the file was opened
f8e00da3 50 TTree* fHeaderTree; //! holds TE tree of current galice.root
51 AliHeader* fHeader; //! holds pointer to current header
539b6cb4 52
53 ClassDef(AliSelector,0);
54};
55
56#endif