1 #ifndef ALIANALYSISTASKDCA_H
2 #define ALIANALYSISTASKDCA_H
4 /**************************************************************************
5 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
22 // Task for impact parameter (DCA) analysis
23 // study DCA in rphi (xy) and z: resolution and pull
24 // For further information see implementation file
27 #ifndef ALIANALYSISTASKSE_H
28 #include "AliAnalysisTaskSE.h"
37 class AliESDtrackCuts;
42 class AliVertexerTracks;
45 class AliHFEextraCuts;
47 class AliAnalysisTaskDCA : public AliAnalysisTaskSE{
61 kAODanalysis = BIT(20)
65 AliAnalysisTaskDCA(const char * name);
66 AliAnalysisTaskDCA(const AliAnalysisTaskDCA &ref);
67 AliAnalysisTaskDCA& operator=(const AliAnalysisTaskDCA &ref);
68 virtual ~AliAnalysisTaskDCA();
70 virtual void UserCreateOutputObjects();
71 virtual void UserExec(Option_t *);
72 virtual void Terminate(Option_t *);
75 void PrintStatus() const;
76 void Load(TString filename = "impactPar.root");
78 void SetHFECuts(AliHFEcuts * const cuts) { fCuts = cuts; };
80 void SetNclustersITS(Int_t nITSclusters){ fNclustersITS = nITSclusters;};
81 void SetMinPrimVtxContrib( Int_t nPrimVtxContrib){ fMinNprimVtxContrbutor = nPrimVtxContrib; };
83 Bool_t GetPlugin(Int_t plug) const { return TESTBIT(fPlugins, plug); };
84 void SwitchOnPlugin(Int_t plug);
86 Bool_t IsAODanalysis() const { return TestBit(kAODanalysis); };
87 Bool_t IsESDanalysis() const { return !TestBit(kAODanalysis); };
88 Bool_t HasMCData() const { return TestBit(kHasMCdata); }
89 void SetHasMCData(Bool_t hasMC = kTRUE) { SetBit(kHasMCdata, hasMC); };
91 void SetPIDdetectors(Char_t * const detectors){ fPIDdetectors = detectors; }
92 void SetPIDStrategy(UInt_t strategy) { fPIDstrategy = strategy; }
93 void AddPIDdetector(TString detector);
95 void SetAODAnalysis() { SetBit(kAODanalysis, kTRUE); };
96 void SetESDAnalysis() { SetBit(kAODanalysis, kFALSE); };
101 void MakeParticleContainer();
102 void ProcessDcaAnalysis();
104 UShort_t fPlugins; // Enabled Plugins
105 AliHFEcuts *fCuts; // Cut Collection
107 AliESDpid *fDefaultPID; //! Default ESD PID
108 AliHFEpid *fHFEpid; //! PID
109 TString fPIDdetectors; // Detectors for Particle Identification
110 UInt_t fPIDstrategy; // PID Strategy
112 AliCFManager *fCFM; //! Correction Framework Manager
113 AliHFEdca *fDCA; // fDCA
115 Int_t fNclustersITS; // ITS clusters
116 Int_t fMinNprimVtxContrbutor; // minimum number of primary contributors
118 TH1I *fNEvents; //! counter for the number of Events
119 TList *fResidualList; //! histograms for the residuals
120 TList *fPullList; //! histograms for the pull
121 TList *fDcaList; //! histograms for the dca
122 TList *fKfDcaList; //! histograms for the kf dca
123 TList *fMcVertexList; //! histograms for the MC vertex
124 TList *fDataDcaList; //! histograms for the data dca
125 TList *fDataVertexList; //! histograms for the data vertex
126 TList *fDataPullList; //! histograms for the data pull
127 TList *fMcPidList; //! pid - MC: ESD combined pid
128 TList *fDataPidList; //! pid -Data: ESD combined pid
130 TList *fHfeDcaList; //! hfe pid: mc dca
131 TList *fHfeDataDcaList; //! hfe pid: data dca
133 TList *fOutput; //! Container for Task Output
135 ClassDef(AliAnalysisTaskDCA, 1); // The DCA Analysis Task