1 /* Copyright(c) 1998-1999, ALICExperiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 #ifndef ALIANALYSISTASKFLOWD2H_H
6 #define ALIANALYSISTASKFLOWD2H_H
8 #include "AliAnalysisTaskSE.h"
10 //==============================================================================
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 //==============================================================================
21 class AliRDHFCutsD0toKpi;
22 class AliFlowEventCuts;
24 class AliFlowCandidateTrack;
25 class AliFlowTrackCuts;
29 class AliAnalysisTaskFlowD2H : public AliAnalysisTaskSE {
31 AliAnalysisTaskFlowD2H();
32 AliAnalysisTaskFlowD2H( const Char_t *name,
33 AliFlowTrackCuts *cutsTPC,
34 AliFlowTrackCuts *cutsVZE,
35 AliRDHFCuts *cutsPOIs,
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);
44 AliAnalysisTaskFlowD2H(const AliAnalysisTaskFlowD2H& analysisTask);
45 AliAnalysisTaskFlowD2H& operator=(const AliAnalysisTaskFlowD2H& analysisTask);
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 );
59 AliFlowEvent *fTPCEvent;
60 AliFlowEvent *fVZEEvent;
61 AliFlowTrackCuts *fCutsTPC;
62 AliFlowTrackCuts *fCutsVZE;
63 AliFlowTrackCuts *fNoPOIs;
65 AliRDHFCuts *fCutsPOI; // cuts for POIs
66 Int_t fSource; // AliRDHFCuts::ESele
67 Bool_t fDebugV2; // fully talkative task
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
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
80 TObjArray *fCandidates; // Array of selected candidates
82 ClassDef(AliAnalysisTaskFlowD2H, 3);