]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrDep/AliAnaChargedParticles.h
coverity fix
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaChargedParticles.h
1 #ifndef ALIANACHARGEDPARTICLES_H
2 #define ALIANACHARGEDPARTICLES_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5 /* $Id: $ */
6
7 //_________________________________________________________________________
8 // Example class on how to read AODCaloClusters, ESDCaloCells and AODTracks and how 
9 // fill AODs with PWG4PartCorr analysis frame
10 // Select the type of detector information that you want to analyze, CTS (tracking), PHOS or EMCAL
11 // Select the PID custer type of the calorimeters
12 // Set min momentum of the cluster/tracks
13 // Fill few histograms
14 //
15 //-- Author: Gustavo Conesa (INFN-LNF)
16 // Root system
17 class TH2F; 
18 class TH3D;
19 // Analysis system
20 #include "AliAnaPartCorrBaseClass.h"
21  
22 class AliAnaChargedParticles : public AliAnaPartCorrBaseClass {
23   
24  public: 
25   AliAnaChargedParticles() ; // default ctor
26   virtual ~AliAnaChargedParticles() {;} //virtual dtor
27  private:  
28   AliAnaChargedParticles(const AliAnaChargedParticles & g) ; // cpy ctor
29   AliAnaChargedParticles & operator = (const AliAnaChargedParticles & g) ;//cpy assignment
30
31  public:
32
33   TList * GetCreateOutputObjects();
34   
35   void Init();
36   void InitParameters();
37   
38   void Print(const Option_t * opt) const;
39   
40   void MakeAnalysisFillAOD()  ;
41   
42   void MakeAnalysisFillHistograms() ; 
43   
44   Int_t GetPdgOfSelectedCharged() const {return fPdg ;}
45   void SelectChargedWithPdg( Int_t pdg ) {fPdg = pdg; }
46   
47   //void Terminate();
48   
49  private:
50   
51   Int_t  fPdg ; //identified particle id
52   //Histograms 
53   TH1F * fhNtracks; //! track multiplicity distribution
54   TH3D * fhVertex; //! vertex distribution
55   TH1F * fhPt; //! pT distribution
56   TH2F * fhPhi; //! phi distribution vs pT
57   TH2F * fhEta; //! eta distribution vs pT
58   TH3D * fhPtEtaPhiPos; //! pT and phi distribution of positive charge  
59   TH3D * fhPtEtaPhiNeg; //! pT and phi distribution of positive charge  
60
61   //MC
62   TH1F * fhPtPion; //! pT distribution
63   TH2F * fhPhiPion; //! phi distribution vs pT
64   TH2F * fhEtaPion; //! eta distribution vs pT
65   
66   TH1F * fhPtProton; //! pT distribution
67   TH2F * fhPhiProton; //! phi distribution vs pT
68   TH2F * fhEtaProton; //! eta distribution vs pT
69   
70   TH1F * fhPtElectron; //! pT distribution
71   TH2F * fhPhiElectron; //! phi distribution vs pT
72   TH2F * fhEtaElectron; //! eta distribution vs pT
73   
74   TH1F * fhPtKaon; //! pT distribution
75   TH2F * fhPhiKaon; //! phi distribution vs pT
76   TH2F * fhEtaKaon; //! eta distribution vs pT
77   
78   TH1F * fhPtUnknown; //! pT distribution
79   TH2F * fhPhiUnknown; //! phi distribution vs pT
80   TH2F * fhEtaUnknown; //! eta distribution vs pT
81   
82   ClassDef(AliAnaChargedParticles,2)
83     } ;
84
85
86 #endif //ALIANACHARGEDPARTICLES_H
87
88
89