]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/vertexingHF/charmFlow/AliAnalysisTaskFlowD2H.h
Main modifications (Carlos):
[u/mrichter/AliRoot.git] / PWGHF / vertexingHF / charmFlow / AliAnalysisTaskFlowD2H.h
1 /* Copyright(c) 1998-1999, ALICExperiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 /* $Id$ */
4
5 #ifndef ALIANALYSISTASKFLOWD2H_H
6 #define ALIANALYSISTASKFLOWD2H_H
7
8 #include "AliAnalysisTaskSE.h"
9
10 //==============================================================================
11 // FlowD2H main task:
12 // >> Make flowEvent with RPcuts and POIcuts given in constructor and passes it
13 //    to the daughter tasks.
14 // >> The POIcuts are polymorphic based on the AliRDHFCuts class allowing the 
15 //    use of all charmed candidates reconstructed in the central barrel.
16 // Author: Carlos Perez (cperez@cern.ch)
17 //==============================================================================
18
19 class AliAODEvent;
20 class AliRDHFCuts;
21 class AliRDHFCutsD0toKpi;
22 class AliFlowEventCuts;
23 class AliFlowEvent;
24 class AliFlowCandidateTrack;
25 class AliFlowTrackCuts;
26 class TList;
27 class TH1D;
28
29 class AliAnalysisTaskFlowD2H : public AliAnalysisTaskSE {
30   public:
31     AliAnalysisTaskFlowD2H();
32     AliAnalysisTaskFlowD2H( const Char_t *name, 
33                             AliFlowTrackCuts *cutsTPC,
34                             AliFlowTrackCuts *cutsVZE,
35                             AliRDHFCuts *cutsPOIs, 
36                             Int_t specie );
37     void SetDebug() {fDebugV2 = true;}
38     virtual ~AliAnalysisTaskFlowD2H();
39     virtual void UserCreateOutputObjects();
40     virtual void UserExec(Option_t *);
41     void SetCommonConstants(Int_t massBins, Double_t minMass, Double_t maxMass, Int_t ptWidth);
42
43   private:
44     AliAnalysisTaskFlowD2H(const AliAnalysisTaskFlowD2H& analysisTask);
45     AliAnalysisTaskFlowD2H& operator=(const AliAnalysisTaskFlowD2H& analysisTask);
46     void AddHistograms();
47     void FillD0toKpi( const AliAODEvent *aod );
48     void FillD0toKpipipi( const AliAODEvent *aod );
49     void FillDStartoKpipi( const AliAODEvent *aod );
50     void FillDplustoKpipi( const AliAODEvent *aod );
51     void FillDstoKKpi( const AliAODEvent *aod );
52     void FillJpsitoee( const AliAODEvent *aod );
53     void FillLctoV0( const AliAODEvent *aod );
54     void FillLctopKpi( const AliAODEvent *aod );
55     void MakeTrack( Double_t mass, Double_t pt,
56                     Double_t phi, Double_t eta,
57                     Int_t nDaughters, const Int_t *iID );
58
59     AliFlowEvent *fTPCEvent;
60     AliFlowEvent *fVZEEvent;
61     AliFlowTrackCuts *fCutsTPC;
62     AliFlowTrackCuts *fCutsVZE;
63     AliFlowTrackCuts *fNoPOIs;
64
65     AliRDHFCuts *fCutsPOI; // cuts for POIs
66     Int_t  fSource; // AliRDHFCuts::ESele
67     Bool_t fDebugV2; // fully talkative task
68
69     Int_t fMassBins; // configures mass bins for the analysis
70     Double_t fMinMass; // configures mass range for the analysis
71     Double_t fMaxMass; // configures mass range for the analysis
72     Int_t fPtBinWidth; // configures pt bin width for the analysis
73
74     TList *fHList; // List for histos
75     TH1D *fEvent;  // Event counter
76     TH1D *fCC;     // CC histogram
77     TH1D *fRFPMTPC; // Multiplicity RFPTPC
78     TH1D *fRFPPhiTPC; // Phi RFPTPC
79
80     TObjArray *fCandidates; // Array of selected candidates
81
82   ClassDef(AliAnalysisTaskFlowD2H, 3);
83 };
84
85 #endif