]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/SPECTRA/AliProtonQAAnalysis.h
Changed production mode bit to an int.
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliProtonQAAnalysis.h
CommitLineData
3e6c06f4 1#ifndef ALIPROTONQAANALYSIS_H
2#define ALIPROTONQAANALYSIS_H
3
4/* See cxx source for full Copyright notice */
5
6
7/* $Id: AliProtonQAAnalysis.h 29114 2008-10-03 16:49:02Z pchrist $ */
8
9//-------------------------------------------------------------------------
10// Class AliProtonQAAnalysis
11// This is the class for the baryon (proton) analysis
12//
dd3fa486 13// Origin: Panos Christakoglou | Panos.Christakoglou@cern.ch
3e6c06f4 14//-------------------------------------------------------------------------
15
16#include "TObject.h"
3e6c06f4 17#include "TList.h"
9c0b9f24 18#include "TArrayI.h"
3e6c06f4 19
3e6c06f4 20class TF1;
3e6c06f4 21class TH1F;
d4733690 22class TH3F;
3e6c06f4 23
73aba974 24class AliPID;
3e6c06f4 25class AliESDEvent;
26class AliESDtrack;
27class AliStack;
75decd62 28class AliGenEventHeader;
6667f3a7 29class AliESDVertex;
4042c3a2 30class AliMCEvent;
e7df5638 31class AliProtonAnalysisBase;
3e6c06f4 32
33class AliProtonQAAnalysis : public TObject {
34 public:
35 AliProtonQAAnalysis();
36 virtual ~AliProtonQAAnalysis();
37
73aba974 38 void SetBaseAnalysis(AliProtonAnalysisBase *const baseAnalysis) {
e7df5638 39 fProtonAnalysisBase = baseAnalysis;}
73aba974 40 AliProtonAnalysisBase *GetProtonAnalysisBaseObject() const {
e7df5638 41 return fProtonAnalysisBase;}
3e6c06f4 42
75decd62 43 //Vertex QA
44 void RunVertexQA(AliGenEventHeader *header,
75decd62 45 AliESDEvent *esd);
73aba974 46 TList *GetVertexQAList() const {return fQAVertexList;}
75decd62 47
9c0b9f24 48 //QA histograms
49 void SetQAYPtBins(Int_t nbinsY, Double_t minY, Double_t maxY,
50 Int_t nbinsPt, Double_t minPt, Double_t maxPt);
6667f3a7 51 void RunQAAnalysis(AliStack *stack,
52 AliESDEvent *esd,
53 const AliESDVertex *vertex);
9c0b9f24 54 void SetRunQAAnalysis();
73aba974 55 TList *GetGlobalQAList() const {return fGlobalQAList;}
9c0b9f24 56
57 //Efficiency plots (reconstruction & PID)
c20898de 58 void RunReconstructionEfficiencyAnalysis(AliMCEvent *mcEvent,
59 AliESDEvent *esd,
60 const AliESDVertex *vertex);
61 void RunPIDEfficiencyAnalysis(AliStack *stack,
d488527a 62 AliESDEvent *esd,
63 const AliESDVertex *vertex);
6667f3a7 64 void RunEfficiencyAnalysis(AliStack *stack,
65 AliESDEvent *esd,
66 const AliESDVertex *vertex);
dd3fa486 67 void SetRunEfficiencyAnalysis(Bool_t gUseCuts) {
e13bbda6 68 fRunEfficiencyAnalysis = kTRUE;
e13bbda6 69 fUseCutsInEfficiency = gUseCuts;
70 }
73aba974 71 TList *GetEfficiencyQAList() const {return fEfficiencyList;}
9c0b9f24 72
d4733690 73 //MC analysis
74 void RunMCAnalysis(AliStack* stack);
75 void SetRunMCAnalysis() {fRunMCAnalysis = kTRUE;}
5b8133c7 76 void SetMCProcessId(Int_t id) {
77 fMCProcessIdFlag = kTRUE;
78 fMCProcessId = id;
79 }
80 void SetMotherParticlePDGCode(Int_t pdgCode) {
81 fMotherParticlePDGCodeFlag = kTRUE;
82 fMotherParticlePDGCode = pdgCode;
83 }
73aba974 84 TList *GetPDGList() const {return fPDGList;}
85 TList *GetMCProcessesList() const {return fMCProcessesList;}
d4733690 86
73aba974 87 TList *GetAcceptedCutList() const {return fAcceptedCutList;}
88 TList *GetRejectedCutList() const {return fRejectedCutList;}
89 TList *GetAcceptedDCAList() const {return fAcceptedDCAList;}
90 TList *GetRejectedDCAList() const {return fRejectedDCAList;}
5b8133c7 91
3e6c06f4 92 private:
93 AliProtonQAAnalysis(const AliProtonQAAnalysis&); // Not implemented
9c0b9f24 94 AliProtonQAAnalysis& operator=(const AliProtonQAAnalysis&);// Not implemented
3e6c06f4 95
75decd62 96 void InitVertexQA();
9c0b9f24 97 void InitQA();
d4733690 98 void InitMCAnalysis();
5b8133c7 99 void InitCutLists();
9c0b9f24 100 void InitEfficiencyAnalysis();
e7df5638 101 void FillQA(AliStack *stack,
102 AliESDEvent *esd,
103 const AliESDVertex *vertex,
104 AliESDtrack* track);
105
9c0b9f24 106 Bool_t IsLabelUsed(TArrayI array, Int_t label);
73aba974 107 Int_t ConvertPDGToInt(Int_t pdgCode) const;
3e6c06f4 108
e7df5638 109 AliProtonAnalysisBase *fProtonAnalysisBase;//base analysis object
dd3fa486 110
111 Int_t fNBinsY; //number of bins in eta or y
112 Float_t fMinY, fMaxY; //min & max value of eta or y
3e6c06f4 113 Int_t fNBinsPt; //number of bins in pT
114 Float_t fMinPt, fMaxPt; //min & max value of pT
115
3e6c06f4 116 //QA histograms
117 //Bool_t fQAHistograms; //Boolean to activate the QA histograms
118 TList *fGlobalQAList; //TList storing the directories for the QA histograms
75decd62 119 TList *fQAVertexList; //TList storing the vertex QA plots
3e6c06f4 120 TList *fQA2DList; //TList storing the accepted primary/secondary (anti)protons
121 TList *fQAPrimaryProtonsAcceptedList; //list of the QA histos for accepted primary protons
122 TList *fQAPrimaryProtonsRejectedList; //list of the QA histos for rejected primary protons
123 TList *fQASecondaryProtonsAcceptedList; //list of the QA histos for accepted secondary protons
124 TList *fQASecondaryProtonsRejectedList; //list of the QA histos for rejected secondary protons
125 TList *fQAPrimaryAntiProtonsAcceptedList; //list of the QA histos for accepted primary antiprotons
126 TList *fQAPrimaryAntiProtonsRejectedList; //list of the QA histos for rejected primary antiprotons
127 TList *fQASecondaryAntiProtonsAcceptedList; //list of the QA histos for accepted secondary antiprotons
128 TList *fQASecondaryAntiProtonsRejectedList; //list of the QA histos for rejected secondary antiprotons
129
d4733690 130 //MC analysis
131 TList *fPDGList; //list with the 3D histograms: y-pt-pdg (anti)protons
132 TList *fMCProcessesList; //list with the MC processes for every secondary (anti)proton
133 Bool_t fRunMCAnalysis; //run this part or not
5b8133c7 134 Bool_t fMCProcessIdFlag; //flag to see if we should check the process id
135 UInt_t fMCProcessId; //process id based on the TMCProcess
136 Bool_t fMotherParticlePDGCodeFlag; //flag to see if we should check the pdg code of the mother particle
137 Int_t fMotherParticlePDGCode; //pdg code of the mother particle
138
139 TList *fAcceptedCutList;// list of the cut parameters' histograms
140 TList *fRejectedCutList;// list of the cut parameters' histograms
141 TList *fAcceptedDCAList;// list of the DCA histograms
142 TList *fRejectedDCAList;// list of the DCA histograms
d4733690 143
9c0b9f24 144 //Efficiency (reconstruction & PID)
145 Bool_t fRunEfficiencyAnalysis; //run this part or not
e13bbda6 146 Bool_t fUseCutsInEfficiency;//use the cuts in the reco and pid efficiency
147
9c0b9f24 148 TList *fEfficiencyList;// list of the efficiency histograms
149
e7df5638 150 ClassDef(AliProtonQAAnalysis,1);
3e6c06f4 151};
152
153#endif