AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskPIDflowQA.h
Go to the documentation of this file.
1 //Class to extract data to do ITS+TPC global Spectra
2 //Autor Marek Chojnacki, Marek.Chojnacki@cern.ch
3 //modified Mikolaj Krzewicki, Mikolaj.Krzewicki@cern.ch
4 
5 #ifndef ALIANALYSISFLOWPIDTASK_H
6 #define ALIANALYSISFLOWPIDTASK_H
7 class TH2F;
8 class TH1F;
9 class TProfile;
10 class AliESDEvent;
11 class AliESDtrack;
12 class AliESDpid;
13 class AliFlowEventCuts;
14 class AliFlowTrackCuts;
15 #include "AliAnalysisTaskSE.h"
16 #include "AliESDpid.h"
17 
18 class AliAnalysisTaskPIDflowQA : public AliAnalysisTaskSE {
19 public:
21  AliAnalysisTaskPIDflowQA(const char *name);
23 
24  virtual void UserCreateOutputObjects();
25  virtual void UserExec(Option_t *option);
26  virtual void Terminate(Option_t *);
27 
29  void SetTrackCuts(AliFlowTrackCuts* cuts ){fCuts=cuts;}
31  AliESDpid* GetESDpid() const {return fESDpid;}
32  void SetUseDebugFile(Bool_t b=kTRUE) {fUseDebugFile=b;}
33  Bool_t TPCTOFagree(const AliESDtrack *track);
34 
35  Float_t Beta(Float_t m, Float_t p);
36 
37 private:
38  AliESDEvent *fESD;
41  AliESDpid *fESDpid; //pid object
42  Bool_t fUseDebugFile; //write debug file
43  FILE* fFile; //debug output file
44 
45  TH2F* fTPCsignal;
46  TH2F* fTPCsignalPi;
47  TH2F* fTPCsignalK;
48  TH2F* fTPCsignalP;
49 
53 
54  TH2F* fTOFtime;
55  TH2F* fTOFtimeE;
56  TH2F* fTOFtimePi;
57  TH2F* fTOFtimeK;
58  TH2F* fTOFtimeP;
59 
60  TH2F* fTOFbeta;
61  TH2F* fTOFbetaE;
62  TH2F* fTOFbetaPi;
63  TH2F* fTOFbetaK;
64  TH2F* fTOFbetaP;
65 
66  TH2F* fTOFinvbeta;
67  TH2F* fTOFinvbetaE;
69  TH2F* fTOFinvbetaK;
70  TH2F* fTOFinvbetaP;
71 
72  TH2F* fTOFrawtime;
73  TH2F* fTOFrawtimeE;
75  TH2F* fTOFrawtimeK;
76  TH2F* fTOFrawtimeP;
77 
78  TH2F* fTOFrawbeta;
79  TH2F* fTOFrawbetaE;
81  TH2F* fTOFrawbetaK;
82  TH2F* fTOFrawbetaP;
83 
89 
90  TH2F* fPvsPt;
91  TProfile* fMeanPvsP;
95 
100 
105 
110 
115 
120 
125 
134 
135  TList* fOutputList;
136 
137  AliAnalysisTaskPIDflowQA(const AliAnalysisTaskPIDflowQA&); // not implemented
138  AliAnalysisTaskPIDflowQA& operator=(const AliAnalysisTaskPIDflowQA&); // not implemented
139 
140  void PidTPC(AliESDtrack* t, Int_t pdgcode);
141  void PidTOF(AliESDtrack* t, Int_t pdgcode);
142 
143  ClassDef( AliAnalysisTaskPIDflowQA, 4); // example of analysis
144 };
145 
146 #endif
void SetUseDebugFile(Bool_t b=kTRUE)
AliFlowTrackCuts * fCutsTOFbetaSimpleKaons
AliFlowTrackCuts * fCutsTOFbetaPions
TProfile * fMeanPvsP
P vs Pt yield.
AliFlowTrackCuts * fCutsTPCbayesianPions
AliFlowTrackCuts * fCutsTPCdedxProtons
TH2F * fTPCsignalP
TPC PID signal as function of p for K+.
AliFlowTrackCuts * fCutsTPCbayesianProtons
AliFlowTrackCuts * fCutsTOFbetaProtons
void SetEventCuts(AliFlowEventCuts *c)
AliFlowTrackCuts * fCutsTPCbayesianKaons
void PidTOF(AliESDtrack *t, Int_t pdgcode)
AliFlowTrackCuts * fCutsTOFbetaKaons
AliFlowTrackCuts * fCutsMCprimarykaons
AliFlowTrackCuts * fStandardGlobalCuts
correlation tpc only tracks vs global tracks
AliFlowTrackCuts * fCutsTOFbetaSimpleElectrons
void SetTrackCuts(AliFlowTrackCuts *cuts)
AliFlowTrackCuts * fCutsTOFbetaElectrons
cuts
AliFlowTrackCuts * fCutsTOFbayesianKaons
ClassDef(AliAnalysisTaskPIDflowQA, 4)
AliFlowTrackCuts * fCutsMCprimaryprotons
AliFlowTrackCuts * GetAliESDtrackCuts() const
TH2F * fTPCsignalPmc
TPC PID signal as function of p for K+.
virtual void UserExec(Option_t *option)
AliFlowTrackCuts * fCutsTPCpidElectrons
Bool_t TPCTOFagree(const AliESDtrack *track)
void PidTPC(AliESDtrack *t, Int_t pdgcode)
AliAnalysisTaskPIDflowQA & operator=(const AliAnalysisTaskPIDflowQA &)
AliFlowTrackCuts * fCutsMCprimarypions
AliFlowTrackCuts * fCuts
ESD object.
AliFlowTrackCuts * fCutsTOFbayesianPions
AliFlowTrackCuts * fStandardTPCCuts
cuts
Float_t Beta(Float_t m, Float_t p)
TH2F * fTPCvsGlobalMult
mean p per bin
AliFlowTrackCuts * fCutsTPCdedxElectrons
virtual void Terminate(Option_t *)
AliFlowTrackCuts * fCutsMCprimaryelectrons
AliFlowTrackCuts * fCutsTOFbayesianProtons
TH2F * fTPCsignalPimc
TPC PID signal as function of p for p.
TH2F * fTPCsignalPi
TPC signal as function of p.
TH2F * fTOFtime
TPC PID signal as function of p for p.
AliFlowTrackCuts * fCutsTOFbayesianElectrons
AliFlowTrackCuts * fCutsTPCbayesianElectrons
TH2F * fTPCsignalK
TPC PID signal as function of p for pi+.
AliFlowTrackCuts * fCutsTOFbetaSimpleProtons
AliFlowTrackCuts * fCutsTOFbetaSimplePions
TH2F * fTPCsignalKmc
TPC PID signal as function of p for pi+.