]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliSelectorRL.h
52cc15a554ba12e01584c2203711aa436af24c25
[u/mrichter/AliRoot.git] / PWG0 / AliSelectorRL.h
1 /* $Id$ */
2
3 #ifndef ALISELECTORRL_H
4 #define ALISELECTORRL_H
5
6 // Use this selector, if you have AliROOT installed (at the moment only ESD, STEER + deps)
7
8 #include "AliSelector.h"
9
10 class AliRunLoader;
11 class AliHeader;
12 class AliStack;
13
14 class AliSelectorRL : public AliSelector {
15   public:
16     AliSelectorRL();
17     virtual ~AliSelectorRL();
18
19     virtual Bool_t  Notify();
20     virtual Bool_t  Process(Long64_t entry);
21     virtual void    SlaveTerminate();
22
23  protected:
24     AliRunLoader* GetRunLoader();
25     AliHeader* GetHeader();
26     AliStack* GetStack();
27
28  private:
29     void DeleteRunLoader();
30
31     AliRunLoader* fRunLoader;    //! pointer to the RunLoader if galice.root was opened
32     Bool_t fKinematicsLoaded;    // determines if the stack is properly loaded (AliRunLoader::LoadKinematics() succeeded), this is needed because the GetStack returnes a invalid stack object when the function failed
33     Bool_t fHeaderLoaded;        // determines if the header is properly loaded
34
35     AliSelectorRL(const AliSelectorRL&);
36     AliSelectorRL& operator=(const AliSelectorRL&);
37
38     ClassDef(AliSelectorRL,0);
39 };
40
41 #endif