Added LHC10h run list for flow analysis (Giacomo)
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliCFTaskForDStarAnalysis.h
CommitLineData
2854fd06 1#ifndef ALICFTASKFORDSTARANALYSIS_H
2#define ALICFTASKFORDSTARANALYSIS_H
3/**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5 * *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
8 * *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
17
27de2dfb 18/* $Id$ */
19
2854fd06 20//-----------------------------------------------------------------------
21// Class for D* corrections --
22
23#include "AliAnalysisTaskSE.h"
24
25class TH1I;
26class TParticle ;
27class TFile ;
28class TClonesArray ;
29class AliCFManager;
30class AliAODRecoDecay;
31class AliAODRecoDecayHF2Prong;
32class AliAODMCParticle;
33class THnSparse;
34
35class AliCFTaskForDStarAnalysis : public AliAnalysisTaskSE {
36 public:
37
38 enum {
39 kStepGenerated = 0,
40 kStepAcceptance = 1,
41 kStepVertex = 2,
42 kStepRefit = 3,
43 kStepReconstructed = 4,
44 kStepRecoAcceptance = 5,
45 kStepRecoITSClusters = 6,
46 kStepRecoCuts = 7
47 };
48
49 AliCFTaskForDStarAnalysis();
50 AliCFTaskForDStarAnalysis(const Char_t* name);
51 AliCFTaskForDStarAnalysis& operator= (const AliCFTaskForDStarAnalysis& c);
52 AliCFTaskForDStarAnalysis(const AliCFTaskForDStarAnalysis& c);
53 virtual ~AliCFTaskForDStarAnalysis();
54
55 // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects
56 void UserCreateOutputObjects();
57 void UserExec(Option_t *option);
58 void Terminate(Option_t *);
59
60 // UNFOLDING
61 void SetCorrelationMatrix(THnSparse* h) {fCorrelation=h;}
62 void SetAcceptanceUnf(Bool_t AcceptanceUnf) {fAcceptanceUnf = AcceptanceUnf;}
63 Bool_t GetAcceptanceUnf() const {return fAcceptanceUnf;}
64
65 // CORRECTION FRAMEWORK
66 void SetCFManager(AliCFManager* io) {fCFManager = io;} // global correction manager
67 AliCFManager * GetCFManager() {return fCFManager;} // get corr manager
68
69 Bool_t GetDStarMCParticle(AliAODMCParticle* mcPart, TClonesArray* mcArray, Double_t* vectorMC)const;
70 Bool_t EvaluateIfD0toKpi(AliAODMCParticle* neutralDaugh, TClonesArray* mcArray, Double_t* VectorD0)const;
71 // for the D0
72 void SetMinITSClusters(Int_t minITSClusters) {fMinITSClusters = minITSClusters;}
73 Int_t GetMinITSClusters() const {return fMinITSClusters;}
74 // for the soft pion
75 void SetMinITSClustersSoft(Int_t minITSClustersSoft) {fMinITSClustersSoft = minITSClustersSoft;}
76 Int_t GetMinITSClustersSoft() const {return fMinITSClustersSoft;}
77
78 protected:
79
80 AliCFManager *fCFManager; // pointer to the CF manager
81 TH1I *fHistEventsProcessed; //! simple histo for monitoring the number of events processed
82 THnSparse* fCorrelation; // response matrix for unfolding
83 Int_t fCountRecoDStarSel; // Reco particle found that satisfy cuts in D* selection
84 Int_t fEvents; // n. of events
85 Int_t fMinITSClusters; // min n. of ITS clusters for RecoDecay
86 Int_t fMinITSClustersSoft; // min n. of ITS clusters for RecoDecay soft pion
87 Bool_t fAcceptanceUnf; // flag for unfolding before or after cuts.
88
89 ClassDef(AliCFTaskForDStarAnalysis,3); // class for D* corrections
90};
91
92#endif