1-New correlation analysis for particle and jet-JETAN correlation; 2-Change GetEntrie...
[u/mrichter/AliRoot.git] / PWG4 / AliAnaExample.h
CommitLineData
d92b41ad 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
d92b41ad 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
17class TH1F ;
18
c90ac396 19#include "AliAnaPartCorrBaseClass.h"
d92b41ad 20
c90ac396 21class AliAnaExample : public AliAnaPartCorrBaseClass {
d92b41ad 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
5a67f6fd 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
d92b41ad 58 //Calo Cells
5a67f6fd 59 TH1F * fhNCells; //! Number of towers/crystals with signal
60 TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
d92b41ad 61 ClassDef(AliAnaExample,1)
62 } ;
63
64
65#endif //ALIANAEXAMPLE_H
66
67
68