]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/SPECTRA/AliAnalysisTaskCheckCascade.h
Extensive Upgrade :
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliAnalysisTaskCheckCascade.h
1 #ifndef ALIANALYSISTASKCHECKCASCADE_H
2 #define ALIANALYSISTASKCHECKCASCADE_H
3
4 /*  See cxx source for full Copyright notice */
5
6 //-----------------------------------------------------------------
7 //                 AliAnalysisTaskCheckCascade class
8 //            (AliAnalysisTaskCheckCascade)
9 //            This task has four roles :
10 //              1. QAing the Cascades from ESD and AOD
11 //                 Origin:  AliAnalysisTaskESDCheckV0 by B.H. Nov2007, hippolyt@in2p3.fr
12 //              2. Prepare the plots which stand as raw material for yield extraction (wi/wo PID)
13 //              3. Supply an AliCFContainer meant to define the optimised topological selections
14 //              4. Rough azimuthal correlation study (Eta, Phi)
15 //            Adapted to Cascade : A.Maire Mar2008, antonin.maire@ires.in2p3.fr
16 //            Modified :           A.Maire Nov2009, antonin.maire@ires.in2p3.fr
17 //-----------------------------------------------------------------
18
19 class TList;
20 class TH1F;
21 class TH2F;
22 class TH3F;
23 class TVector3;
24 class THnSparse;
25  
26 class AliTPCpidESD;
27 class AliCFContainer;
28
29
30 #include "TString.h"
31
32 #include "AliAnalysisTaskSE.h"
33
34 class AliAnalysisTaskCheckCascade : public AliAnalysisTaskSE {
35  public:
36   AliAnalysisTaskCheckCascade();
37   AliAnalysisTaskCheckCascade(const char *name);
38   virtual ~AliAnalysisTaskCheckCascade() {}
39   
40   virtual void   UserCreateOutputObjects();
41   virtual void   UserExec(Option_t *option);
42           void   DoAngularCorrelation(const Char_t   *lCascType, 
43                                             Double_t  lInvMassCascade, 
44                                       const Int_t    *lArrTrackID,
45                                             TVector3 &lTVect3MomXi, 
46                                             Double_t  lEtaXi);
47   virtual void   Terminate(Option_t *);
48   
49   void SetCollidingSystems(Short_t collidingSystems = 0)     {fCollidingSystems = collidingSystems;}
50   void SetAnalysisType    (const char* analysisType = "ESD") {fAnalysisType = analysisType;}
51     
52  private:
53         TString         fAnalysisType;                  // "ESD" or "AOD" analysis type 
54         Short_t         fCollidingSystems;              // 0 = pp collisions or 1 = AA collisions
55         AliTPCpidESD*   fTpcPidManager;                 //! Tool data member to manage the TPC Bethe-Bloch info
56         
57         
58                 TList   *fListHistCascade;              //! List of Cascade histograms
59         
60         // - General histos (filled for any event)
61         TH1F    *fHistTrackMultiplicity;                //! Track multiplicity distribution
62         TH1F    *fHistCascadeMultiplicity;              //! Cascade multiplicity distribution
63
64
65         // - Vertex Positions
66         TH1F    *fHistVtxStatus;                        //! Is there a tracking vertex in the event ?
67
68                 // Vtx coming from the full tracking
69         TH1F    *fHistPosTrkgPrimaryVtxX;               //! primary vertex position distribution in x 
70         TH1F    *fHistPosTrkgPrimaryVtxY;               //! primary vertex position distribution in y
71         TH1F    *fHistPosTrkgPrimaryVtxZ;               //! primary vertex position distribution in z
72         TH1F    *fHistTrkgPrimaryVtxRadius;             //! primary vertex (3D) radius distribution 
73
74                 // Best primary Vtx available for the event
75         TH1F    *fHistPosBestPrimaryVtxX;               //! (best) primary vertex position distribution in x 
76         TH1F    *fHistPosBestPrimaryVtxY;               //! (best) primary vertex position distribution in y
77         TH1F    *fHistPosBestPrimaryVtxZ;               //! (best) primary vertex position distribution in z
78         TH1F    *fHistBestPrimaryVtxRadius;             //! (best) primary vertex radius distribution 
79         
80                 // Correlation Best Vtx / Full Tracking Vtx
81         TH2F    *f2dHistTrkgPrimVtxVsBestPrimVtx;       //!  Radius of prim. Vtx from tracks Vs Radius of best Prim. Vtx
82         
83         
84         // PART 1 : Adavanced QA
85         // - Typical histos on the variables used for the selection of cascades
86         TH1F    *fHistEffMassXi;                        //! reconstructed cascade effective mass
87         TH1F    *fHistChi2Xi;                           //! chi2 value
88         TH1F    *fHistDcaXiDaughters;                   //! dca between Xi's daughters
89         TH1F    *fHistDcaBachToPrimVertex;              //! dca of the bachelor track to primary vertex
90         TH1F    *fHistXiCosineOfPointingAngle;          //! cosine of Xi pointing angle in a cascade
91         TH1F    *fHistXiRadius;                         //! (transverse) radius of the cascade vertex 
92                 
93         // - Histos about ~ the "V0 selection part" of the cascade,  coming by inheritance from AliESDv0
94         TH1F    *fHistMassLambdaAsCascDghter;           //! Test Invariant Mass of Lambda coming from Cascade
95         TH1F    *fHistV0Chi2Xi;                         //! V0 chi2 distribution, for the V0 associated to a cascade
96         TH1F    *fHistDcaV0DaughtersXi;                 //! Dca between V0 daughters, for the V0 associated to a cascade
97         TH1F    *fHistDcaV0ToPrimVertexXi;              //! Dca of V0 to primary vertex, for the V0 associated to a cascade     
98         TH1F    *fHistV0CosineOfPointingAngleXi;        //! Cosine of V0 pointing angle, for the V0 associated to a cascade
99         TH1F    *fHistV0RadiusXi;                       //! V0 (transverse) distance distribution, for the V0 associated to a cascade
100
101         TH1F    *fHistDcaPosToPrimVertexXi;             //! Dca of V0 positive daughter to primary vertex, for the V0 associated to a cascade
102         TH1F    *fHistDcaNegToPrimVertexXi;             //! Dca of V0 negative daughter to primary vertex, for the V0 associated to a cascade
103         
104
105         // - Effective mass histos for cascades.
106         TH1F    *fHistMassXiMinus;                      //! reconstructed cascade effective mass, under Xi- hyp.
107         TH1F    *fHistMassXiPlus;                       //! reconstructed cascade effective mass, under Xi+ hyp.
108         TH1F    *fHistMassOmegaMinus;                   //! reconstructed cascade effective mass, under Omega- hyp.
109         TH1F    *fHistMassOmegaPlus;                    //! reconstructed cascade effective mass, under Omega+ hyp.
110         
111         TH1F    *fHistMassWithCombPIDXiMinus;           //! reconstructed Xi- effective mass, with bach. comb PID
112         TH1F    *fHistMassWithCombPIDXiPlus;            //! reconstructed Xi+ effective mass, with bach. comb PID
113         TH1F    *fHistMassWithCombPIDOmegaMinus;        //! reconstructed Omega- effective mass, with bach. comb PID
114         TH1F    *fHistMassWithCombPIDOmegaPlus;         //! reconstructed Omega+ effective mass, with bach. comb PID
115
116         // - Complements for QA
117         TH1F    *fHistXiTransvMom;                      //! Xi transverse momentum 
118         TH1F    *fHistXiTotMom;                         //! Xi momentum norm
119         
120         TH1F    *fHistBachTransvMom;                    //! bachelor transverse momentum 
121         TH1F    *fHistBachTotMom;                       //! bachelor momentum norm
122                                 
123         TH1F    *fHistChargeXi;                         //! Charge sign of the cascade candidate
124         TH1F    *fHistV0toXiCosineOfPointingAngle;      //! Cos. of Pointing angle between the V0 mom and the Xi-V0 vtx line
125   
126         TH1F    *fHistRapXi;                            //! rapidity of Xi candidates
127         TH1F    *fHistRapOmega;                         //! rapidity of Omega candidates
128         TH1F    *fHistEta;                              //! eta distrib. of all the cascade candidates
129         TH1F    *fHistTheta;                            //! theta distrib. of all the cascade candidates
130         TH1F    *fHistPhi;                              //! phi distrib. of all the cascade candidates
131         
132         TH2F    *f2dHistArmenteros;                     //! alpha(casc. cand.) Vs PtArm(casc. cand.)
133         
134         TH2F    *f2dHistEffMassLambdaVsEffMassXiMinus;  //! Xi- Eff mass Vs V0 Eff mass, under Xi- hyp.
135         TH2F    *f2dHistEffMassXiVsEffMassOmegaMinus;   //! Xi- Eff mass Vs Omega- Eff mass, for negative cascades
136         TH2F    *f2dHistEffMassLambdaVsEffMassXiPlus;   //! Xi+ Eff mass Vs V0 Eff mass, under Xi+ hyp.
137         TH2F    *f2dHistEffMassXiVsEffMassOmegaPlus;    //! Xi+ Eff mass Vs Omega+ Eff mass, for positive cascades
138         
139         TH2F    *f2dHistXiRadiusVsEffMassXiMinus;       //! transv. casc. decay radius Vs Xi- Eff mass, under Xi- hyp.
140         TH2F    *f2dHistXiRadiusVsEffMassXiPlus;        //! transv. casc. decay radius Vs Xi+ Eff mass, under Xi+ hyp.
141         TH2F    *f2dHistXiRadiusVsEffMassOmegaMinus;    //! transv. casc. decay radius Vs Omega- Eff mass, under Omega- hyp.
142         TH2F    *f2dHistXiRadiusVsEffMassOmegaPlus;     //! transv. casc. decay radius Vs Omega+ Eff mass, under Omega+ hyp.
143         
144         
145         // PART 2 : TH3F needed for pt spectrum and yield extraction
146         // Without any PID
147         TH3F    *f3dHistXiPtVsEffMassVsYXiMinus;        //! casc. transv. momemtum Vs Xi- Eff mass Vs Y
148         TH3F    *f3dHistXiPtVsEffMassVsYXiPlus;         //! casc. transv. momemtum Vs Xi+ Eff mass Vs Y
149         TH3F    *f3dHistXiPtVsEffMassVsYOmegaMinus;     //! casc. transv. momemtum Vs Omega- Eff mass Vs Y
150         TH3F    *f3dHistXiPtVsEffMassVsYOmegaPlus;      //! casc. transv. momemtum Vs Omega+ Eff mass Vs Y
151         
152         // With single PID : proton PID for Xi (pion = useless) / bachelor PID for Omega
153         // = a priori, the most important PID info for each species
154         TH3F    *f3dHistXiPtVsEffMassVsYWithCombPIDXiMinus;     //! casc. transv. momemtum Vs Xi- Eff mass Vs Y
155         TH3F    *f3dHistXiPtVsEffMassVsYWithCombPIDXiPlus;      //! casc. transv. momemtum Vs Xi+ Eff mass Vs Y
156         TH3F    *f3dHistXiPtVsEffMassVsYWithCombPIDOmegaMinus;  //! casc. transv. momemtum Vs Omega- Eff mass Vs Y
157         TH3F    *f3dHistXiPtVsEffMassVsYWithCombPIDOmegaPlus;   //! casc. transv. momemtum Vs Omega+ Eff mass Vs Y
158         
159         // With double PID : proton PID + bachelor PID for Omega
160         // = "second order" refinement for omegas
161         TH3F    *f3dHistXiPtVsEffMassVsYWith2CombPIDOmegaMinus; //! casc. transv. momemtum Vs Omega- Eff mass Vs Y
162         TH3F    *f3dHistXiPtVsEffMassVsYWith2CombPIDOmegaPlus;  //! casc. transv. momemtum Vs Omega+ Eff mass Vs Y
163         
164         // With TPC PID : 3-sigma band on the Bethe-Bloch curve
165         // = directly detector-based
166         TH3F    *f3dHistXiPtVsEffMassVsYWithTpcPIDOmegaMinus;   //! casc. transv. momemtum Vs Omega- Eff mass Vs Y
167         
168         // Compilation of all PID plots (3D = casc. transv. momemtum Vs Casc Eff mass Vs Y), stored into an AliCFContainer
169         AliCFContainer  *fCFContCascadePIDXiMinus;      //! for Xi-   : Container to store any 3D histos with the different PID flavours
170         AliCFContainer  *fCFContCascadePIDXiPlus;       //! for Xi+   : Container to store any 3D histos with the different PID flavours
171         AliCFContainer  *fCFContCascadePIDOmegaMinus;   //! for Omega-: Container to store any 3D histos with the different PID flavours
172         AliCFContainer  *fCFContCascadePIDOmegaPlus;    //! for Omega+: Container to store any 3D histos with the different PID flavours
173         
174         
175         
176         // PART 3 : Towards the optimisation of topological selections
177         AliCFContainer  *fCFContCascadeCuts;            //! Container meant to store all the relevant distributions corresponding to the cut variables
178         
179         
180         // PART 4 :  Azimuthal correlation study
181         THnSparseF      *fHnSpAngularCorrXiMinus;       //! Delta Phi(Casc,any trck) Vs Delta Eta(Casc,any trck) Vs Casc Pt Vs Pt of the tracks Vs Eff Mass
182         THnSparseF      *fHnSpAngularCorrXiPlus;        //! Delta Phi(Casc,any trck) Vs Delta Eta(Casc,any trck) Vs Casc Pt Vs Pt of the tracks Vs Eff Mass
183         THnSparseF      *fHnSpAngularCorrOmegaMinus;    //! Delta Phi(Casc,any trck) Vs Delta Eta(Casc,any trck) Vs Casc Pt Vs Pt of the tracks Vs Eff Mass
184         THnSparseF      *fHnSpAngularCorrOmegaPlus;     //! Delta Phi(Casc,any trck) Vs Delta Eta(Casc,any trck) Vs Casc Pt Vs Pt of the tracks Vs Eff Mass
185
186
187   AliAnalysisTaskCheckCascade(const AliAnalysisTaskCheckCascade&);            // not implemented
188   AliAnalysisTaskCheckCascade& operator=(const AliAnalysisTaskCheckCascade&); // not implemented
189   
190   ClassDef(AliAnalysisTaskCheckCascade, 7);
191 };
192
193 #endif