]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnAnalysisSE.h
Package revised - New AnalysisTask's - Added more functions
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnAnalysisSE.h
1 //
2 // Class AliRsnAnalysisSE
3 //
4 // TODO
5 //
6 // authors: Martin Vala (martin.vala@cern.ch)
7 //          Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
8 //
9 #ifndef ALIRSNANALYSISAT_H
10 #define ALIRSNANALYSISAT_H
11
12 #include <TH1.h>
13
14 #include "AliRsnEventBuffer.h"
15 #include "AliRsnPair.h"
16 #include "AliRsnAnalysisTaskSEBase.h"
17
18 class AliRsnEvent;
19
20 class AliRsnAnalysisSE : public AliRsnAnalysisTaskSEBase
21 {
22   public:
23     AliRsnAnalysisSE(const char *name = "AliRsnAnalysisSE");
24     AliRsnAnalysisSE(const AliRsnAnalysisSE& copy): AliRsnAnalysisTaskSEBase(copy),
25        fPairMgrs(0),fOutList(0x0),fRsnEventBuffer(0x0),fNumOfEventsInBuffer(100) {}
26     AliRsnAnalysisSE& operator= (const AliRsnAnalysisSE&) {return *this;}
27     ~AliRsnAnalysisSE();
28
29     virtual void    InitIOVars();
30 //     virtual void    LocalInit();
31 //     virtual Bool_t  Notify();
32     virtual void    UserCreateOutputObjects();
33     virtual void    UserExec(Option_t *option);
34     virtual void    Terminate(Option_t *);
35
36     void AddPairMgr(AliRsnPairMgr*pairmgr);
37
38     void SetNumOfEventsInBuffer(const Int_t& theValue) { fNumOfEventsInBuffer = theValue; }
39     Int_t GetNumOfEventsInBuffer() const { return fNumOfEventsInBuffer; }
40
41
42   private:
43
44     TObjArray         fPairMgrs;
45
46     TList             *fOutList;              // List of output
47     AliRsnEventBuffer *fRsnEventBuffer;       // event buffer
48     Int_t             fNumOfEventsInBuffer;  // number of events in buffer
49
50     void            ProcessEventAnalysis(AliRsnEvent *curEvent);
51     void            PostEventProcess(const Short_t &index=0);
52
53     ClassDef(AliRsnAnalysisSE, 1)
54 };
55
56 #endif