]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/AliAnaExample.h
New more general analysis implemention for particle identification and correlation...
[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
7/* History of cvs commits:
8 *
9 * $Log$
10
11 *
12 */
13
14//_________________________________________________________________________
15// Example class on how to read AODCaloClusters, ESDCaloCells and AODTracks and how
16// fill AODs with PWG4PartCorr analysis frame
17// Select the type of detector information that you want to analyze, CTS (tracking), PHOS or EMCAL
18// Select the PID custer type of the calorimeters
19// Set min momentum of the cluster/tracks
20// Fill few histograms
21//
22//-- Author: Gustavo Conesa (INFN-LNF)
23
24class TH1F ;
25
26#include "AliAnaBaseClass.h"
27
28class AliAnaExample : public AliAnaBaseClass {
29
30 public:
31
32 AliAnaExample() ; // default ctor
33 AliAnaExample(const AliAnaExample & g) ; // cpy ctor
34 AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
35 virtual ~AliAnaExample() {;} //virtual dtor
36
37 TList * GetCreateOutputObjects();
38
39 void InitParameters();
40
41 void Print(const Option_t * opt) const;
42
43 void MakeAnalysisFillAOD() ;
44
45 void MakeAnalysisFillHistograms() ;
46
47 Int_t GetPdg() const {return fPdg ;}
48 void SetPdg( Int_t pdg ) {fPdg = pdg; }
49
50 TString GetDetector() const {return fDetector ;}
51 void SetDetector( TString calo ) {fDetector = calo; }
52
53 private:
54
55 Int_t fPdg ; //identified particle id
56 TString fDetector ; //detector selection
57 //Histograms
58 //CaloClusters
59 TH1F * fhPt; //pT distribution
60 TH1F * fhPhi; //phi distribution
61 TH1F * fhEta; //phi distribution
62 TH2F * fh2Pt; //pT distribution, reconstructed vs generated
63 TH2F * fh2Phi; //phi distribution, reconstructed vs generated
64 TH2F * fh2Eta; //phi distribution, reconstructed vs generated
65 //Calo Cells
66 TH1F * fhNCells; //Number of towers/crystals with signal
67 TH1F * fhAmplitude; //Amplitude measured in towers/crystals
68 ClassDef(AliAnaExample,1)
69 } ;
70
71
72#endif //ALIANAEXAMPLE_H
73
74
75