1 #ifndef ALICFTASKFORDSTARANALYSIS_H
2 #define ALICFTASKFORDSTARANALYSIS_H
3 /**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
20 //-----------------------------------------------------------------------
21 // Class for D* corrections --
23 #include "AliAnalysisTaskSE.h"
30 class AliAODRecoDecay;
31 class AliAODRecoDecayHF2Prong;
32 class AliAODMCParticle;
35 class AliCFTaskForDStarAnalysis : public AliAnalysisTaskSE {
43 kStepReconstructed = 4,
44 kStepRecoAcceptance = 5,
45 kStepRecoITSClusters = 6,
49 AliCFTaskForDStarAnalysis();
50 AliCFTaskForDStarAnalysis(const Char_t* name);
51 AliCFTaskForDStarAnalysis& operator= (const AliCFTaskForDStarAnalysis& c);
52 AliCFTaskForDStarAnalysis(const AliCFTaskForDStarAnalysis& c);
53 virtual ~AliCFTaskForDStarAnalysis();
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 *);
61 void SetCorrelationMatrix(THnSparse* h) {fCorrelation=h;}
62 void SetAcceptanceUnf(Bool_t AcceptanceUnf) {fAcceptanceUnf = AcceptanceUnf;}
63 Bool_t GetAcceptanceUnf() const {return fAcceptanceUnf;}
65 // CORRECTION FRAMEWORK
66 void SetCFManager(AliCFManager* io) {fCFManager = io;} // global correction manager
67 AliCFManager * GetCFManager() {return fCFManager;} // get corr manager
69 Bool_t GetDStarMCParticle(AliAODMCParticle* mcPart, TClonesArray* mcArray, Double_t* vectorMC)const;
70 Bool_t EvaluateIfD0toKpi(AliAODMCParticle* neutralDaugh, TClonesArray* mcArray, Double_t* VectorD0)const;
72 void SetMinITSClusters(Int_t minITSClusters) {fMinITSClusters = minITSClusters;}
73 Int_t GetMinITSClusters() const {return fMinITSClusters;}
75 void SetMinITSClustersSoft(Int_t minITSClustersSoft) {fMinITSClustersSoft = minITSClustersSoft;}
76 Int_t GetMinITSClustersSoft() const {return fMinITSClustersSoft;}
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.
89 ClassDef(AliCFTaskForDStarAnalysis,3); // class for D* corrections