1) Added "Makefile support": LinkDef + pkg file, made header files compliant
[u/mrichter/AliRoot.git] / PWG0 / AliSelector.h
CommitLineData
539b6cb4 1#ifndef ALISELECTOR_H
2#define ALISELECTOR_H
3
4#include <TFile.h>
5#include <TSelector.h>
6#include <TChain.h>
7
8#include <AliESD.h>
9#include <AliHeader.h>
10#include <AliRun.h>
11#include <AliRunLoader.h>
12
13class AliSelector : public TSelector {
14 public:
15 AliSelector(TTree *tree=0);
16 virtual ~AliSelector();
17
18 virtual Int_t Version() const {return 1;}
19 virtual void Begin(TTree *tree);
20 virtual void SlaveBegin(TTree *tree);
21 virtual void Init(TTree *tree);
22 virtual Bool_t Notify();
23 virtual Bool_t Process(Long64_t entry);
24 virtual void SlaveTerminate();
25 virtual void Terminate();
26
27 protected:
28 TTree* GetKinematics();
29 AliRun* GetAliRun();
30
31 TChain *fChain; //! pointer to the analyzed TTree or TChain
32
33 AliESD* fESD;
34 AliHeader* fHeader;
35
36 AliRunLoader* fRunLoader;
37
38 private:
39 void DeleteKinematicsFile();
40 void DeleteRunLoader();
41
42 TFile* fKineFile;
43
44 ClassDef(AliSelector,0);
45};
46
47#endif