2 // Class AliRsnReaderTaskSE
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.
9 // original author: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
10 // adapted for Analysis Framework by: R. Vernet (renaud.vernet@cern.ch)
13 #ifndef AliRsnReaderTaskSE_H
14 #define AliRsnReaderTaskSE_H
16 #include "AliRsnAnalysisTaskSEBase.h"
22 class AliRsnReaderTaskSE : public AliRsnAnalysisTaskSEBase
27 AliRsnReaderTaskSE(const char *name);
28 virtual ~AliRsnReaderTaskSE() {Clear();}
30 // Implementation of interface methods
31 virtual void UserCreateOutputObjects();
33 virtual void LocalInit() {Init();}
34 virtual void UserExec(Option_t *option);
35 virtual void Terminate(Option_t *option);
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;}
45 AliRsnReaderTaskSE(const AliRsnReaderTaskSE ©) :
46 AliRsnAnalysisTaskSEBase(copy),fRsnEvent(0x0) { /*nothing*/ }
47 AliRsnReaderTaskSE& operator=(const AliRsnReaderTaskSE&)
48 { /*nothing*/ return (*this); }
50 AliRsnEvent *fRsnEvent; // output events in the AliRsnEvent format
52 ClassDef(AliRsnReaderTaskSE, 1); // implementation of RsnReader as AnalysisTaskSE