]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/SPECTRA/PiKaPr/TPCTOFpA/AliAnalysisTPCTOFpA.h
add eta vs phi plots for different NLM
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TPCTOFpA / AliAnalysisTPCTOFpA.h
CommitLineData
0e743ea7 1#ifndef ALIANALYSISTPCTOFPA_H
2#define ALIANALYSISTPCTOFPA_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 TH3D;
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 AliAnalysisTPCTOFpA : public AliAnalysisTaskSE {
28 public:
29 AliAnalysisTPCTOFpA(const char *name);
30 AliAnalysisTPCTOFpA();
31 virtual ~AliAnalysisTPCTOFpA() {}
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 SetUseTPConlyTracks(Bool_t useTPConlyTracks = kTRUE){fUseTPConlyTracks = useTPConlyTracks;};
44 void SetSaveMotherPDG(Bool_t saveMotherPDG =kTRUE){fSaveMotherPDG = saveMotherPDG;};
915acd23 45 void SetSmallTHnSparse(Bool_t smallTHnSparse = kTRUE) {fSmallTHnSparse = smallTHnSparse;};
0e743ea7 46 void SetTPCnSigmaCuts(Double_t nSigmaTPCLow = -3., Double_t nSigmaTPCHigh = 3.){fTPCnSigmaCutLow = nSigmaTPCLow; fTPCnSigmaCutHigh = nSigmaTPCHigh;};
915acd23 47 void SetRapidityCuts(Double_t rapidityLow = -0.5, Double_t rapidityHigh = 0.5){fRapidityCutLow = rapidityLow; fRapidityCutHigh = rapidityHigh;};
0e743ea7 48 void SetEvenDCAbinning(Bool_t EvenDCAbinning = kTRUE) {fEvenDCAbinning = EvenDCAbinning;};
915acd23 49 void SetIspA(Bool_t ispA = kTRUE) {fIspA = ispA;};
50 void SetRapCMS(Bool_t rapCMS = kTRUE) {fRapCMS = rapCMS;};
51 void SetCentEst(TString centEst = "V0M") {fCentEst = centEst.Data();};
0e743ea7 52 void Initialize();
53 //
54
55 private:
56 //
57 void BinLogAxis(const TH1 *h);
58 Int_t GetPythiaEventProcessType(const AliHeader* aHeader, const Bool_t adebug = kFALSE) const;
59 //
60 AliESDEvent *fESD; //! ESD object
61 TList *fListHist; //! list for histograms
62 //
63 AliESDtrackCuts * fESDtrackCuts; // basic cut variables
64 AliESDtrackCuts * fESDTrackCutsMult; // cuts for the MULTIPLICITY DETERMINATION
65 AliESDpid * fESDpid; // basic TPC object for n-sigma cuts
66 Bool_t fMCtrue; // flag if real data or MC is processed
67 Bool_t fOnlyQA; // flag if only QA histograms should be filled
68 Bool_t fUseHBTmultiplicity; // flag if multiplicity determination should be done as in the HBT paper
69 Bool_t fUseTPConlyTracks; // flag if TPConly-track should be used
70 Bool_t fSaveMotherPDG; // flag if PDG of mother should be saved (weak decays)
71 Bool_t fSmallTHnSparse; // flag if to do cuts on TPC n-sigma and rapidity in task or not
60936c91 72 Bool_t fIspA; // flag for pA analysis
73 Bool_t fRapCMS; // flag if rapitidy should be shifted by 0.465 do have rap in CMS of pPb
915acd23 74 TString fCentEst; // string which contains the string for the centrality estimator
0e743ea7 75 Double_t fTPCnSigmaCutLow; // low border for TPC n-sigma cut
76 Double_t fTPCnSigmaCutHigh; // high border for TPC n-sigma cut
77 Double_t fRapidityCutLow; // low border for rapidity cut
78 Double_t fRapidityCutHigh; // high border for rapidity cut
79 Double_t fEvenDCAbinning; // same bin width for all bins in DCA xy
80 Double_t fAlephParameters[5]; // Aleph Parameters for Bethe-Bloch
81
82 //
83 //
84 //
85 THnSparseF * fHistRealTracks; //! histogram with all necessary information for real tracks
86 THnSparseF * fHistMCparticles; //! histogram with all necessary information for MC particles
87 //
88 TH3D * fHistPidQA; //! histogram for the QA of the PID
89 TH2D * fHistMult; //! control histogram for multiplicity
90 TH1D * fHistCentrality; //! control histogram for centrality
91 //
92 AliAnalysisTPCTOFpA(const AliAnalysisTPCTOFpA&);
93 AliAnalysisTPCTOFpA& operator=(const AliAnalysisTPCTOFpA&);
94
95 ClassDef(AliAnalysisTPCTOFpA, 1);
96};
97
98#endif