]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGJE/EMCALJetTasks/UserTasks/AliAnalysisTaskSAQA.h
fix energy cut in cell histograms
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / UserTasks / AliAnalysisTaskSAQA.h
1 #ifndef ALIANALYSISTASKSAQA_H
2 #define ALIANALYSISTASKSAQA_H
3
4 // $Id$
5
6 class TH1;
7 class TH2;
8 class TH3;
9 class THnSparse;
10 class AliVVZERO;
11
12 #include "AliAnalysisTaskEmcalJet.h"
13
14 class AliAnalysisTaskSAQA : public AliAnalysisTaskEmcalJet {
15  public:
16   AliAnalysisTaskSAQA();
17   AliAnalysisTaskSAQA(const char *name);
18   virtual ~AliAnalysisTaskSAQA();
19
20   void                        UserCreateOutputObjects();
21
22   void                        SetCellEnergyCut(Float_t cut)                        { fCellEnergyCut      = cut        ; }
23   void                        SetParticleLevel(Bool_t s)                           { fParticleLevel      = s          ; }
24   void                        SetMC(Bool_t m)                                      { fIsMC               = m          ; }
25   void                        SetAdditionalCentEst(const char* meth2, const char* meth3="") { fCentMethod2 = meth2; fCentMethod3 = meth3; }
26   void                        SetDoV0QA(Int_t b)                                   { fDoV0QA             = b          ; }
27   void                        SetDoEPQA(Int_t b)                                   { fDoEPQA             = b          ; }
28   void                        SetMaxCellsInCluster(Int_t b)                        { fMaxCellsInCluster  = b          ; }
29   void                        SetDoLeadingObjectPosition(Int_t b)                  { fDoLeadingObjectPosition = b     ; }
30
31  protected:
32
33   void                        ExecOnce()                                                    ;
34   Bool_t                      FillHistograms()                                              ;
35   void                        FillEventQAHisto(Float_t cent, Float_t cent2, Float_t cent3, Float_t v0a, Float_t v0c, Float_t ep, Float_t rho, 
36                                                Int_t ntracks, Int_t nclusters, Int_t ncells, Int_t njets, 
37                                                Float_t maxTrackPt, Float_t maxTrackEta, Float_t maxTrackPhi,
38                                                Float_t maxClusterE, Float_t maxClusterEta, Float_t maxClusterPhi,
39                                                Float_t maxJetPt, Float_t maxJetEta, Float_t maxJetPhi);
40   Bool_t                      RetrieveEventObjects()                                        ;
41   Int_t                       DoCellLoop(Float_t &sum)                    ;
42   Int_t                       DoTrackLoop(Float_t &sum, AliVParticle* &leading)             ;
43   Int_t                       DoClusterLoop(Float_t &sum, AliVCluster* &leading)            ;
44   Int_t                       DoJetLoop(AliEmcalJet* &leading)                              ;
45   Double_t                    GetFcross(AliVCluster *cluster, AliVCaloCells *cells)         ;
46
47   Float_t                     fCellEnergyCut;            // Energy cell cut
48   Bool_t                      fParticleLevel;            // Set particle level analysis
49   Bool_t                      fIsMC;                     // Trigger, MC analysis
50   TString                     fCentMethod2;              // Centrality method 2
51   TString                     fCentMethod3;              // Centrality method 3
52   Int_t                       fDoV0QA;                   // Add V0 QA histograms
53   Int_t                       fDoEPQA;                   // Add event plane QA histograms
54   Int_t                       fDoLeadingObjectPosition;  // Add axis for leading object position (eta-phi)
55   Int_t                       fMaxCellsInCluster;        // Maximum number (approx) of cells in a cluster
56   Double_t                    fCent2;                    //!Event centrality with method 2
57   Double_t                    fCent3;                    //!Event centrality with method 3
58   AliVVZERO                  *fVZERO;                    //!Event V0 object
59   Double_t                    fV0ATotMult;               //!Event V0A total multiplicity
60   Double_t                    fV0CTotMult;               //!Event V0C total multiplicity
61  
62   // General histograms
63   THnSparse                  *fHistEventQA;              //!Event-wise QA observables
64
65   // Tracks
66   TH1                        *fHistTrNegativeLabels[4];  //!Percentage of negative label tracks
67   TH1                        *fHistTrZeroLabels[4];      //!Percentage of tracks with label=0
68   TH3                        *fHistTrPhiEtaPt[4][4];     //!Phi-Eta-Pt distribution of tracks
69   TH2                        *fHistTrPhiEtaZeroLab[4];   //!Phi-Eta distribution of tracks with label=0
70   TH1                        *fHistTrPtZeroLab[4];       //!Pt distribution of tracks with label=0
71   TH2                        *fHistTrEmcPhiEta[4];       //!Phi-Eta emcal propagated distribution of tracks
72   TH1                        *fHistTrEmcPt[4];           //!Pt emcal propagated distribution of tracks
73   TH2                        *fHistTrPhiEtaNonProp[4];   //!Phi-Eta distribution of non emcal propagated tracks
74   TH1                        *fHistTrPtNonProp[4];       //!Pt distribution of non emcal propagated tracks
75   TH2                        *fHistDeltaEtaPt[4];        //!Eta-EtaProp vs. Pt
76   TH2                        *fHistDeltaPhiPt[4];        //!Phi-PhiProp vs. Pt
77   TH2                        *fHistDeltaPtvsPt[4];       //!Pt-PtProp vs. Pt
78
79   // Clusters
80   TH3                        *fHistClusPhiEtaEnergy[4];       //!Phi-Eta-Energy distribution of clusters
81   TH2                        *fHistClusDeltaPhiEPEnergy[4];   //!DeltaPhi EP vs Energy of clusters
82   TH2                        *fHistNCellsEnergy[4];           //!Number of cells vs. energy of cluster
83   TH2                        *fHistFcrossEnergy[4];           //!Fcross vs. energy of cluster
84   TH2                        *fHistClusTimeEnergy[4];         //!Time vs. energy of cluster
85   TH1                        *fHistClusMCEnergyFraction[4];   //!MC energy fraction (embedding)
86
87   // EMCAL Cells
88   TH2                        *fHistCellsAbsIdEnergy[4];  //!Energy spectrum of cells
89
90   // Jets
91   TH2                        *fHistJetsPhiEta[4];        //!Phi-Eta distribution of jets
92   TH2                        *fHistJetsPtArea[4];        //!Pt vs. area of jets
93
94  private:
95   AliAnalysisTaskSAQA(const AliAnalysisTaskSAQA&);            // not implemented
96   AliAnalysisTaskSAQA &operator=(const AliAnalysisTaskSAQA&); // not implemented
97
98   ClassDef(AliAnalysisTaskSAQA, 23) // Quality task for Emcal analysis
99 };
100 #endif