]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnAnalysisSimpleTask.h
Package upgrade.
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnAnalysisSimpleTask.h
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * See cxx source for full Copyright notice                               *
4  **************************************************************************/
5
6 //----------------------------------------------------------------------------------
7 //  Class AliRsnAnalysisSimpleTask
8 // ------------------------
9 // Reader for conversion of ESD output into the internal format
10 // used for resonance study.
11 // ---
12 // original author: A. Pulvirenti             (email: alberto.pulvirenti@ct.infn.it)
13 // ---
14 // adapted for Analysis Framework
15 // by    : R. Vernet                          (email: renaud.vernet@cern.ch)
16 //----------------------------------------------------------------------------------
17
18 #ifndef AliRsnAnalysisSimpleTask_H
19 #define AliRsnAnalysisSimpleTask_H
20
21 #include "AliAnalysisTask.h"
22
23 class TList;
24 class AliVEvent;
25 class AliMCEvent;
26 class AliRsnPID;
27 class AliRsnReader;
28 class AliRsnEvent;
29 class AliRsnAnalyzerSimple;
30
31 class AliRsnAnalysisSimpleTask : public AliAnalysisTask
32 {
33 public:
34
35     AliRsnAnalysisSimpleTask();
36     AliRsnAnalysisSimpleTask(const char *name);
37     virtual ~AliRsnAnalysisSimpleTask() { }
38     
39     // Implementation of interface methods
40     virtual void ConnectInputData (Option_t *);
41     virtual void CreateOutputObjects();
42     virtual void Exec (Option_t *option);
43     virtual void Terminate(Option_t *option);
44     
45     // setters
46     void SetReader(AliRsnReader *reader) {fReader = reader;}
47     void SetPID(AliRsnPID *pid) {fPID = pid;}
48     void SetAnalyzer(AliRsnAnalyzerSimple *analyzer) {fAnalyzer = analyzer;}
49     
50 private:
51
52     AliRsnAnalysisSimpleTask(const AliRsnAnalysisSimpleTask&);
53     AliRsnAnalysisSimpleTask& operator=(const AliRsnAnalysisSimpleTask&);
54
55     AliVEvent*            fEvent;      // input event
56         AliMCEvent*           fMC;         // corresponding MC event
57     AliRsnReader*         fReader;     // read manager
58     AliRsnPID*            fPID;        // particle identification manager
59     AliRsnAnalyzerSimple* fAnalyzer;   // analyzer
60     AliRsnEvent*          fCurrEvent;  // current event pointer -> for moving among methods
61     TList*                fHistograms; // list of output histograms
62
63     ClassDef(AliRsnAnalysisSimpleTask, 1); // implementation of RsnReader as ReaderTaskSE
64 };
65
66 #endif