]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG0/AliSelector.h
o) Added DrawHistograms function
[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
79ab56b9 33 AliESD* fESD; //! "ESD" branch in fChain
34 AliHeader* fHeader; //! "TE" branch in fChain, contains event header
539b6cb4 35
36 private:
37 void DeleteKinematicsFile();
38 void DeleteRunLoader();
39
79ab56b9 40 TFile* fKineFile; //! pointer to Kinematics.root if the file was opened
41 AliRunLoader* fRunLoader; //! pointer to the RunLoader if galice.root was opened
539b6cb4 42
43 ClassDef(AliSelector,0);
44};
45
46#endif