]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/vertexingHF/AliAnalysisTaskCheckHFMCProd.h
merge from trunk (small, after 2 days period from last one)
[u/mrichter/AliRoot.git] / PWGHF / vertexingHF / AliAnalysisTaskCheckHFMCProd.h
CommitLineData
7b6a4dcd 1#ifndef ALIANALYSISTASKCHECKHFMCPROD
2#define ALIANALYSISTASKCHECKHFMCPROD
3
4/* Copyright(c) 1998-2012, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9//*************************************************************************
10// Class AliAnalysisTaskCheckHFMCProd
11// AliAnalysisTask to check MC production at ESD+Kine level
12//
13//
14// Author: F. Prino, prino@to.infn.it
15//
16//*************************************************************************
17
18class TList;
19class TNtuple;
20class TH1F;
21class TH2F;
22class TTree;
23class TString;
24class AliESDEvent;
25class AliESDfriend;
26class AliStack;
27
28#include "AliAnalysisTaskSE.h"
29
30class AliAnalysisTaskCheckHFMCProd : public AliAnalysisTaskSE {
31
32 public:
33
34 AliAnalysisTaskCheckHFMCProd();
35 virtual ~AliAnalysisTaskCheckHFMCProd();
36
37 virtual void UserExec(Option_t *option);
38 virtual void UserCreateOutputObjects();
39 virtual void Terminate(Option_t *option);
40
41 Int_t CheckD0Decay(Int_t labD0, AliStack* stack) const;
42 Int_t CheckDplusDecay(Int_t labDplus, AliStack* stack) const;
43 Int_t CheckDsDecay(Int_t labDs, AliStack* stack) const;
44 Int_t CheckDstarDecay(Int_t labDstar, AliStack* stack) const;
45 Int_t CheckLcDecay(Int_t labLc, AliStack* stack) const;
fcedd2b1 46 void SetSearchUpToQuark(Bool_t opt){fSearchUpToQuark=opt;};
47
7b6a4dcd 48
49 void SetReadMC(Bool_t opt) {fReadMC=opt;}
a35b52e8 50 void SetpPb() {fSystem=2;}
51 void SetPbPb() {fSystem=1;}
52 void Setpp() {fSystem=0;}
7b6a4dcd 53
54 private:
55
56 AliAnalysisTaskCheckHFMCProd(const AliAnalysisTaskCheckHFMCProd &source);
57 AliAnalysisTaskCheckHFMCProd& operator=(const AliAnalysisTaskCheckHFMCProd &source);
58
59 TList* fOutput; //! list of output histos
60 TH1F* fHistoNEvents; //! histo with N of events
a35b52e8 61
7c3336d1 62 TH1F* fHistoPhysPrim; //! histo of n. of physical primaries in |eta|<0.5
63 TH1F* fHistoTracks; //! histo with number of ESD tracks
64 TH1F* fHistoSelTracks; //! histo with number of TPC+ITS refit ESD tracks
65 TH1F* fHistoTracklets; //! histo with number of SPD tracklets
66 TH1F* fHistoTrackletsEta1;//! histo with number of SPD tracklets in |eta|<1
67 TH1F* fHistoPtPhysPrim; //! histo of pt distribution of phys primaries
68 TH1F* fHistoEtaPhysPrim; //! histo of eta distribution of physical primaries
7b6a4dcd 69
70 TH1F* fHistoSPD3DVtxX; //! histo with distr. of x coord. of SPD3D vertex
71 TH1F* fHistoSPD3DVtxY; //! histo with distr. of y coord. of SPD3D vertex
72 TH1F* fHistoSPD3DVtxZ; //! histo with distr. of z coord. of SPD3D vertex
73
74 TH1F* fHistoSPDZVtxX; //! histo with distr. of x coord. of SPDZ vertex
75 TH1F* fHistoSPDZVtxY; //! histo with distr. of y coord. of SPDZ vertex
76 TH1F* fHistoSPDZVtxZ; //! histo with distr. of z coord. of SPDZ vertex
77
78 TH1F* fHistoTRKVtxX; //! histo with distr. of x coord. of TRK vertex
79 TH1F* fHistoTRKVtxY; //! histo with distr. of y coord. of TRK vertex
80 TH1F* fHistoTRKVtxZ; //! histo with distr. of z coord. of TRK vertex
81
82 TH2F* fHistoNcharmed; //! histo of D mesons vs. dN/dy
83 TH2F* fHistoNbVsNc; //! histo of n. b quarks vs. n c. quarks
84
a35b52e8 85 TH2F* fHistBYPtAllDecay[5]; //! histo of y vs. pt from prompt B0, B+, B*, Bs, Lb
5472ae5b 86 TH2F* fHistYPtAllDecay[5]; //! histo of y vs. pt from prompt D0, D+, D*, Ds, Lc, no selection on decay channel
87 TH2F* fHistYPtPromptAllDecay[5]; //! histo of y vs. pt from prompt D0, D+, D*, Ds, Lc, no selection on decay channel
88 TH2F* fHistYPtFeeddownAllDecay[5]; //! histo of y vs. pt from prompt D0, D+, D*, Ds, Lc, no selection on decay channel
7b6a4dcd 89 TH2F* fHistYPtPrompt[5]; //! histo of y vs. pt from prompt D0, D+, D*, Ds, Lc
90 TH2F* fHistYPtFeeddown[5]; //! histo of y vs. pt from feeddown D0, D+, D*, Ds, Lc
91 TH2F* fHistYPtD0byDecChannel[2]; //! histo of y vs. pt for D0->Kpi and D0->Kpipipi
92 TH2F* fHistYPtDplusbyDecChannel[2]; //! histo of y vs. pt for D+->Kpipi and D+->K0*pi
93 TH2F* fHistYPtDsbyDecChannel[2]; //! histo of y vs. pt for Ds->phipi and Ds->K0*K
fcedd2b1 94 TH1F* fHistOriginPrompt; //! histo of D production point (prompt)
95 TH1F* fHistOriginFeeddown; //! histo of D production point (feeddown)
c833b704 96 TH1F* fHistMotherID; //! histo of mother ID
a916dfdb 97 TH1F* fHistDSpecies; //! histo of D hadron species
98 TH1F* fHistBSpecies; //! histo of B hadron species
c7112a2a 99 TH2F* fHistNcollHFtype; //! histo of B hadron species
fcedd2b1 100 Bool_t fSearchUpToQuark; // c/b separation using quarks
101 Int_t fSystem; // 0=pp, 1=PbPb, 2=pPb
7b6a4dcd 102 Bool_t fReadMC;
103
7c3336d1 104 ClassDef(AliAnalysisTaskCheckHFMCProd,5);
7b6a4dcd 105};
106
107
108#endif