]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/AliSelector.h
adding selector that creates histograms needed for systematic uncertainty
[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;
f8e00da3 16
539b6cb4 17class AliSelector : public TSelector {
18 public:
ee998961 19 AliSelector();
539b6cb4 20 virtual ~AliSelector();
21
22 virtual Int_t Version() const {return 1;}
16e24ca3 23 virtual void Begin(TTree*);
24 virtual void SlaveBegin(TTree* tree);
539b6cb4 25 virtual void Init(TTree *tree);
26 virtual Bool_t Notify();
27 virtual Bool_t Process(Long64_t entry);
28 virtual void SlaveTerminate();
29 virtual void Terminate();
30
31 protected:
32 TTree* GetKinematics();
18be36ae 33 void CheckOptions();
4dd2ad81 34
16e24ca3 35 TTree *fTree; //! pointer to the TTree containing the events
79ab56b9 36 AliESD* fESD; //! "ESD" branch in fChain
f8e00da3 37 Int_t fCountFiles; // number of processed file
539b6cb4 38
39 private:
ee998961 40 void DeleteKinematicsFile();
dc740de4 41
42 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
539b6cb4 43
539b6cb4 44 ClassDef(AliSelector,0);
45};
46
47#endif