]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrDep/AliAnaExample.h
Be sure to load mapping when needed
[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   AliAnaExample() ; // default ctor
28   virtual ~AliAnaExample() {;} //virtual dtor
29   
30  private :
31   AliAnaExample(const AliAnaExample & g) ; // cpy ctor
32   AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
33   
34  public:
35   
36   TList * GetCreateOutputObjects();
37   
38   void InitParameters();
39   
40   void Print(const Option_t * opt) const;
41   
42   void MakeAnalysisFillAOD()  ;
43   
44   void MakeAnalysisFillHistograms() ; 
45   
46   Int_t GetPdg() const {return fPdg ;}
47   void SetPdg( Int_t pdg ) {fPdg = pdg; }
48   
49   TString GetDetector() const {return fDetector ;}
50   void SetDetector( TString calo ) {fDetector = calo; }
51   
52   void Terminate(TList * outputList);
53   void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate.
54
55  private:
56   
57   Int_t  fPdg ; //identified particle id
58   TString fDetector ; //detector selection
59   //Histograms
60   //CaloClusters 
61   TH1F * fhPt; //! pT distribution
62   TH1F * fhPhi; //! phi distribution
63   TH1F * fhEta; //! eta distribution
64   TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
65   TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
66   TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
67   
68   ClassDef(AliAnaExample,2)
69 } ;
70
71
72 #endif //ALIANAEXAMPLE_H
73
74
75