]>
Commit | Line | Data |
---|---|---|
8d169fb2 | 1 | #ifndef ALIANALYSISTASKRL_H |
2 | #define ALIANALYSISTASKRL_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | // Author: Panos Christakoglou, 31/05/2006 | |
8 | ||
9 | //============================================================================ | |
10 | // AliAnalysysTaskRL - Class representing a basic analysis task. | |
11 | // Access to the run loader | |
12 | //============================================================================ | |
13 | ||
14 | #include "AliAnalysisTask.h" | |
15 | ||
16 | class TTree; | |
17 | ||
18 | class AliRunLoader; | |
19 | class AliHeader; | |
20 | class AliStack; | |
21 | ||
22 | class AliAnalysisTaskRL : public AliAnalysisTask { | |
23 | public: | |
24 | AliAnalysisTaskRL(); | |
25 | AliAnalysisTaskRL(const char *name, const char *title); | |
26 | virtual ~AliAnalysisTaskRL(); | |
981f2614 | 27 | |
28 | virtual Bool_t Notify(); | |
8d169fb2 | 29 | |
30 | protected: | |
31 | Bool_t GetEntry(Long64_t ientry); | |
32 | ||
33 | AliRunLoader *GetRunLoader(); | |
34 | AliHeader *GetHeader(); | |
35 | AliStack *GetStack(); | |
36 | ||
37 | private: | |
38 | void DeleteRunLoader(); | |
39 | ||
981f2614 | 40 | TTree *fTree; //! pointer to the ESD tree |
8d169fb2 | 41 | AliRunLoader *fRunLoader; //! pointer to the RunLoader if galice.root was opened |
42 | 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 | |
43 | Bool_t fHeaderLoaded; // determines if the header is properly loaded | |
6b61a3ef | 44 | |
8d169fb2 | 45 | AliAnalysisTaskRL(const AliAnalysisTaskRL&); |
46 | AliAnalysisTaskRL& operator=(const AliAnalysisTaskRL&); | |
47 | ||
981f2614 | 48 | ClassDef(AliAnalysisTaskRL,2); // Class describing an analysis task |
8d169fb2 | 49 | }; |
50 | #endif |