]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnReaderTaskSE.h
Improved precision in SDD raw data decompression from 8 to 10 bits (F. Prino)
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnReaderTaskSE.h
1 //
2 // Class AliRsnReaderTaskSE
3 //
4 // An AnalysisTask object to convert any kind of source event type (ESD/AOD/MC)
5 // into the RSN internal format (AliRsnEvent).
6 // The output of this task is a TTree with converted events, which is saved in a file
7 // and can then be processed as many times as desired, to build invariant mass spectra.
8 // ---
9 // original author: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
10 // adapted for Analysis Framework by: R. Vernet (renaud.vernet@cern.ch)
11 //
12
13 #ifndef AliRsnReaderTaskSE_H
14 #define AliRsnReaderTaskSE_H
15
16 #include "AliRsnAnalysisTaskSEBase.h"
17
18 class AliRsnPID;
19 class AliESDEvent;
20 class AliRsnReader;
21
22 class AliRsnReaderTaskSE : public AliRsnAnalysisTaskSEBase
23 {
24   public:
25
26     AliRsnReaderTaskSE();
27     AliRsnReaderTaskSE(const char *name);
28     virtual ~AliRsnReaderTaskSE() {Clear();}
29
30     // Implementation of interface methods
31     virtual void UserCreateOutputObjects();
32     virtual void Init();
33     virtual void LocalInit() {Init();}
34     virtual void UserExec(Option_t *option);
35     virtual void Terminate(Option_t *option);
36
37 //     void          SetReader(AliRsnReader *reader) {fReader = reader;}
38 //     void          SetPID(AliRsnPID *pid) {fPID = pid;}
39 //     AliRsnReader* GetReader() {return fReader;}
40 //     AliRsnPID*    GetPID() {return fPID;}
41     AliRsnEvent*  GetCurrentEvent() {return fRsnEvent;}
42
43   private:
44
45     AliRsnReaderTaskSE(const AliRsnReaderTaskSE &copy) :
46         AliRsnAnalysisTaskSEBase(copy),fRsnEvent(0x0) { /*nothing*/ }
47     AliRsnReaderTaskSE& operator=(const AliRsnReaderTaskSE&)
48     { /*nothing*/ return (*this); }
49
50     AliRsnEvent  *fRsnEvent;   // output events in the AliRsnEvent format
51
52     ClassDef(AliRsnReaderTaskSE, 1); // implementation of RsnReader as AnalysisTaskSE
53 };
54
55 #endif