]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/FEMTOSCOPY/K0Analysis/AliFemtoK0Analysis.h
K0s code update (Matt Steinpreis)
[u/mrichter/AliRoot.git] / PWGCF / FEMTOSCOPY / K0Analysis / AliFemtoK0Analysis.h
1 #ifndef ALIFEMTOK0ANALYSIS_H
2 #define ALIFEMTOK0ANALYSIS_H
3
4 //
5 // Class AliFemtoK0Analysis
6 //
7 // AliFemtoK0Analysis
8 // author:
9 //        Matthew Steinpreis (matthew.steinpreis@cern.ch)
10 //
11
12 class TH1F;
13 class TH1D;
14 class TH2D;
15 class TH3D;
16 class TProfile;
17 class TRandom3;
18
19 class AliESDEvent;
20 class AliAODEvent;
21 class AliESDtrackCuts;
22 class AliESDpid;
23
24 #include "AliAnalysisTask.h"
25 #include "AliAnalysisTaskSE.h"
26 #include "AliFemtoK0EventCollection.h"
27 #include "AliAODpidUtil.h"
28 #include "AliESDpid.h"
29
30 class AliFemtoK0Analysis : public AliAnalysisTaskSE {
31  public:
32   AliFemtoK0Analysis();
33   AliFemtoK0Analysis(const char *name, bool FieldPositive = kTRUE, bool OnlineCase = kTRUE, bool MeritCase = kTRUE);
34   virtual ~AliFemtoK0Analysis();
35   AliFemtoK0Analysis(const AliFemtoK0Analysis&);
36   AliFemtoK0Analysis& operator=(const AliFemtoK0Analysis&);
37
38  private:
39   
40   virtual void   UserCreateOutputObjects();
41   virtual void   Exec(Option_t *option);
42   virtual void   Terminate(Option_t *);  
43
44   void MyInit();
45   void GetGlobalPositionAtGlobalRadiiThroughTPC(const AliESDtrack *track, const Float_t bfield, Float_t globalPositionsAtRadii[9][3]);
46   
47   enum 
48   {
49     kCentBins    = 16,
50     kZVertexBins = 10,
51     kEventsToMix =  5,
52     kMultLimit   = 300,              //maximum number of v0s, array size
53  
54     ncthetabins = 36,
55     nphibins    = 72
56   };
57
58   bool fFieldPos;
59   bool fOnlineCase;
60   bool fMeritCase;
61   int fEventCount;
62
63   AliFemtoK0EventCollection ***fEC; //!
64   AliFemtoK0Event *fEvt; //!
65
66   TRandom3* fRandomNumber; //!
67   
68   const char     *fName;
69   AliAODEvent    *fAOD; //!    // AOD object
70   TList          *fOutputList; //! Compact Output list
71   AliAODpidUtil  *fPidAOD; //!
72   //AliPIDResponse *fPidAOD; //!
73   AliESDpid      *fPidESD; //!
74   AliESDtrack    *fPosDaughter1;//!
75   AliESDtrack    *fPosDaughter2;//!
76   AliESDtrack    *fNegDaughter1;//!
77   AliESDtrack    *fNegDaughter2;//!
78   
79   ClassDef(AliFemtoK0Analysis, 1); 
80 };
81
82 #endif