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