]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrDep/AliAnaExample.h
fixing compilation problem
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaExample.h
1 #ifndef ALIANAEXAMPLE_H
2 #define ALIANAEXAMPLE_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
17 // --- Root system ---
18 class TH2F;
19 class TH1F;
20
21 // --- Analysis system --- 
22 #include "AliAnaPartCorrBaseClass.h"
23  
24 class AliAnaExample : public AliAnaPartCorrBaseClass {
25   
26  public: 
27   
28   AliAnaExample() ; // default ctor
29   AliAnaExample(const AliAnaExample & g) ; // cpy ctor
30   AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
31   virtual ~AliAnaExample() {;} //virtual dtor
32   
33   TList * GetCreateOutputObjects();
34   
35   void InitParameters();
36   
37   void Print(const Option_t * opt) const;
38   
39   void MakeAnalysisFillAOD()  ;
40   
41   void MakeAnalysisFillHistograms() ; 
42   
43   Int_t GetPdg() const {return fPdg ;}
44   void SetPdg( Int_t pdg ) {fPdg = pdg; }
45   
46   TString GetDetector() const {return fDetector ;}
47   void SetDetector( TString calo ) {fDetector = calo; }
48   
49   void Terminate(TList * outputList);
50   void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate.
51
52  private:
53   
54   Int_t  fPdg ; //identified particle id
55   TString fDetector ; //detector selection
56   //Histograms
57   //CaloClusters 
58   TH1F * fhPt; //! pT distribution
59   TH1F * fhPhi; //! phi distribution
60   TH1F * fhEta; //! eta distribution
61   TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
62   TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
63   TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
64   //Calo Cells
65   TH1F * fhNCells; //! Number of towers/crystals with signal
66   TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
67   ClassDef(AliAnaExample,1)
68     } ;
69
70
71 #endif //ALIANAEXAMPLE_H
72
73
74