]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEpriVtx.h
Update of ACORDE-QA-Raw data histograms (now they go from -0.5 to 59.5)
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEpriVtx.h
CommitLineData
259c3296 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 **************************************************************************/
50685501 15//
16// QA class of primary vertex study for Heavy Flavor electrons
9bcfd1ab 17// this has functionality to reject electrons from primary vertex
18// and check primary vertex characteristics
50685501 19//
259c3296 20
75d81601 21#ifndef ALIHFEPRIVTX_H
22#define ALIHFEPRIVTX_H
259c3296 23
24#ifndef ROOT_TObject
75d81601 25//#include <TObject.h>
259c3296 26#endif
27
28class TH1F;
29class TH1I;
30class TH2F;
31class TString;
32class AliESDEvent;
33class AliESDtrack;
34class AliStack;
35
36//________________________________________________________________
37class AliHFEpriVtx : public TObject {
38
39 public:
40 AliHFEpriVtx();
41 AliHFEpriVtx(const AliHFEpriVtx &p); // copy constructor
42 AliHFEpriVtx &operator=(const AliHFEpriVtx &); // assignment operator
43 virtual ~AliHFEpriVtx();
44
259c3296 45 void CreateHistograms(TString hnopt=""); // create histograms
259c3296 46 void Init();
50685501 47 void SetEvent(AliESDEvent * const ESD){fESD1=ESD;}; // set ESD pointer
48 void SetStack(AliStack * const stack){fStack=stack;} // set stack pointer
259c3296 49 void CountNtracks(Int_t sourcePart, Int_t recpid, Double_t recprob); // count number of tracks passed certain cut
50 void FillNtracks(); // fill counted number of tracks
51 void CountPriVxtElecContributor(AliESDtrack *ESDelectron, Int_t sourcePart, Int_t recpid, Double_t recprob);
52 void GetNPriVxtContributor();
75d81601 53 void FillNprimVtxContributor() const;
259c3296 54
55 Int_t GetMCPID(AliESDtrack *track); // return mc pid
56
57 private:
58
59 AliESDEvent* fESD1; // ESD event
60 AliStack* fStack; // MC Stack
61
62 TString fkSourceLabel[10]; // storing source label
63
64 enum kSources {kAll, kDirectCharm, kDirectBeauty, kBeautyCharm, kGamma, kPi0, kElse, kBeautyGamma, kBeautyPi0, kBeautyElse};
65
75d81601 66 struct AliHists{
259c3296 67 TH1F *fNtracks; // histogram to fill number of counted tracks for different sources
68 TH1F *fNprimVtxContributor; // histogram to fill number of tracks contributing primary vertex
69 TH1F *fPtElec; // histogram to fill pt of electron tracks
70 TH1F *fPtElecContributor; // histogram to fill pt of electron tracks contributing primary vertex
71 Int_t fNtrackCount; // number of counted track
72 Int_t fNprimVtxContributorCount; // number of tracks contributing primary vertex
259c3296 73
75d81601 74 AliHists()
75 : fNtracks()
76 , fNprimVtxContributor()
77 , fPtElec()
78 , fPtElecContributor()
79 , fNtrackCount(0)
80 , fNprimVtxContributorCount(0)
81 {
82 // default constructor
83 }
84
85 AliHists(const AliHists & p)
86 : fNtracks(p.fNtracks)
87 , fNprimVtxContributor(p.fNprimVtxContributor)
88 , fPtElec(p.fPtElec)
89 , fPtElecContributor(p.fPtElecContributor)
90 , fNtrackCount(p.fNtrackCount)
91 , fNprimVtxContributorCount(p.fNprimVtxContributorCount)
92 {
93 // copy constructor
94 }
95 AliHists &operator=(const AliHists &)
96 {
97 // assignment operator, not yet implemented
98 return *this;
99 }
100 };
101 AliHists fPrimVtx[10]; // define structure of histograms
259c3296 102
103 Int_t fNtrackswoPid; // number of track counted
104 TH1F *fHNtrackswoPid; // histogram to fill number of track counted
105 TH1I *fNESDprimVtxContributor; // histogram to fill number of primary vertex contributor for given event
106 TH1I *fNESDprimVtxIndices; // histogram to fill number of primary vertex indices for given event
107 TH2F *fDiffDCAvsPt; // histogram to fill DCA difference as a function of pT
108 TH2F *fDiffDCAvsNt; // histogram to fill DCA difference as a function of pT
109
110
dbe3abbe 111 ClassDef(AliHFEpriVtx,0);
259c3296 112};
113
114#endif