]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/RESONANCES/AliRsnAnalysisEffSE.h
c5bb885a2e93ae87633595e2f3f421d42b88b6ec
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnAnalysisEffSE.h
1 //
2 // Class AliRsnAnalysisEffSE
3 //
4 // Virtual Class derivated from AliRsnVAnalysisTaskSE which will be base class
5 // for all RSN SE tasks
6 //
7 // authors: Martin Vala (martin.vala@cern.ch)
8 //          Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
9 //
10 #ifndef ALIRSNANALYSISEFFSE_H
11 #define ALIRSNANALYSISEFFSE_H
12
13 #include <TArrayD.h>
14 #include <TArrayI.h>
15 #include <TClonesArray.h>
16
17 #include "AliRsnVAnalysisTaskSE.h"
18 #include "AliRsnEvent.h"
19 #include "AliRsnMother.h"
20
21 class AliPID;
22
23 class AliCFContainer;
24
25 class AliRsnPairDef;
26 class AliRsnPIDIndex;
27 class AliRsnPIDDefESD;
28 class AliRsnCutSet;
29 class AliRsnCutManager;
30 class AliRsnValue;
31
32 class AliRsnAnalysisManager;
33 class AliRsnAnalysisEffSE : public AliRsnVAnalysisTaskSE
34 {
35
36   public:
37     AliRsnAnalysisEffSE(const char *name = "AliRsnAnalysisTaskEffSE");
38     AliRsnAnalysisEffSE(const AliRsnAnalysisEffSE& copy);
39     virtual ~AliRsnAnalysisEffSE() {;};
40
41     // Implement this
42     virtual void    RsnUserCreateOutputObjects();
43     virtual void    RsnUserExec(Option_t*);
44     virtual void    RsnTerminate(Option_t*);
45
46     // settings
47     AliRsnCutSet*   GetEventCuts() {return &fEventCuts;}
48     void            AddPairDef(AliRsnPairDef *pairDef);
49     void            AddStepMC(AliRsnCutManager *mgr);
50     void            AddStepESD(AliRsnCutManager *mgr);
51     void            AddAxis(AliRsnValue *axis);
52
53   private:
54
55     AliRsnAnalysisEffSE& operator=(const AliRsnAnalysisEffSE& /*copy*/) {return *this;}
56     void                 ProcessEvent(AliRsnPairDef *pairDef);
57     void                 ProcessEventMC(AliRsnPairDef *pairDef);
58     void                 ProcessEventESD(AliRsnPairDef *pairDef);
59     void                 FillContainer(AliCFContainer *cont, const TObjArray *stepList, AliRsnPairDef *pd, Int_t firstOutStep);
60     Int_t                FindESDtrack(Int_t label, AliESDEvent *esd, Bool_t rejectFakes);
61     TArrayI              FindESDtracks(Int_t label, AliESDEvent *esd);
62
63     Bool_t                fUseITSSA;                // switch to use ITS standalone tracks
64     Bool_t                fUseGlobal;               // switch to use global tracks
65     TObjArray             fStepListMC;              // list of cut managers for all steps with MC
66     TObjArray             fStepListESD;             // list of cut managers for all steps with ESD
67     TClonesArray          fAxisList;                // list of axes of efficiency plots
68     TObjArray             fPairDefList;             // decay channels
69     TList                *fContainerList;           // list of CF containers
70     TList                *fOutList;                 // global output list
71     TArrayD               fVar;                     // list of variables of the container
72     AliRsnMother          fPair;                    // interface to pair
73     AliRsnDaughter        fDaughter[2];             // interface to tracks
74     AliRsnCutSet          fEventCuts;               // event cuts
75
76     ClassDef(AliRsnAnalysisEffSE, 1)
77 };
78
79 #endif