Republishing.
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliAnalysisCombinedHadronSpectra.h
CommitLineData
aa2bbd47 1#ifndef ALIANALYSISTASKCHARGEDHADRONSPECTRA_H
2#define ALIANALYSISTASKCHARGEDHADRONSPECTRA_H
3
4//////////////////////////////////////////////////////////////////////////////
5// //
6// This analysis extracts pT-spectra of charged kaons, protons, and pions. //
7// It is based on particles identifation via the dE/dx signal of the TPC. //
8// //
9//////////////////////////////////////////////////////////////////////////////
10
11class TH1;
12class TH1F;
13class TH2D;
14class TH3F;
15class TList;
16class TObjArray;
17class AliESDEvent;
18class AliESDtrack;
19class AliESDtrackCuts;
20class AliHeader;
21class AliESDpid;
22
23
24#include "AliAnalysisTaskSE.h"
25#include "THnSparse.h"
26
27class AliAnalysisCombinedHadronSpectra : public AliAnalysisTaskSE {
28 public:
29 AliAnalysisCombinedHadronSpectra(const char *name);
30 AliAnalysisCombinedHadronSpectra();
31 virtual ~AliAnalysisCombinedHadronSpectra() {}
32 //
33 virtual void UserCreateOutputObjects();
34 virtual void UserExec(Option_t *option);
35 virtual void Terminate(Option_t *);
36 //
37 Bool_t SelectOnImpPar(AliESDtrack* t);
38 //
39 void SetESDtrackCuts(AliESDtrackCuts * trackCuts){fESDtrackCuts = trackCuts;};
40 void SetAlephParameters(const Double_t * parameters){for(Int_t j=0;j<5;j++) fAlephParameters[j] = parameters[j]; Initialize();};
41 void SetIsMCtrue(Bool_t isMCdata = kTRUE){fMCtrue = isMCdata;};
42 void SetUseHBTmultiplicity(Bool_t useHBTmultiplicity = kTRUE){fUseHBTmultiplicity = useHBTmultiplicity;};
43 void Initialize();
44 //
45
46 private:
47 //
48 void BinLogAxis(const THnSparse *h, Int_t axisNumber);
49 Int_t GetPythiaEventProcessType(const AliHeader* aHeader, const Bool_t adebug = kFALSE) const;
50 //
51 AliESDEvent *fESD; //! ESD object
52 TList *fListHist; //! list for histograms
53 //
54 AliESDtrackCuts * fESDtrackCuts; // basic cut variables
55 AliESDtrackCuts * fESDTrackCutsMult; // cuts for the MULTIPLICITY DETERMINATION
56 AliESDpid * fESDpid; // basic TPC object for n-sigma cuts
57 Bool_t fMCtrue; // flag if real data or MC is processed
58 Bool_t fOnlyQA; // flag if only QA histograms should be filled
59 Bool_t fUseHBTmultiplicity; // flag if multiplicity determination should be done as in the HBT paper
60 Double_t fAlephParameters[5]; // Aleph Parameters for Bethe-Bloch
61 //
62 //
63 //
64 THnSparseL * fHistRealTracks; //! histogram with all necessary information for real tracks
65 THnSparseL * fHistMCparticles; //! histogram with all necessary information for MC particles
66 //
67 THnSparseL * fHistPidQA; //! histogram for the QA of the PID
68 TH2D * fHistMult; //! control histogram for multiplicity
69 TH1D * fHistCentrality; //! control histogram for centrality
70 //
71 AliAnalysisCombinedHadronSpectra(const AliAnalysisCombinedHadronSpectra&);
72 AliAnalysisCombinedHadronSpectra& operator=(const AliAnalysisCombinedHadronSpectra&);
73
74 ClassDef(AliAnalysisCombinedHadronSpectra, 1);
75};
76
77#endif