]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/CaloTrackCorrelations/AliAnaChargedParticles.h
Coverity fixes (Jens)
[u/mrichter/AliRoot.git] / PWGGA / CaloTrackCorrelations / 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
6 //_________________________________________________________________________
7 // Example class on how to read AODCaloClusters, ESDCaloCells and AODTracks and how 
8 // fill AODs with PWG4CaloTrackCorr analysis frame
9 // Select the type of detector information that you want to analyze, CTS (tracking), PHOS or EMCAL
10 // Select the PID custer type of the calorimeters
11 // Set min momentum of the cluster/tracks
12 // Fill few histograms
13 //
14 //-- Author: Gustavo Conesa (INFN-LNF)
15 // Root system
16 class TH2F; 
17
18 // Analysis system
19 #include "AliAnaCaloTrackCorrBaseClass.h"
20  
21 class AliAnaChargedParticles : public AliAnaCaloTrackCorrBaseClass {
22   
23  public: 
24   AliAnaChargedParticles() ; // default ctor
25   virtual ~AliAnaChargedParticles() { ; } //virtual dtor
26
27   TList * GetCreateOutputObjects();
28   
29   void    Init();
30   
31   void    InitParameters();
32   
33   void    Print(const Option_t * opt) const;
34   
35   void    MakeAnalysisFillAOD()  ;
36   
37   void    MakeAnalysisFillHistograms() ; 
38   
39   Int_t   GetPdgOfSelectedCharged()  const  { return fPdg ; }
40   void    SelectChargedWithPdg( Int_t pdg ) { fPdg = pdg  ; }
41     
42  private:
43   
44   Int_t  fPdg ; //identified particle id
45   
46   //Histograms 
47   TH1F * fhNtracks;     //! track multiplicity distribution
48   TH1F * fhPt;          //! pT distribution
49   TH2F * fhPhiNeg;      //! phi distribution vs pT, negative
50   TH2F * fhEtaNeg;      //! eta distribution vs pT, negative
51   TH2F * fhPhiPos;      //! phi distribution vs pT, positive
52   TH2F * fhEtaPos;      //! eta distribution vs pT, positive
53   TH2F * fhEtaPhiPos;   //! eta vs phi distribution of positive charge  
54   TH2F * fhEtaPhiNeg;   //! eta vs phi distribution of negative charge  
55
56   //MC
57   TH1F * fhPtPion;      //! pT distribution
58   TH2F * fhPhiPion;     //! phi distribution vs pT
59   TH2F * fhEtaPion;     //! eta distribution vs pT
60   
61   TH1F * fhPtProton;    //! pT distribution
62   TH2F * fhPhiProton;   //! phi distribution vs pT
63   TH2F * fhEtaProton;   //! eta distribution vs pT
64   
65   TH1F * fhPtElectron;  //! pT distribution
66   TH2F * fhPhiElectron; //! phi distribution vs pT
67   TH2F * fhEtaElectron; //! eta distribution vs pT
68   
69   TH1F * fhPtKaon;      //! pT distribution
70   TH2F * fhPhiKaon;     //! phi distribution vs pT
71   TH2F * fhEtaKaon;     //! eta distribution vs pT
72   
73   TH1F * fhPtUnknown;   //! pT distribution
74   TH2F * fhPhiUnknown;  //! phi distribution vs pT
75   TH2F * fhEtaUnknown;  //! eta distribution vs pT
76   
77   AliAnaChargedParticles(const AliAnaChargedParticles & g) ; // cpy ctor
78   AliAnaChargedParticles & operator = (const AliAnaChargedParticles & g) ;//cpy assignment
79   
80   ClassDef(AliAnaChargedParticles,3)
81
82 } ;
83
84
85 #endif //ALIANACHARGEDPARTICLES_H
86
87
88