]>
Commit | Line | Data |
---|---|---|
70da6c5a | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | // | |
16 | // Class for checking impact parameter (DCA) study | |
17 | // Study DCA in rphi (xy) and z | |
18 | // resolution and pull | |
19 | // | |
20 | ||
21 | #ifndef ALIHFEDCA_H | |
22 | #define ALIHFEDCA_H | |
23 | ||
24 | #ifndef ROOT_TObject | |
25 | #include <TObject.h> | |
26 | #endif | |
27 | ||
28 | class TChain; | |
29 | class TTree; | |
30 | class TFile; | |
31 | ||
32 | class TString; | |
33 | class TList; | |
34 | ||
35 | class TObjArray; | |
36 | class AliStack; | |
37 | class AliMCEvent; | |
38 | ||
39 | class AliESDEvent; | |
40 | class AliESDtrack; | |
41 | class AliESDVertex; | |
42 | ||
43 | class AliHFEdca : public TObject{ | |
44 | ||
45 | public: | |
46 | enum{ | |
47 | kPDGelectron = 11, | |
48 | kPDGmuon = 13, | |
49 | kPDGpion = 211, | |
50 | kPDGkaon = 321, | |
51 | kPDGproton = 2212 | |
52 | }; | |
53 | ||
54 | enum{ | |
55 | kNParticles = 12, | |
56 | kNPtBins = 43, | |
57 | kNDcaVar = 2, | |
58 | kNPullVar = 2 | |
59 | }; | |
60 | ||
61 | AliHFEdca(); | |
62 | AliHFEdca(const AliHFEdca &p); // copy constructor | |
63 | AliHFEdca &operator=(const AliHFEdca &); // assignment operator | |
64 | ||
65 | virtual ~AliHFEdca(); | |
66 | ||
67 | void Initialize(); | |
68 | void CreateHistogramsPull(TList *pullList); | |
69 | void CreateHistogramsResidual(TList *residualList); | |
70 | void InitAnalysis(); | |
71 | void FillHistograms(AliESDEvent *esdEvent, AliESDtrack *track, AliMCEvent *mcEvent); | |
72 | void PostAnalysis() const; | |
73 | ||
74 | ||
75 | private: | |
76 | static const Char_t *fgkParticles[kNParticles]; // particle names | |
77 | static const Int_t fgkColorPart[kNParticles]; // colors for particles | |
78 | ||
79 | static const Float_t fgkPtIntv[kNPtBins+1]; // pt intervals | |
80 | ||
81 | static const Char_t* fgkDcaVar[kNDcaVar]; // dca variables | |
82 | static const Char_t* fgkDcaVarTitle[kNDcaVar]; // titles for dca variables | |
83 | ||
84 | static const Char_t* fgkPullDcaVar[kNPullVar]; // pull variables | |
85 | static const Char_t* fgkPullDcaVarTitle[kNPullVar]; // titles for pull variables | |
86 | ||
87 | TH1F* fHistDcaXYRes[kNParticles][kNPtBins]; //! residuals in XY | |
88 | TH1F* fHistDcaZRes[kNParticles][kNPtBins]; //! residuals in Z | |
89 | TH1F* fHistDcaXYPull[kNParticles][kNPtBins]; //! pulls XY | |
90 | TH1F* fHistDcaZPull[kNParticles][kNPtBins]; //! pulls Z | |
91 | ||
92 | TList *fResidualList; //! collection of histograms of residual | |
93 | TList *fPullList; //! collection of histograms of pull | |
94 | ||
95 | ClassDef(AliHFEdca, 1); | |
96 | }; | |
97 | ||
98 | #endif |