1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * See cxx source for full Copyright notice *
4 **************************************************************************/
6 //----------------------------------------------------------------------------------
7 // Class AliRsnAnalysisSimpleTask
8 // ------------------------
9 // Reader for conversion of ESD output into the internal format
10 // used for resonance study.
12 // original author: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it)
14 // adapted for Analysis Framework
15 // by : R. Vernet (email: renaud.vernet@cern.ch)
16 //----------------------------------------------------------------------------------
18 #ifndef AliRsnAnalysisSimpleTask_H
19 #define AliRsnAnalysisSimpleTask_H
21 #include "AliAnalysisTask.h"
29 class AliRsnAnalyzerSimple;
31 class AliRsnAnalysisSimpleTask : public AliAnalysisTask
35 AliRsnAnalysisSimpleTask();
36 AliRsnAnalysisSimpleTask(const char *name);
37 virtual ~AliRsnAnalysisSimpleTask() { }
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);
46 void SetReader(AliRsnReader *reader) {fReader = reader;}
47 void SetPID(AliRsnPID *pid) {fPID = pid;}
48 void SetAnalyzer(AliRsnAnalyzerSimple *analyzer) {fAnalyzer = analyzer;}
52 AliRsnAnalysisSimpleTask(const AliRsnAnalysisSimpleTask&);
53 AliRsnAnalysisSimpleTask& operator=(const AliRsnAnalysisSimpleTask&);
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
63 ClassDef(AliRsnAnalysisSimpleTask, 1); // implementation of RsnReader as ReaderTaskSE